Package org.bouncycastle.crypto.engines
Class AESWrapEngine
- java.lang.Object
-
- org.bouncycastle.crypto.engines.RFC3394WrapEngine
-
- org.bouncycastle.crypto.engines.AESWrapEngine
-
- All Implemented Interfaces:
Wrapper
public class AESWrapEngine extends RFC3394WrapEngine
an implementation of the AES Key Wrapper from the NIST Key Wrap Specification.For further details see: https://csrc.nist.gov/encryption/kms/key-wrap.pdf.
-
-
Constructor Summary
Constructors Constructor Description AESWrapEngine()
Create a regular AESWrapEngine specifying the encrypt for wrapping, decrypt for unwrapping.AESWrapEngine(boolean useReverseDirection)
Create an AESWrapEngine where the underlying cipher is set to decrypt for wrapping, encrypt for unwrapping.
-
Method Summary
-
Methods inherited from class org.bouncycastle.crypto.engines.RFC3394WrapEngine
getAlgorithmName, init, unwrap, wrap
-
-
-
-
Constructor Detail
-
AESWrapEngine
public AESWrapEngine()
Create a regular AESWrapEngine specifying the encrypt for wrapping, decrypt for unwrapping.
-
AESWrapEngine
public AESWrapEngine(boolean useReverseDirection)
Create an AESWrapEngine where the underlying cipher is set to decrypt for wrapping, encrypt for unwrapping.- Parameters:
useReverseDirection
- true if underlying cipher should be used in decryption mode, false otherwise.
-
-