org.bouncycastle.pqc.crypto.mlkem

## Class MLKEMExtractor

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

-     public class MLKEMExtractor
      extends Object

  Extractor for ML-KEM private key operations. Provides functionality to extract shared secrets from encapsulated data using private keys.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MLKEMExtractor(MLKEMPrivateKeyParameters privateKey)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `extractSecret(byte[] encapsulation)`
    `int` | `getEncapsulationLength()`

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

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

- - ### Constructor Detail

    - #### MLKEMExtractor

          public MLKEMExtractor(MLKEMPrivateKeyParameters privateKey)

  - ### Method Detail

    - #### extractSecret

          public byte[] extractSecret(byte[] encapsulation)

    - #### getEncapsulationLength

          public int getEncapsulationLength()