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

public Class CMCEKEMGenerator

extends Object
implements EncapsulatedSecretGenerator
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.EncapsulatedSecretGenerator
Imports
java.security.SecureRandom, org.bouncycastle.crypto.EncapsulatedSecretGenerator, .SecretWithEncapsulation, org.bouncycastle.crypto.params.AsymmetricKeyParameter, org.bouncycastle.pqc.crypto.util.SecretWithEncapsulationImpl

Field Summary

Modifier and TypeField and Description
private final SecureRandom

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public SecretWithEncapsulation
generateEncapsulated(AsymmetricKeyParameter recipientKey)

Implements org.bouncycastle.crypto.EncapsulatedSecretGenerator.generateEncapsulated.

Generate secret/encapsulation based on the recipient public key.

public SecretWithEncapsulation
generateEncapsulated(AsymmetricKeyParameter recipientKey, int sessionKeySizeInBits)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

srback to summary
private final SecureRandom sr

Constructor Detail

CMCEKEMGeneratorback to summary
public CMCEKEMGenerator(SecureRandom random)

Method Detail

generateEncapsulatedback to summary
public SecretWithEncapsulation generateEncapsulated(AsymmetricKeyParameter recipientKey)

Implements org.bouncycastle.crypto.EncapsulatedSecretGenerator.generateEncapsulated.

Doc from org.bouncycastle.crypto.EncapsulatedSecretGenerator.generateEncapsulated.

Generate secret/encapsulation based on the recipient public key.

Returns:SecretWithEncapsulation

An SecretWithEncapsulation derived from the recipient public key.

generateEncapsulatedback to summary
public SecretWithEncapsulation generateEncapsulated(AsymmetricKeyParameter recipientKey, int sessionKeySizeInBits)