public class BaseCipher extends java.lang.Object implements Cipher
Cipher.Mode
Constructor and Description |
---|
BaseCipher(int ivsize,
int bsize,
java.lang.String algorithm,
java.lang.String transformation) |
Modifier and Type | Method and Description |
---|---|
int |
getBlockSize() |
int |
getIVSize() |
void |
init(Cipher.Mode mode,
byte[] key,
byte[] iv)
Initialize the cipher for encryption or decryption with the given private key and initialization vector
|
void |
update(byte[] input,
int inputOffset,
int inputLen)
Performs in-place encryption or decryption on the given data.
|
public BaseCipher(int ivsize, int bsize, java.lang.String algorithm, java.lang.String transformation)
public int getBlockSize()
getBlockSize
in interface Cipher
public int getIVSize()
public void init(Cipher.Mode mode, byte[] key, byte[] iv)
Cipher
public void update(byte[] input, int inputOffset, int inputLen)
Cipher