public class RSAKEMGenerator extends java.lang.Object implements EncapsulatedSecretGenerator
Constructor and Description |
---|
RSAKEMGenerator(int keyLen,
DerivationFunction kdf,
java.security.SecureRandom rnd)
Set up the RSA-KEM.
|
Modifier and Type | Method and Description |
---|---|
SecretWithEncapsulation |
generateEncapsulated(AsymmetricKeyParameter recipientKey)
Generate secret/encapsulation based on the recipient public key.
|
public RSAKEMGenerator(int keyLen, DerivationFunction kdf, java.security.SecureRandom rnd)
kdf
- the key derivation function to be used.rnd
- the random source for the session key.public SecretWithEncapsulation generateEncapsulated(AsymmetricKeyParameter recipientKey)
EncapsulatedSecretGenerator
generateEncapsulated
in interface EncapsulatedSecretGenerator