Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.DSI.Sntrup761

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.

Classes, interfaces and records

classtSNTRUPKey

inherits from TInterfacedObject

implements iSNTRUPKey

(no public members)

classtSNTRUPPublicKey

inherits from tSNTRUPKey

implements iSNTRUPPublicKey, iSNTRUPKey

constructor Create(const aKey: TBytes);

classtSNTRUPPrivateKey

inherits from tSNTRUPKey

implements iSNTRUPPrivateKey, iSNTRUPKey

constructor Create(const aKey: TBytes); destructor Destroy; override;

classtDSISNTRUP

inherits from TInterfacedObject

implements iDSISNTRUP

function NewKEMPrivateKey(const aKey: TBytes): iSNTRUPPrivateKey;
Delegates to tSNTRUPPrivateKey.Create, forwarding aKey, and returns its result.
function NewKEMPublicKey(const aKey: TBytes): iSNTRUPPublicKey;
Delegates to tSNTRUPPublicKey.Create, forwarding aKey, and returns its result.
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;