ecdh

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: GPL-3.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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