Package org.bouncycastle.crypto.fips
Class FipsKeyUnwrapper<T extends Parameters>
java.lang.Object
org.bouncycastle.crypto.fips.FipsKeyUnwrapper<T>
- Type Parameters:
T- the parameters type associated with the final implementation of this key unwrapper.
- All Implemented Interfaces:
KeyUnwrapper<T>
- Direct Known Subclasses:
FipsKeyUnwrapperUsingSecureRandom
public abstract class FipsKeyUnwrapper<T extends Parameters>
extends Object
implements KeyUnwrapper<T>
Base class for the approved mode KeyUnwrapper implementations.
-
Method Summary
Modifier and TypeMethodDescriptionabstract byte[]unwrap(byte[] in, int inOff, int inLen) Return the unwrapped byte encoding of a key.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bouncycastle.crypto.KeyUnwrapper
getParameters
-
Method Details
-
unwrap
Description copied from interface:KeyUnwrapperReturn the unwrapped byte encoding of a key.- Specified by:
unwrapin interfaceKeyUnwrapper<T extends Parameters>- 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.
-