Modifier and Type | Field and Description |
---|---|
private CBCBlockCipher |
engine |
private boolean |
forWrapping |
private ParametersWithIV |
param |
private java.security.SecureRandom |
rand |
Constructor and Description |
---|
RFC3211WrapEngine(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 CBCBlockCipher engine
private ParametersWithIV param
private boolean forWrapping
private java.security.SecureRandom rand
public RFC3211WrapEngine(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