Bouncy Castle Cryptography Library 1.77.0

org.bouncycastle.crypto
Interface EncapsulatedSecretExtractor

All Known Implementing Classes:
ECIESKEMExtractor, RSAKEMExtractor

public interface EncapsulatedSecretExtractor


Method Summary
 byte[] extractSecret(byte[] encapsulation)
          Extract the secret based on the recipient private key.
 int getEncapsulationLength()
          Return the length in bytes of the encapsulation.
 

Method Detail

extractSecret

public byte[] extractSecret(byte[] encapsulation)
Extract the secret based on the recipient private key.
Parameters:
encapsulation - the encapsulated secret.

getEncapsulationLength

public int getEncapsulationLength()
Return the length in bytes of the encapsulation.
Returns:
length in bytes of an encapsulation for this parameter set.

Bouncy Castle Cryptography Library 1.77.0