Click or drag to resize

KemCipherTextSize Method

Return length in bytes of ciphertext for the given KEM algorithm.

Namespace: CryptoSysPQC
Assembly: diCrSysPQCNet (in diCrSysPQCNet.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static int CipherTextSize(
	KemAlg alg
)

Parameters

alg  KemAlg
KEM algorithm

Return Value

Int32
Length of ciphertext in bytes
Example
C#
Console.WriteLine(Kem.CipherTextSize(Kem.Alg.ML_KEM_512));  // 768
Console.WriteLine(Kem.CipherTextSize(Kem.Alg.ML_KEM_768));  // 1088
Console.WriteLine(Kem.CipherTextSize(Kem.Alg.ML_KEM_1024)); // 1568
See Also