Class MLKEMEngine

java.lang.Object
org.bouncycastle.crypto.kems.mlkem.MLKEMEngine

public class MLKEMEngine extends Object
  • Field Details

  • Method Details

    • 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(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)