Package org.bouncycastle.crypto.kems
Class RSAKEMGenerator
java.lang.Object
org.bouncycastle.crypto.kems.RSAKEMGenerator
- All Implemented Interfaces:
EncapsulatedSecretGenerator
The RSA Key Encapsulation Mechanism (RSA-KEM) from ISO 18033-2.
-
Constructor Summary
ConstructorDescriptionRSAKEMGenerator
(int keyLen, DerivationFunction kdf, SecureRandom rnd) Set up the RSA-KEM. -
Method Summary
Modifier and TypeMethodDescriptiongenerateEncapsulated
(AsymmetricKeyParameter recipientKey) Generate secret/encapsulation based on the recipient public key.
-
Constructor Details
-
RSAKEMGenerator
Set up the RSA-KEM.- Parameters:
kdf
- the key derivation function to be used.rnd
- the random source for the session key.
-
-
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.
-