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.
Modifier and Type | Field and Description |
---|---|
private BlockCipher |
engine |
private boolean |
forWrapping |
private byte[] |
iv |
private KeyParameter |
param |
Constructor and Description |
---|
RFC3394WrapEngine(BlockCipher engine) |
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) |
private BlockCipher engine
private KeyParameter param
private boolean forWrapping
private byte[] iv
public RFC3394WrapEngine(BlockCipher engine)
public void init(boolean forWrapping, CipherParameters param)
public java.lang.String getAlgorithmName()
Wrapper
getAlgorithmName
in interface Wrapper
public byte[] unwrap(byte[] in, int inOff, int inLen) throws InvalidCipherTextException
unwrap
in interface Wrapper
InvalidCipherTextException