KemEncapsulation
The result of a KEM encapsulation (FIPS 203 §7.2): ciphertext goes to the key owner, the shared secret stays here.
A transfer value from the backend to its caller, which owns both arrays afterwards: the backend must not reuse them, and the constructor does not copy them. The secret leaves only through sharedSecret, one copy per call, so every copy shows at the call site; destroy overwrites it once the caller has what it needs.
Properties
Functions
Link copied to clipboard
Overwrites the shared secret; sharedSecret throws afterwards. Calling it again does nothing.
Link copied to clipboard
A copy of the shared secret K.