Class MLKEMGenerator

java.lang.Object
org.bouncycastle.pqc.crypto.mlkem.MLKEMGenerator
All Implemented Interfaces:
EncapsulatedSecretGenerator

public class MLKEMGenerator extends Object implements EncapsulatedSecretGenerator
  • Constructor Details

    • MLKEMGenerator

      public MLKEMGenerator(SecureRandom random)
  • Method Details

    • generateEncapsulated

      public org.bouncycastle.crypto.SecretWithEncapsulation generateEncapsulated(AsymmetricKeyParameter recipientKey)
      Description copied from interface: EncapsulatedSecretGenerator
      Generate secret/encapsulation based on the recipient public key.
      Specified by:
      generateEncapsulated in interface EncapsulatedSecretGenerator
      Returns:
      An SecretWithEncapsulation derived from the recipient public key.
    • internalGenerateEncapsulated

      public org.bouncycastle.crypto.SecretWithEncapsulation internalGenerateEncapsulated(AsymmetricKeyParameter recipientKey, byte[] randBytes)