Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTstCompositeMLKEMPublicKey.Encapsulate

function Encapsulate(out aSharedSecretKey : iSecretKey; aCipherTextFormat: tStringFormat = sfBinary) : AnsiString;
Composite-ML-KEM.Encaps (draft-ietf-lamps-pq-composite-kem): produces a shared secret (returned in aSharedSecretKey) -- 32 bytes for the PKIX/CMS composite algorithms, whose combiner is SHA3-256 -- and the composite ciphertext (the return value), to be sent to the owner of the corresponding composite ML-KEM private key. An application (the CMS message originator) calls this to wrap a content-encryption key for a KEMRecipientInfo recipient.