ddn.crypto.signature.ed25519
Ed25519 Signature Implementation (RFC 8032).
Secret-bearing operations - signing and public-key derivation from a private seed - run on the fixed-width constant-time implementation in ddn.crypto.internal.ed25519ct. The BigInt point arithmetic below is used only for public data: signature verification multiplies points by hashes and signature scalars that are public.
Types 4
classEd25519Signer : Signer
Methods
void initialize(PrivateKey key)void init(PrivateKey key)void update(const(ubyte)[] input)ubyte[] sign()classEd25519Verifier : Verifier
Functions 10
private fn
Point pointMul(Point P, BigInt s)Constant-time scalar multiplication using double-and-add-always.private fn
Point ctSelectPoint(uint condition, Point a, Point b) pure nothrow @safeConstant-time point selection.fn
ubyte[] ed25519PublicFromSeed(const(ubyte)[] seed)Derives the 32-byte Ed25519 public key from a private seed.