Package org.bouncycastle.pqc.crypto.cmce
Class CMCEKEMGenerator
java.lang.Object
org.bouncycastle.pqc.crypto.cmce.CMCEKEMGenerator
- All Implemented Interfaces:
EncapsulatedSecretGenerator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongenerateEncapsulated
(AsymmetricKeyParameter recipientKey) Generate secret/encapsulation based on the recipient public key.generateEncapsulated
(AsymmetricKeyParameter recipientKey, int sessionKeySizeInBits)
-
Constructor Details
-
CMCEKEMGenerator
-
-
Method Details
-
generateEncapsulated
Description copied from interface:EncapsulatedSecretGenerator
Generate secret/encapsulation based on the recipient public key.- Specified by:
generateEncapsulated
in interfaceEncapsulatedSecretGenerator
- Returns:
- An SecretWithEncapsulation derived from the recipient public key.
-
generateEncapsulated
public SecretWithEncapsulation generateEncapsulated(AsymmetricKeyParameter recipientKey, int sessionKeySizeInBits)
-