Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTstMLKEMKey.Decapsulate

function Decapsulate(const aCipherText : AnsiString; aCipherTextFormat: tStringFormat = sfBinary) : iSecretKey;
The function Decapsulate corresponds to Algorithm 21 ML-KEM.Decaps from FIPS 203. The input ML-KEM decapsulation key is used to extract a Shared Secret Key from a cipher text of this shared secret. The shared secret key is the return value of Decapsulate. This component is a general-purpose key-holder: the PQ/hybrid TLS 1.3 and SSH KEX paths do NOT instantiate it (they call the engine's KEMDecaps on the iMLKEMPrivateKey directly). A typical direct use is CMS KEMRecipientInfo, where the decapsulating side is the message recipient (recipient/sender roles, not client/server).