java.lang.Object | |
↳ | org.bouncycastle.crypto.modes.SICBlockCipher |
Implements the Segmented Integer Counter (SIC) mode on top of a simple block cipher. This mode is also known as CTR mode.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Basic constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the name of the algorithm the cipher implements.
| |||||||||||
Return the block size for this cipher (in bytes).
| |||||||||||
return the underlying block cipher that we are wrapping.
| |||||||||||
Initialise the cipher.
| |||||||||||
Process one block of input from the array in and write it to
the out array.
| |||||||||||
Reset the cipher.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.bouncycastle.crypto.BlockCipher
|
Return the name of the algorithm the cipher implements.
Return the block size for this cipher (in bytes).
return the underlying block cipher that we are wrapping.
Initialise the cipher.
forEncryption | if true the cipher is initialised for encryption, if false for decryption. |
---|---|
params | the key and other data required by the cipher. |
IllegalArgumentException |
---|
Process one block of input from the array in and write it to the out array.
in | the array containing the input data. |
---|---|
inOff | offset into the in array the data starts at. |
out | the array the output data will be copied into. |
outOff | the offset into the out array the output will start at. |
Reset the cipher. After resetting the cipher is in the same state as it was after the last init (if there was one).