org.bouncycastle.pqc.crypto.mlkem

## Class MLKEMGenerator

- java.lang.Object
- - org.bouncycastle.pqc.crypto.mlkem.MLKEMGenerator

-     public class MLKEMGenerator
      extends Object

  Generator for ML-KEM encapsulated secrets. Creates encapsulated secrets for secure key exchange in post-quantum cryptography.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MLKEMGenerator(SecureRandom random)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `SecretWithEncapsulation` | `generateEncapsulated(AsymmetricKeyParameter recipientKey)`
    `SecretWithEncapsulation` | `internalGenerateEncapsulated(AsymmetricKeyParameter recipientKey, byte[] randBytes)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MLKEMGenerator

          public MLKEMGenerator(SecureRandom random)

  - ### Method Detail

    - #### generateEncapsulated

          public SecretWithEncapsulation generateEncapsulated(AsymmetricKeyParameter recipientKey)

    - #### internalGenerateEncapsulated

          public SecretWithEncapsulation internalGenerateEncapsulated(AsymmetricKeyParameter recipientKey,
                                                                      byte[] randBytes)