package

ed25519

crypto/internal/fips140/v1.26.0/ed25519

Functions

Signsource

func Sign(priv *PrivateKey, message []byte) []byte

SignCtxsource

func SignCtx(priv *PrivateKey, message []byte, context string) ([]byte, error)

SignPHsource

func SignPH(priv *PrivateKey, message []byte, context string) ([]byte, error)

Verifysource

func Verify(pub *PublicKey, message, sig []byte) error

VerifyCtxsource

func VerifyCtx(pub *PublicKey, message []byte, sig []byte, context string) error

VerifyPHsource

func VerifyPH(pub *PublicKey, message []byte, sig []byte, context string) error

type PrivateKey source

type PrivateKey struct {
	// contains filtered or unexported fields
}

Constructors

GenerateKeysource

func GenerateKey() (*PrivateKey, error)

GenerateKey generates a new Ed25519 private key pair.

Methods

type PublicKey source

type PublicKey struct {
	// contains filtered or unexported fields
}

Constructors

Methods