| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private BlockCipher | |
| private boolean | |
| private boolean | |
| private int | |
| private byte[] | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| private int | |
| 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). |
| 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. |
| private void | |
| 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 | |
| private void |
| blockSize | back to summary |
|---|---|
| private int blockSize | |
| cipher | back to summary |
|---|---|
| private BlockCipher cipher | |
| forEncryption | back to summary |
|---|---|
| private boolean forEncryption | |
| initialized | back to summary |
|---|---|
| private boolean initialized | |
| m | back to summary |
|---|---|
| private int m | |
| R | back to summary |
|---|---|
| private byte[] R | |
| R_init | back to summary |
|---|---|
| private byte[] R_init | |
| G3413CBCBlockCipher | back to summary |
|---|---|
public G3413CBCBlockCipher(BlockCipher cipher)
| |
| decrypt | back to summary |
|---|---|
| private int decrypt(byte[] in, int inOff, byte[] out, int outOff) | |
| encrypt | back to summary |
|---|---|
| private int encrypt(byte[] in, int inOff, byte[] out, int outOff) | |
| generateR | back to summary |
|---|---|
| private void generateR(byte[] C) generate new R value
| |
| 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).
| |
| init | back to summary |
|---|---|
| public void init(boolean forEncryption, CipherParameters params) throws IllegalArgumentException Implements org. Doc from org. Initialise the cipher.
| |
| initArrays | back to summary |
|---|---|
| private void initArrays() allocate memory for R and R_init arrays | |
| 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. After resetting the cipher is in the same state as it was after the last init (if there was one). | |
| setupDefaultParams | back to summary |
|---|---|
| private void setupDefaultParams() this method sets default values to m parameter: | |