package
0.0.0-20210902152239-d07836ab426a
Repository: https://github.com/sylabs/golang-x-crypto.git
Documentation: pkg.go.dev
# Functions
GenerateKey generates a public/private key pair using entropy from rand.
NewKeyFromSeed calculates a private key from a seed.
Sign signs the message with privateKey and returns a signature.
Verify reports whether sig is a valid signature of message by publicKey.
# Constants
PrivateKeySize is the size, in bytes, of private keys as used in this package.
PublicKeySize is the size, in bytes, of public keys as used in this package.
SeedSize is the size, in bytes, of private key seeds.
SignatureSize is the size, in bytes, of signatures generated and verified by this package.
# Type aliases
PrivateKey is the type of Ed25519 private keys.
PublicKey is the type of Ed25519 public keys.