Top Fields Constructors Methods
org.bouncycastle.pqc.crypto.xwing

public Class XWingKEMExtractor

extends Object
implements EncapsulatedSecretExtractor
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.EncapsulatedSecretExtractor
Imports
org.bouncycastle.crypto.EncapsulatedSecretExtractor, org.bouncycastle.crypto.agreement.X25519Agreement, org.bouncycastle.crypto.digests.SHA3Digest, org.bouncycastle.crypto.params.X25519PrivateKeyParameters, .X25519PublicKeyParameters, org.bouncycastle.pqc.crypto.mlkem.MLKEMExtractor, .MLKEMPrivateKeyParameters, org.bouncycastle.util.Arrays, .Strings

Field Summary

Modifier and TypeField and Description
private final MLKEMExtractor
private final XWingPrivateKeyParameters

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public byte[]
extractSecret(byte[]
the encapsulated secret.
encapsulation
)

Implements org.bouncycastle.crypto.EncapsulatedSecretExtractor.extractSecret.

Extract the secret based on the recipient private key.

public int
getEncapsulationLength()

Implements org.bouncycastle.crypto.EncapsulatedSecretExtractor.getEncapsulationLength.

Return the length in bytes of the encapsulation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

kemExtractorback to summary
private final MLKEMExtractor kemExtractor
keyback to summary
private final XWingPrivateKeyParameters key

Constructor Detail

XWingKEMExtractorback to summary
public XWingKEMExtractor(XWingPrivateKeyParameters privParams)

Method Detail

extractSecretback to summary
public byte[] extractSecret(byte[] encapsulation)

Implements org.bouncycastle.crypto.EncapsulatedSecretExtractor.extractSecret.

Doc from org.bouncycastle.crypto.EncapsulatedSecretExtractor.extractSecret.

Extract the secret based on the recipient private key.

Parameters
encapsulation:byte[]

the encapsulated secret.

Annotations
@Override
getEncapsulationLengthback to summary
public int getEncapsulationLength()

Implements org.bouncycastle.crypto.EncapsulatedSecretExtractor.getEncapsulationLength.

Doc from org.bouncycastle.crypto.EncapsulatedSecretExtractor.getEncapsulationLength.

Return the length in bytes of the encapsulation.

Returns:int

length in bytes of an encapsulation for this parameter set.