1 package org.bouncycastle.crypto.engines;
2 
3 /**
4  * an implementation of the AES Key Wrapper from the NIST Key Wrap
5  * Specification.
6  * <p>
7  * For further details see: <a href="http://csrc.nist.gov/encryption/kms/key-wrap.pdf">http://csrc.nist.gov/encryption/kms/key-wrap.pdf</a>.
8  */
9 public class AESWrapEngine
10     extends RFC3394WrapEngine
11 {
12     /**
13      * Create a regular AESWrapEngine specifying the encrypt for wrapping, decrypt for unwrapping.
14      */
AESWrapEngine()15     public AESWrapEngine()
16     {
17         super(new AESEngine());
18     }
19 
20     /**
21      * Create an AESWrapEngine where the underlying cipher is set to decrypt for wrapping, encrypt for unwrapping.
22      *
23      * @param useReverseDirection true if underlying cipher should be used in decryption mode, false otherwise.
24      */
AESWrapEngine(boolean useReverseDirection)25     public AESWrapEngine(boolean useReverseDirection)
26     {
27         super(new AESEngine(), useReverseDirection);
28     }
29 }
30