public class RFC3394WrapEngine extends 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) |
| Modifier and Type | Method and Description |
|---|---|
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)
public void init(boolean forWrapping,
CipherParameters param)
public String getAlgorithmName()
WrappergetAlgorithmName in interface Wrapperpublic byte[] unwrap(byte[] in,
int inOff,
int inLen)
throws InvalidCipherTextException
unwrap in interface WrapperInvalidCipherTextExceptionCopyright © 2015. All rights reserved.