Table of Contents

Class FrodoEngine

Namespace
Org.BouncyCastle.Pqc.Crypto.Frodo
Assembly
BouncyCastle.Cryptography.dll
public class FrodoEngine
Inheritance
FrodoEngine
Inherited Members

Constructors

FrodoEngine(int, int, int, short[], IDigest, FrodoMatrixGenerator)

public FrodoEngine(int n, int D, int B, short[] cdf_table, IDigest digest, FrodoMatrixGenerator mGen)

Parameters

n int
D int
B int
cdf_table short[]
digest IDigest
mGen FrodoMatrixGenerator

Properties

CipherTextSize

public int CipherTextSize { get; }

Property Value

int

PrivateKeySize

public int PrivateKeySize { get; }

Property Value

int

PublicKeySize

public int PublicKeySize { get; }

Property Value

int

SessionKeySize

public int SessionKeySize { get; }

Property Value

int

Methods

kem_dec(byte[], byte[], byte[])

public void kem_dec(byte[] ss, byte[] ct, byte[] sk)

Parameters

ss byte[]
ct byte[]
sk byte[]

kem_enc(byte[], byte[], byte[], SecureRandom)

public void kem_enc(byte[] ct, byte[] ss, byte[] pk, SecureRandom random)

Parameters

ct byte[]
ss byte[]
pk byte[]
random SecureRandom

kem_keypair(byte[], byte[], SecureRandom)

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

Parameters

pk byte[]
sk byte[]
random SecureRandom