Class MLKEMEngine
java.lang.Object
org.bouncycastle.pqc.crypto.mlkem.MLKEMEngine
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int(package private) static final int(package private) static final int(package private) static final int(package private) static final int(package private) static final int(package private) static final int(package private) static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) booleancheckModulus(byte[] t) (package private) booleancheckPrivateKey(byte[] encoding) byte[][]generateKemKeyPair(SecureRandom random) byte[][]generateKemKeyPairInternal(byte[] d, byte[] z) (package private) int(package private) intgetEta1()(package private) int(package private) int(package private) intgetK()(package private) int(package private) int(package private) int(package private) int(package private) int(package private) static voidhash_G(byte[] input, byte[] output) (package private) byte[]kemDecrypt(MLKEMPrivateKeyParameters privateKey, byte[] cipherText) (package private) byte[][]kemEncrypt(MLKEMPublicKeyParameters publicKey, byte[] randBytes)
-
Field Details
-
N
static final int N- See Also:
-
Q
static final int Q- See Also:
-
Qinv
static final int Qinv- See Also:
-
SymBytes
static final int SymBytes- See Also:
-
PolyBytes
static final int PolyBytes- See Also:
-
Eta2
static final int Eta2- See Also:
-
SeedBytes
static final int SeedBytes- See Also:
-
-
Constructor Details
-
MLKEMEngine
MLKEMEngine(int k)
-
-
Method Details
-
getCipherTextBytes
int getCipherTextBytes() -
getSecretKeyBytes
int getSecretKeyBytes() -
getIndCpaPublicKeyBytes
int getIndCpaPublicKeyBytes() -
getIndCpaSecretKeyBytes
int getIndCpaSecretKeyBytes() -
getPublicKeyBytes
int getPublicKeyBytes() -
getPolyCompressedBytes
int getPolyCompressedBytes() -
getK
int getK() -
getPolyVecBytes
int getPolyVecBytes() -
getPolyVecCompressedBytes
int getPolyVecCompressedBytes() -
getEta1
int getEta1() -
checkModulus
boolean checkModulus(byte[] t) -
checkPrivateKey
boolean checkPrivateKey(byte[] encoding) -
generateKemKeyPair
-
generateKemKeyPairInternal
public byte[][] generateKemKeyPairInternal(byte[] d, byte[] z) -
hash_G
static void hash_G(byte[] input, byte[] output) -
kemEncrypt
-
kemDecrypt
-