public class MLKEMExtractor extends Object
| Constructor and Description |
|---|
MLKEMExtractor(MLKEMPrivateKeyParameters privateKey)Creates a new MLKEMExtractor instance. |
| Modifier and Type | Method and Description |
|---|---|
byte[] | extractSecret(byte[] encapsulation)Extract the shared secret from the encapsulated data. |
int | getEncapsulationLength()Get the encapsulation length. |
public MLKEMExtractor(MLKEMPrivateKeyParameters privateKey)
privateKey - the private key to use for decapsulationpublic byte[] extractSecret(byte[] encapsulation)
encapsulation - the encapsulated datapublic int getEncapsulationLength()