Class MLKEMEngine
java.lang.Object
org.bouncycastle.crypto.kems.mlkem.MLKEMEngine
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckModulus(byte[] t) booleancheckPrivateKey(byte[] encoding) byte[][]generateKemKeyPair(SecureRandom random) byte[][]generateKemKeyPairInternal(byte[] d, byte[] z) intintintstatic MLKEMEnginegetInstance(MLKEMParameters mlkemParameters) intbyte[]kemDecrypt(MLKEMPrivateKeyParameters privateKey, byte[] cipherText) byte[][]kemEncrypt(MLKEMPublicKeyParameters publicKey, byte[] randBytes)
-
Field Details
-
SymBytes
public static final int SymBytes- See Also:
-
SeedBytes
public static final int SeedBytes- See Also:
-
-
Method Details
-
getInstance
-
getCipherTextBytes
public int getCipherTextBytes() -
getIndCpaPublicKeyBytes
public int getIndCpaPublicKeyBytes() -
getIndCpaSecretKeyBytes
public int getIndCpaSecretKeyBytes() -
getPolyVecBytes
public int getPolyVecBytes() -
checkModulus
public boolean checkModulus(byte[] t) -
checkPrivateKey
public boolean checkPrivateKey(byte[] encoding) -
generateKemKeyPair
-
generateKemKeyPairInternal
public byte[][] generateKemKeyPairInternal(byte[] d, byte[] z) -
kemEncrypt
-
kemDecrypt
-