| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the name of the algorithm the cipher implements.Return the name of the algorithm the cipher implements. |
| public int | Returns: the block size for this cipher in bytes.Return the block size for this cipher (in bytes). |
| public void | init(boolean
if true the cipher is initialised for
encryption, if false for decryption. forEncryption, CipherParameters the key and other data required by the cipher. params)Initialise the cipher. |
| public int | Returns: the number of bytes processed and produced.the array containing the input data. input, int offset into the in array the data starts at. inOff, byte[] the array the output data will be copied into. output, int the offset into the out array the output will start at. outOff)Process one block of input from the array in and write it to the out array. |
| public void |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Return the name of the algorithm the cipher implements.
| |
| getBlockSize | back to summary |
|---|---|
| public int getBlockSize() Return the block size for this cipher (in bytes).
| |
| init | back to summary |
|---|---|
| public void init(boolean forEncryption, CipherParameters params) throws IllegalArgumentException Initialise the cipher.
| |
| processBlock | back to summary |
|---|---|
| public int processBlock(byte[] input, int inOff, byte[] output, int outOff) throws DataLengthException, IllegalStateException Process one block of input from the array in and write it to the out array.
| |
| reset | back to summary |
|---|---|
| public void reset() Reset the cipher. After resetting the cipher is in the same state as it was after the last init (if there was one). | |