Class MLKEMEngine

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

class MLKEMEngine extends Object
  • Field Details

  • 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

      public byte[][] generateKemKeyPair(SecureRandom random)
    • generateKemKeyPairInternal

      public byte[][] generateKemKeyPairInternal(byte[] d, byte[] z)
    • hash_G

      static void hash_G(byte[] input, byte[] output)
    • kemEncrypt

      byte[][] kemEncrypt(MLKEMPublicKeyParameters publicKey, byte[] randBytes)
    • kemDecrypt

      byte[] kemDecrypt(MLKEMPrivateKeyParameters privateKey, byte[] cipherText)