public class RSAKEMExtractor extends java.lang.Object implements EncapsulatedSecretExtractor
| Constructor and Description |
|---|
RSAKEMExtractor(RSAKeyParameters privKey,
int keyLen,
DerivationFunction kdf)
Set up the RSA-KEM.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
extractSecret(byte[] encapsulation)
Extract the secret based on the recipient private key.
|
int |
getEncapsulationLength()
Return the length in bytes of the encapsulation.
|
public RSAKEMExtractor(RSAKeyParameters privKey, int keyLen, DerivationFunction kdf)
privKey - the decryption key.keyLen - length in bytes of key to generate.kdf - the key derivation function to be used.public byte[] extractSecret(byte[] encapsulation)
EncapsulatedSecretExtractorextractSecret in interface EncapsulatedSecretExtractorencapsulation - the encapsulated secret.public int getEncapsulationLength()
EncapsulatedSecretExtractorgetEncapsulationLength in interface EncapsulatedSecretExtractor