Click or drag to resize

KemEncaps Method

Carry out the ML-KEM encapsulation algorithm: (ct,ss)<--Encaps(ek)

Namespace: CryptoSysPQC
Assembly: diCrSysPQCNet (in diCrSysPQCNet.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static KemEncapOutput Encaps(
	KemAlg alg,
	byte[] ek,
	string paramstr = ""
)

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

KemEncapOutput
Shared secret key (ss) and ciphertext (ct) in a KemEncapOutput object.
See Also