Package org.bouncycastle.crypto.engines
Class RFC5649WrapEngine
java.lang.Object
org.bouncycastle.crypto.engines.RFC5649WrapEngine
- All Implemented Interfaces:
Wrapper
- Direct Known Subclasses:
AESWrapPadEngine,ARIAWrapPadEngine
An implementation of the AES Key Wrap with Padding specification
as described in RFC 5649.
For details on the specification see: https://tools.ietf.org/html/rfc5649
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the name of the algorithm the wrapper implements.voidinit(boolean forWrapping, CipherParameters param) byte[]unwrap(byte[] in, int inOff, int inLen) byte[]wrap(byte[] in, int inOff, int inLen)
-
Constructor Details
-
RFC5649WrapEngine
-
-
Method Details
-
init
-
getAlgorithmName
Description copied from interface:WrapperReturn the name of the algorithm the wrapper implements.- Specified by:
getAlgorithmNamein interfaceWrapper- Returns:
- the name of the algorithm the wrapper implements.
-
wrap
public byte[] wrap(byte[] in, int inOff, int inLen) -
unwrap
- Specified by:
unwrapin interfaceWrapper- Throws:
InvalidCipherTextException
-