Documentation ¶
Overview ¶
Package ed25519 implements the Ed25519 signature algorithm. See http://ed25519.cr.yp.to/.
Index ¶
Constants ¶
View Source
const ( // EntropySize is the number of bytes used as input to GenerateKey. EntropySize = 32 // PublicKeySize is the size of the public key in bytes. PublicKeySize = 32 // SecretKeySize is the size of the secret key in bytes. SecretKeySize = 64 // SignatureSize is size of the signature in bytes. SignatureSize = 64 )
Variables ¶
This section is empty.
Functions ¶
func GenerateKey ¶
func GenerateKey(entropy [EntropySize]byte) (sk SecretKey, pk PublicKey)
GenerateKey generates a public/secret key pair using randomness from rand.
Types ¶
Click to show internal directories.
Click to hide internal directories.