T
- the type for the parameters used by this extractor.public interface EncapsulatedSecretExtractor<T extends Parameters>
Modifier and Type | Method and Description |
---|---|
SecretWithEncapsulation |
extractSecret(byte[] encapsulation,
int offset,
int length)
Open up an encapsulation and extract the key material it contains.
|
T |
getParameters()
Return the parameters being used by this extractor.
|
T getParameters()
SecretWithEncapsulation extractSecret(byte[] encapsulation, int offset, int length) throws InvalidCipherTextException
encapsulation
- the data that is carrying the secret.offset
- the offset into encapsulation that the actual encapsulation starts at.length
- the length of the encapsulation stored in the encapsulation array.InvalidCipherTextException
- if there is an issue opening the encapsulation.