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