public class MLKEMEngine
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
SeedBytes |
static int |
SymBytes |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkModulus(byte[] t) |
boolean |
checkPrivateKey(byte[] encoding) |
byte[][] |
generateKemKeyPair(java.security.SecureRandom random) |
byte[][] |
generateKemKeyPairInternal(byte[] d,
byte[] z) |
int |
getCipherTextBytes() |
int |
getIndCpaPublicKeyBytes() |
int |
getIndCpaSecretKeyBytes() |
static MLKEMEngine |
getInstance(MLKEMParameters mlkemParameters) |
int |
getPolyVecBytes() |
byte[] |
kemDecrypt(MLKEMPrivateKeyParameters privateKey,
byte[] cipherText) |
byte[][] |
kemEncrypt(MLKEMPublicKeyParameters publicKey,
byte[] randBytes) |
public static final int SymBytes
public static final int SeedBytes
public static MLKEMEngine getInstance(MLKEMParameters mlkemParameters)
public int getCipherTextBytes()
public int getIndCpaPublicKeyBytes()
public int getIndCpaSecretKeyBytes()
public int getPolyVecBytes()
public boolean checkModulus(byte[] t)
public boolean checkPrivateKey(byte[] encoding)
public byte[][] generateKemKeyPair(java.security.SecureRandom random)
public byte[][] generateKemKeyPairInternal(byte[] d,
byte[] z)
public byte[][] kemEncrypt(MLKEMPublicKeyParameters publicKey, byte[] randBytes)
public byte[] kemDecrypt(MLKEMPrivateKeyParameters privateKey, byte[] cipherText)