MLDSA87KeyGen
Cryptography
Description
Generates an ML-DSA-87 public and secret key pair deterministically from a 32-byte seed
Syntax
Delphi
Function MLDSA87KeyGen(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-87 parameter set defined by FIPS 204. PublicKey contains 2592 bytes and SecretKey contains 4896 bytes. Key generation is deterministic for the same seed and the implementation is checked against the official known-answer vector
Example
if MLDSA87KeyGen(Seed, PublicKey, SecretKey) then
begin
// retain SecretKey in protected storage
end;