Package org.bouncycastle.crypto
Interface KeyUnwrapper<T extends Parameters>
- Type Parameters:
T
- the parameter type for the un-wrapper.
- All Known Subinterfaces:
KeyUnwrapperUsingSecureRandom<T>
- All Known Implementing Classes:
FipsKeyUnwrapper
,FipsKeyUnwrapperUsingSecureRandom
public interface KeyUnwrapper<T extends Parameters>
Base interface for a key un-wrapper.
-
Method Summary
Modifier and TypeMethodDescriptionReturn the parameters for this un-wrapper.byte[]
unwrap
(byte[] in, int inOff, int inLen) Return the unwrapped byte encoding of a key.
-
Method Details
-
getParameters
T getParameters()Return the parameters for this un-wrapper.- Returns:
- the un-wrapper's parameters.
-
unwrap
Return the unwrapped byte encoding of a key.- Parameters:
in
- input data array.inOff
- offset into data array wrapped key starts at.inLen
- length of wrapped key data.- Returns:
- the unwrapped byte encoding of the key.
- Throws:
InvalidWrappingException
- if the wrapping cannot be processed.
-