class MLKEMEngine extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
KyberN |
static int |
KyberPolyBytes |
static int |
KyberQ |
static int |
KyberQinv |
static int |
KyberSymBytes |
| Constructor and Description |
|---|
MLKEMEngine(int k) |
public static final int KyberN
public static final int KyberPolyBytes
public static final int KyberQ
public static final int KyberQinv
public static final int KyberSymBytes
public byte[][] generateKemKeyPair()
public byte[][] generateKemKeyPairInternal(byte[] d,
byte[] z)
public int getCryptoBytes()
public int getCryptoCipherTextBytes()
public int getCryptoPublicKeyBytes()
public int getCryptoSecretKeyBytes()
public int getKyberCipherTextBytes()
public int getKyberEta1()
public static int getKyberEta2()
public int getKyberIndCpaBytes()
public static int getKyberIndCpaMsgBytes()
public int getKyberIndCpaPublicKeyBytes()
public int getKyberIndCpaSecretKeyBytes()
public int getKyberK()
public int getKyberPolyCompressedBytes()
public int getKyberPolyVecBytes()
public int getKyberPolyVecCompressedBytes()
public int getKyberPublicKeyBytes()
public int getKyberSecretKeyBytes()
public void getRandomBytes(byte[] buf)
public Symmetric getSymmetric()
public void init(SecureRandom random)
public byte[] kemDecrypt(byte[] secretKey,
byte[] cipherText)
public byte[] kemDecryptInternal(byte[] secretKey,
byte[] cipherText)
public byte[][] kemEncrypt(byte[] publicKeyInput,
byte[] randBytes)
public byte[][] kemEncryptInternal(byte[] publicKeyInput,
byte[] randBytes)