Streamlined NTRU Prime sntrup761 KEM used by RFC 9941, Section 3: https://www.rfc-editor.org/rfc/rfc9941.html#section-3 Polynomial arithmetic, mixed-radix encodings and domain-separated hashes follow the NTRU Prime round-3 specification (NTRUPrimePQCS in RFC 9941). Short-vector sampling uses a fixed 1024-element bitonic sorting network in place of crypto_sort. Secret arithmetic and decapsulation loops have public bounds. Correctly sized invalid ciphertexts undergo implicit rejection without exposing a ciphertext-validity result. Key encodings are raw sntrup761 byte strings; no ASN.1 identifiers are added.
inherits from TInterfacedObject
implements iSNTRUPKey
(no public members)
inherits from tSNTRUPKey
implements iSNTRUPPublicKey, iSNTRUPKey
constructor Create(const aKey: TBytes);
inherits from tSNTRUPKey
implements iSNTRUPPrivateKey, iSNTRUPKey
constructor Create(const aKey: TBytes);
destructor Destroy; override;
inherits from TInterfacedObject
implements iDSISNTRUP
function NewKEMPrivateKey(const aKey: TBytes): iSNTRUPPrivateKey;
function NewKEMPublicKey(const aKey: TBytes): iSNTRUPPublicKey;
procedure KEMKeyGen(var aPublicKey: iSNTRUPPublicKey; var aPrivateKey: iSNTRUPPrivateKey);
procedure Encaps(const aPublicKey: iSNTRUPPublicKey; var aSharedSecret, aCiphertext: TBytes);
function Decaps(const aPrivateKey: iSNTRUPPrivateKey; const aCiphertext: TBytes; var aSharedSecret: TBytes): Boolean;
property PRNG: iRawRandom read GetPRNG write SetPRNG;