Located in compilation unit of org.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private byte[] | |
| private byte[] | |
| private BlockCipher | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| public | MacCFBBlockCipher(BlockCipher
the block cipher to be used as the basis of the
feedback mode. cipher, int bitBlockSize)Basic constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the name of the underlying algorithm followed by "/CFB" and the block size in bits.return the algorithm name and mode. |
| public int | Returns: the block size we are operating at (in bytes).return the block size we are operating at. |
| pack-priv void | |
| public void | |
| public int | Returns: the number of bytes processed and produced.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)Process one block of input from the array in and write it to the out array. |
| public void |
| blockSize | back to summary |
|---|---|
| private int blockSize | |
| cfbOutV | back to summary |
|---|---|
| private byte[] cfbOutV | |
| cfbV | back to summary |
|---|---|
| private byte[] cfbV | |
| cipher | back to summary |
|---|---|
| private BlockCipher cipher | |
| IV | back to summary |
|---|---|
| private byte[] IV | |
| MacCFBBlockCipher | back to summary |
|---|---|
| public MacCFBBlockCipher(BlockCipher cipher, int bitBlockSize) Basic constructor.
| |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() return the algorithm name and mode.
| |
| getBlockSize | back to summary |
|---|---|
| public int getBlockSize() return the block size we are operating at.
| |
| getMacBlock | back to summary |
|---|---|
| pack-priv void getMacBlock(byte[] mac) | |
| init | back to summary |
|---|---|
| public void init(CipherParameters params) throws IllegalArgumentException Initialise the cipher and, possibly, the initialisation vector (IV). 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.
| |
| processBlock | back to summary |
|---|---|
| public int processBlock(byte[] in, int inOff, byte[] out, 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 chaining vector back to the IV and reset the underlying cipher. | |