| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private BlockCipher | |
| private boolean | |
| private byte[] | |
| private byte[] | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected byte | |
| private void | |
| public String | getAlgorithmName()
Implements org. Return the name of the algorithm the cipher implements. |
| public int | getBlockSize()
Implements org. Return the block size for this cipher (in bytes). |
| private void | |
| 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)Implements org. Initialise the cipher. |
| public int | processBlock(byte[]
the array containing the input data. in, int offset into the in array the data starts at. inOff, byte[] the array the output data will be copied into. out, int the offset into the out array the output will start at. outOff)Implements org. Process one block of input from the array in and write it to the out array. |
| public void | reset()
Implements org. reset the cipher. |
| byteCount | back to summary |
|---|---|
| private int byteCount | |
| engine | back to summary |
|---|---|
| private BlockCipher engine | |
| initialised | back to summary |
|---|---|
| private boolean initialised | |
| iv | back to summary |
|---|---|
| private byte[] iv | |
| ofbOutV | back to summary |
|---|---|
| private byte[] ofbOutV | |
| ofbV | back to summary |
|---|---|
| private byte[] ofbV | |
| KCTRBlockCipher | back to summary |
|---|---|
| public KCTRBlockCipher(BlockCipher engine) | |
| calculateByte | back to summary |
|---|---|
| protected byte calculateByte(byte b) Implements abstract org. | |
| checkCounter | back to summary |
|---|---|
| private void checkCounter() | |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Doc from org. Return the name of the algorithm the cipher implements.
| |
| getBlockSize | back to summary |
|---|---|
| public int getBlockSize() Implements org. Doc from org. Return the block size for this cipher (in bytes).
| |
| incrementCounterAt | back to summary |
|---|---|
| private void incrementCounterAt(int pos) | |
| init | back to summary |
|---|---|
| public void init(boolean forEncryption, CipherParameters params) throws IllegalArgumentException Implements org. Doc from org. Initialise the cipher.
| |
| processBlock | back to summary |
|---|---|
| public int processBlock(byte[] in, int inOff, byte[] out, int outOff) throws DataLengthException, IllegalStateException Implements org. Doc from org. Process one block of input from the array in and write it to the out array.
| |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Doc from org. reset the cipher. This leaves it in the same state it was at after the last init (if there was one). | |