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

public Class CMCEKEMExtractor

extends Object
implements EncapsulatedSecretExtractor
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.EncapsulatedSecretExtractor
Imports
org.bouncycastle.crypto.EncapsulatedSecretExtractor

Field Summary

Modifier and TypeField and Description
private CMCEEngine
private CMCEKeyParameters

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 byte[]
extractSecret(byte[] encapsulation, int sessionKeySizeInBits)

public int
getEncapsulationLength()

Implements org.bouncycastle.crypto.EncapsulatedSecretExtractor.getEncapsulationLength.

Return the length in bytes of the encapsulation.
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

engineback to summary
private CMCEEngine engine
keyback to summary
private CMCEKeyParameters key

Constructor Detail

CMCEKEMExtractorback to summary
public CMCEKEMExtractor(CMCEPrivateKeyParameters 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.

extractSecretback to summary
public byte[] extractSecret(byte[] encapsulation, int sessionKeySizeInBits)
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.

initCipherback to summary
private void initCipher(CMCEParameters param)