public class RFC3394WrapEngine extends java.lang.Object implements Wrapper
For further details see: http://www.ietf.org/rfc/rfc3394.txt and http://csrc.nist.gov/encryption/kms/key-wrap.pdf.
| Constructor and Description | 
|---|
RFC3394WrapEngine(BlockCipher engine)
Create a RFC 3394 WrapEngine specifying the encrypt for wrapping, decrypt for unwrapping. 
 | 
RFC3394WrapEngine(BlockCipher engine,
                 boolean useReverseDirection)
Create a RFC 3394 WrapEngine specifying the direction for wrapping and unwrapping.. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.String | 
getAlgorithmName()
Return 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)  | 
public RFC3394WrapEngine(BlockCipher engine)
engine - the block cipher to be used for wrapping.public RFC3394WrapEngine(BlockCipher engine, boolean useReverseDirection)
engine - the block cipher to be used for wrapping.useReverseDirection - true if engine should be used in decryption mode for wrapping, false otherwise.public void init(boolean forWrapping,
                 CipherParameters param)
public java.lang.String getAlgorithmName()
WrappergetAlgorithmName in interface Wrapperpublic byte[] unwrap(byte[] in,
                     int inOff,
                     int inLen)
              throws InvalidCipherTextException
unwrap in interface WrapperInvalidCipherTextException