| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private BlockCipher | |
| private boolean | |
| private int | |
| private byte[] | |
| private byte[] | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected byte | |
| private void | |
| private void | |
| public String | getAlgorithmName()
Implements org. |
| public int | getBlockSize()
Implements org. |
| 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. |
| 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. |
| public void | reset()
Implements org. |
| private void | setupDefaultParams()
this method sets default values to s and m parameters: s = blockSize; m = 2 * blockSize |
| blockSize | back to summary |
|---|---|
| private int blockSize | |
| byteCount | back to summary |
|---|---|
| private int byteCount | |
| cipher | back to summary |
|---|---|
| private BlockCipher cipher | |
| 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 | |
| Y | back to summary |
|---|---|
| private byte[] Y | |
| G3413OFBBlockCipher | back to summary |
|---|---|
public G3413OFBBlockCipher(BlockCipher cipher)
| |
| calculateByte | back to summary |
|---|---|
| protected byte calculateByte(byte in) Implements abstract org. | |
| generateR | back to summary |
|---|---|
| private void generateR() generate new R value | |
| generateY | back to summary |
|---|---|
| private void generateY() generate new Y 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. This leaves it in the same state it was at after the last init (if there was one). | |
| setupDefaultParams | back to summary |
|---|---|
| private void setupDefaultParams() this method sets default values to s and m parameters: | |