Documentation ¶
Index ¶
- type NistCurve
- func (ec *NistCurve) BurnKey(signet tools.SignetInt) error
- func (ec *NistCurve) GenerateKey(signet tools.SignetInt) error
- func (ec *NistCurve) LoadKey(signet tools.SignetInt) error
- func (ec *NistCurve) MakeSharedKey(local tools.SignetInt, remote tools.SignetInt) ([]byte, error)
- func (ec *NistCurve) StoreKey(signet tools.SignetInt) error
- type X25519Curve
- func (ec *X25519Curve) BurnKey(signet tools.SignetInt) error
- func (ec *X25519Curve) GenerateKey(signet tools.SignetInt) error
- func (ec *X25519Curve) LoadKey(signet tools.SignetInt) error
- func (ec *X25519Curve) MakeSharedKey(local tools.SignetInt, remote tools.SignetInt) ([]byte, error)
- func (ec *X25519Curve) StoreKey(signet tools.SignetInt) error
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 ¶
BurnKey implements the ToolLogic interface. This is currently ineffective, see known issues in the project's README.
func (*NistCurve) GenerateKey ¶
GenerateKey implements the ToolLogic interface.
func (*NistCurve) MakeSharedKey ¶
MakeSharedKey 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 ¶
MakeSharedKey implements the ToolLogic interface.