ecdh

package
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NistCurve

type NistCurve struct {
	tools.ToolLogicBase
	// contains filtered or unexported fields
}

NistCurve implements the cryptographic interface for ECDH key exchange with NIST curves.

func (*NistCurve) BurnKey

func (ec *NistCurve) BurnKey(signet tools.SignetInt) error

BurnKey implements the ToolLogic interface. This is currently ineffective, see known issues in the project's README.

func (*NistCurve) GenerateKey

func (ec *NistCurve) GenerateKey(signet tools.SignetInt) error

GenerateKey implements the ToolLogic interface.

func (*NistCurve) LoadKey

func (ec *NistCurve) LoadKey(signet tools.SignetInt) error

LoadKey implements the ToolLogic interface.

func (*NistCurve) MakeSharedKey

func (ec *NistCurve) MakeSharedKey(local tools.SignetInt, remote tools.SignetInt) ([]byte, error)

MakeSharedKey implements the ToolLogic interface.

func (*NistCurve) StoreKey

func (ec *NistCurve) StoreKey(signet tools.SignetInt) error

StoreKey implements the ToolLogic interface.

type X25519Curve

type X25519Curve struct {
	tools.ToolLogicBase
}

X25519Curve implements the cryptographic interface for the ECDH X25519 key exchange.

func (*X25519Curve) BurnKey

func (ec *X25519Curve) BurnKey(signet tools.SignetInt) error

BurnKey implements the ToolLogic interface. This is currently ineffective, see known issues in the project's README.

func (*X25519Curve) GenerateKey

func (ec *X25519Curve) GenerateKey(signet tools.SignetInt) error

GenerateKey implements the ToolLogic interface.

func (*X25519Curve) LoadKey

func (ec *X25519Curve) LoadKey(signet tools.SignetInt) error

LoadKey implements the ToolLogic interface.

func (*X25519Curve) MakeSharedKey

func (ec *X25519Curve) MakeSharedKey(local tools.SignetInt, remote tools.SignetInt) ([]byte, error)

MakeSharedKey implements the ToolLogic interface.

func (*X25519Curve) StoreKey

func (ec *X25519Curve) StoreKey(signet tools.SignetInt) error

StoreKey implements the ToolLogic interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL