| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private BlockCipher | |
| private boolean | |
| private byte[] | |
| private byte[] | |
| private boolean | |
| private int | |
| private byte[] | |
| private byte[] | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | G3413CFBBlockCipher(BlockCipher
base cipher cipher, int basic unit (defined as s) bitBlockSize)Base constructor with specific block size. |
| Modifier and Type | Method and Description |
|---|---|
| protected byte | |
| pack-priv byte[] | |
| pack-priv void | |
| public String | getAlgorithmName()
Implements org. |
| public int | getBlockSize()
Implements org. |
| public void | init(boolean
ignored because encryption and decryption are same 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 | |
| forEncryption | back to summary |
|---|---|
| private boolean forEncryption | |
| gamma | back to summary |
|---|---|
| private byte[] gamma | |
| inBuf | back to summary |
|---|---|
| private byte[] inBuf | |
| 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 | |
| s | back to summary |
|---|---|
| private final int s | |
| G3413CFBBlockCipher | back to summary |
|---|---|
| public G3413CFBBlockCipher(BlockCipher cipher) Base constructor.
| |
| G3413CFBBlockCipher | back to summary |
|---|---|
| public G3413CFBBlockCipher(BlockCipher cipher, int bitBlockSize) Base constructor with specific block size.
| |
| calculateByte | back to summary |
|---|---|
| protected byte calculateByte(byte in) Implements abstract org. | |
| createGamma | back to summary |
|---|---|
| pack-priv byte[] createGamma() creating gamma value
| |
| generateR | back to summary |
|---|---|
| pack-priv 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. Initialise the cipher and initialisation vector R. If an IV isn't passed as part of the parameter, the IV will be all zeros. An IV which is too short is handled in FIPS compliant fashion. R_init = IV, and R1 = R_init
| |
| 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. copy R_init into R and reset the underlying cipher. | |
| setupDefaultParams | back to summary |
|---|---|
| private void setupDefaultParams() this method sets default values to s and m parameters: | |