Class MLKEMEngine
- java.lang.Object
-
- org.bouncycastle.crypto.kems.mlkem.MLKEMEngine
-
public class MLKEMEngine extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckModulus(byte[] t)booleancheckPrivateKey(byte[] encoding)byte[][]generateKemKeyPair(java.security.SecureRandom random)byte[][]generateKemKeyPairInternal(byte[] d, byte[] z)intgetCipherTextBytes()intgetIndCpaPublicKeyBytes()intgetIndCpaSecretKeyBytes()static MLKEMEnginegetInstance(MLKEMParameters mlkemParameters)intgetPolyVecBytes()byte[]kemDecrypt(MLKEMPrivateKeyParameters privateKey, byte[] cipherText)byte[][]kemEncrypt(MLKEMPublicKeyParameters publicKey, byte[] randBytes)
-
-
-
Field Detail
-
SymBytes
public static final int SymBytes
- See Also:
- Constant Field Values
-
SeedBytes
public static final int SeedBytes
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static MLKEMEngine getInstance(MLKEMParameters mlkemParameters)
-
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
public byte[][] generateKemKeyPair(java.security.SecureRandom random)
-
generateKemKeyPairInternal
public byte[][] generateKemKeyPairInternal(byte[] d, byte[] z)
-
kemEncrypt
public byte[][] kemEncrypt(MLKEMPublicKeyParameters publicKey, byte[] randBytes)
-
kemDecrypt
public byte[] kemDecrypt(MLKEMPrivateKeyParameters privateKey, byte[] cipherText)
-
-