<PackageReference Include="BouncyCastle.Cryptography" Version="2.7.0-beta.98" />

CmceEngine<GFImpl>

class CmceEngine<GFImpl> : ICmceEngine where GFImpl : struct, GF
public int CipherTextSize { get; }

public int CondBytes { get; }

public int DefaultSessionKeySize { get; }

public int IrrBytes { get; }

public int PrivateKeySize { get; }

public int PublicKeySize { get; }

public byte[] DecompressPrivateKey(byte[] sk)

public byte[] GeneratePublicKeyFromPrivateKey(byte[] sk)

public int KemDec(byte[] key, byte[] cipher_text, byte[] sk)

public int KemEnc(byte[] cipher_text, byte[] key, byte[] pk, SecureRandom random)

public void KemKeypair(byte[] pk, byte[] sk, SecureRandom random)