public class BaseCipher extends Object implements Cipher
Cipher.Mode| Constructor and Description |
|---|
BaseCipher(int ivsize,
int bsize,
String algorithm,
String transformation) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm() |
int |
getBlockSize() |
int |
getIVSize() |
String |
getTransformation() |
void |
init(Cipher.Mode mode,
byte[] key,
byte[] iv)
Initialize the cipher for encryption or decryption with
the given key and initialization vector
|
protected static byte[] |
resize(byte[] data,
int size) |
String |
toString() |
void |
update(byte[] input,
int inputOffset,
int inputLen)
Performs in-place encryption or decryption on the given data.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckSupported, updateprotected Cipher cipher
public String getAlgorithm()
getAlgorithm in interface CipherInformationpublic String getTransformation()
getTransformation in interface CipherInformationpublic int getIVSize()
getIVSize in interface CipherInformationpublic int getBlockSize()
getBlockSize in interface CipherInformationpublic void init(Cipher.Mode mode, byte[] key, byte[] iv) throws Exception
Cipherpublic void update(byte[] input,
int inputOffset,
int inputLen)
throws Exception
Cipherprotected static byte[] resize(byte[] data,
int size)
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.