MLDSA65KeyGen

Cryptography

Description

Generates an ML-DSA-65 public and secret key pair deterministically from a 32-byte seed

Syntax

Delphi

Function MLDSA65KeyGen(Const Seed: AnsiString; Out PublicKey, SecretKey: AnsiString): Boolean;

Return values

True when Seed contains exactly 32 bytes and both outputs are generated
False for an invalid seed length; PublicKey and SecretKey are then empty

Remarks

This is the ML-DSA-65 parameter set defined by FIPS 204. PublicKey contains 1952 bytes and SecretKey contains 4032 bytes. Key generation is deterministic for the same seed and the implementation is checked against the official known-answer vector

Example

if MLDSA65KeyGen(Seed, PublicKey, SecretKey) then
begin
  // retain SecretKey in protected storage
end;

See also

MLDSA65Sign, MLDSA65Verify