| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private int | |
| private final BlockCipher | |
| private byte[] | |
| private byte[] | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected byte | calculateByte(byte in)
Implements abstract org. |
| private void | |
| private void | |
| private void | |
| public String | getAlgorithmName()
Implements org. |
| public int | getBlockSize()
Implements org. |
| public long | getPosition()
Implements org. |
| private void | |
| private void | |
| 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. |
| 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. |
| public long | seekTo(long
the number of bytes in to set the cipher state to. position)Implements org. |
| public long | skip(long
the number of bytes to skip (positive forward, negative backwards). numberOfBytes)Implements org. |
| blockSize | back to summary |
|---|---|
| private final int blockSize | |
| byteCount | back to summary |
|---|---|
| private int byteCount | |
| cipher | back to summary |
|---|---|
| private final BlockCipher cipher Hides org. | |
| counter | back to summary |
|---|---|
| private byte[] counter | |
| counterOut | back to summary |
|---|---|
| private byte[] counterOut | |
| IV | back to summary |
|---|---|
| private byte[] IV | |
| SICBlockCipher | back to summary |
|---|---|
| public SICBlockCipher(BlockCipher c) Basic constructor.
| |
| adjustCounter | back to summary |
|---|---|
| private void adjustCounter(long n) | |
| calculateByte | back to summary |
|---|---|
| protected byte calculateByte(byte in) throws DataLengthException, IllegalStateException Implements abstract org. | |
| checkCounter | back to summary |
|---|---|
| private void checkCounter() | |
| decrementCounter | back to summary |
|---|---|
| private void decrementCounter() | |
| decrementCounterPow2 | back to summary |
|---|---|
| private void decrementCounterPow2(int pow2Div8) | |
| 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).
| |
| getPosition | back to summary |
|---|---|
| public long getPosition() Implements org. Doc from org. Return the current "position" of the cipher
| |
| incrementCounter | back to summary |
|---|---|
| private void incrementCounter(int offSet) | |
| incrementCounter | back to summary |
|---|---|
| private void incrementCounter() | |
| incrementCounterPow2 | back to summary |
|---|---|
| private void incrementCounterPow2(int pow2Div8) | |
| 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). | |
| seekTo | back to summary |
|---|---|
| public long seekTo(long position) Implements org. Doc from org. Reset the cipher and then skip forward to a given position.
| |
| skip | back to summary |
|---|---|
| public long skip(long numberOfBytes) Implements org. Doc from org. Skip numberOfBytes forwards, or backwards.
| |