org.bouncycastle.crypto.kems.mlkem
Class MLKEMEngine
java.lang.Object
org.bouncycastle.crypto.kems.mlkem.MLKEMEngine
- public class MLKEMEngine
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SymBytes
public static final int SymBytes
- See Also:
- Constant Field Values
SeedBytes
public static final int SeedBytes
- See Also:
- Constant Field Values
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)