| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the name of the algorithm the cipher implements.Return the name of the algorithm the cipher implements. |
| 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)Initialise the cipher. |
| public int | Returns: the number of bytes produced - should always be len.the input byte array. in, int the offset into the in array where the data to be processed starts. inOff, int the number of bytes to be processed. len, byte[] the output buffer the processed bytes go into. out, int the offset into the output byte array the processed data starts at. outOff)process a block of bytes from in putting the result into out. |
| public void | |
| public byte | Returns: the result of processing the input byte.the byte to be processed. in)encrypt/decrypt a single byte returning the result. |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Return the name of the algorithm the cipher implements.
| |
| init | back to summary |
|---|---|
| public void init(boolean forEncryption, CipherParameters params) throws IllegalArgumentException Initialise the cipher.
| |
| processBytes | back to summary |
|---|---|
| public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) throws DataLengthException process a block of bytes from in putting the result into out.
| |
| reset | back to summary |
|---|---|
| public void reset() reset the cipher. This leaves it in the same state it was at after the last init (if there was one). | |
| returnByte | back to summary |
|---|---|
| public byte returnByte(byte in) encrypt/decrypt a single byte returning the result.
| |