Wrapper
AESWrapPadEngine
, ARIAWrapPadEngine
public class RFC5649WrapEngine extends java.lang.Object implements Wrapper
For details on the specification see: https://tools.ietf.org/html/rfc5649
Constructor | Description |
---|---|
RFC5649WrapEngine(BlockCipher engine) |
Modifier and Type | Method | 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 RFC5649WrapEngine(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