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
-
Method Summary
Modifier and TypeMethodDescriptionReturn the name of the algorithm the wrapper implements.void
init
(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:Wrapper
Return the name of the algorithm the wrapper implements.- Specified by:
getAlgorithmName
in interfaceWrapper
- Returns:
- the name of the algorithm the wrapper implements.
-
wrap
public byte[] wrap(byte[] in, int inOff, int inLen) -
unwrap
- Specified by:
unwrap
in interfaceWrapper
- Throws:
InvalidCipherTextException
-