| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| protected static final int | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | NullEngine(int
the block size in bytes. blockSize)Constructs a null engine with a specific block size. |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAlgorithmName()
Implements org. Return the name of the algorithm the cipher implements. |
| public int | getBlockSize()
Implements org. Return the block size for this cipher (in bytes). |
| 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. Initialise the cipher. |
| 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. Process one block of input from the array in and write it to the out array. |
| public void |
| blockSize | back to summary |
|---|---|
| private final int blockSize | |
| DEFAULT_BLOCK_SIZE | back to summary |
|---|---|
| protected static final int DEFAULT_BLOCK_SIZE | |
| initialised | back to summary |
|---|---|
| private boolean initialised | |
| NullEngine | back to summary |
|---|---|
| public NullEngine() Constructs a null engine with a block size of 1 byte. | |
| NullEngine | back to summary |
|---|---|
| public NullEngine(int blockSize) Constructs a null engine with a specific block size.
| |
| 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.
| |
| 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. After resetting the cipher is in the same state as it was after the last init (if there was one). | |