Org.BouncyCastle.Crypto.Parameters.Ed25519PrivateKeyParameters
Ed25519 private key (RFC 8032). Holds the 32-byte secret seed; the corresponding public key is
derived lazily on first use and cached.
Length in bytes of an Ed25519 private-key seed (32).
Length in bytes of an Ed25519 signature (64).
Generate a fresh random Ed25519 private key using random.
Construct from a 32-byte seed buffer.
Read the 32-byte seed from input.
Write the 32-byte seed into buf at off.
Derive (and cache) the public key corresponding to this private key.
Return a fresh copy of the 32-byte seed.
public void Sign(Algorithm algorithm, byte[] ctx, byte[] msg, int msgOff, int msgLen, byte[] sig, int sigOff)
Compute an Ed25519 signature. Selects between pure Ed25519, Ed25519ctx and Ed25519ph based on
algorithm. The pure variant rejects a non-null context; the context
and prehash variants require a context up to 255 bytes long, and Ed25519ph additionally
requires msgLen to equal PrehashSize.