public class XWingKEMExtractor extends java.lang.Object implements EncapsulatedSecretExtractor
This class allows the recipient to derive the shared secret from a given ciphertext using their private key, as defined in the X-Wing KEM specification.
| Constructor and Description |
|---|
XWingKEMExtractor(XWingPrivateKeyParameters privParams) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
extractSecret(byte[] encapsulation)
Extract the secret based on the recipient private key.
|
int |
getEncapsulationLength()
Return the length in bytes of the encapsulation.
|
public XWingKEMExtractor(XWingPrivateKeyParameters privParams)
public byte[] extractSecret(byte[] encapsulation)
EncapsulatedSecretExtractorextractSecret in interface EncapsulatedSecretExtractorencapsulation - the encapsulated secret.public int getEncapsulationLength()
EncapsulatedSecretExtractorgetEncapsulationLength in interface EncapsulatedSecretExtractor