Carry out the ML-KEM encapsulation algorithm:
(ct,ss)<--Encaps(ek)
Namespace: CryptoSysPQCAssembly: diCrSysPQCNet (in diCrSysPQCNet.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static KemEncapOutput Encaps(
KemAlg alg,
byte[] ek,
string paramstr = ""
)
Public Shared Function Encaps (
alg As KemAlg,
ek As Byte(),
Optional paramstr As String = ""
) As KemEncapOutput
Parameters
- alg KemAlg
- KEM algorithm.
- ek Byte
- Encapsulation key.
- paramstr String (Optional)
- Optional parameters string. Use to pass a known test random seed encoded in hexadecimal.
If provided, this must represent exactly 32 bytes.
Return Value
KemEncapOutputShared secret key (ss) and ciphertext (ct) in a
KemEncapOutput object.
See Also