Constructor | Description |
---|---|
RC2WrapEngine() |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getAlgorithmName() |
Method getAlgorithmName
|
void |
init(boolean forWrapping,
CipherParameters param) |
Method init
|
byte[] |
unwrap(byte[] in,
int inOff,
int inLen) |
Method unwrap
|
byte[] |
wrap(byte[] in,
int inOff,
int inLen) |
Method wrap
|
public void init(boolean forWrapping, CipherParameters param)
public java.lang.String getAlgorithmName()
getAlgorithmName
in interface Wrapper
public byte[] wrap(byte[] in, int inOff, int inLen)
public byte[] unwrap(byte[] in, int inOff, int inLen) throws InvalidCipherTextException
unwrap
in interface Wrapper
in
- byte array containing the wrapped key.inOff
- offset into in array that the wrapped key starts at.inLen
- length of wrapped key data.InvalidCipherTextException