| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private static final int | |
| private byte[] | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAlgorithmName()
Implements org. |
| public void | init(boolean
whether or not we are for encryption. forEncryption, CipherParameters the parameters required to set up the cipher. params)Implements org. |
| public int | processBytes(byte[]
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)Implements org. |
| public void | |
| public byte | returnByte(byte
the byte to be processed. in)Implements org. |
| private void |
| engineState | back to summary |
|---|---|
| private byte[] engineState | |
| STATE_LENGTH | back to summary |
|---|---|
| private static final int STATE_LENGTH | |
| workingKey | back to summary |
|---|---|
| private byte[] workingKey | |
| x | back to summary |
|---|---|
| private int x | |
| y | back to summary |
|---|---|
| private int y | |
| ARC4Engine | back to summary |
|---|---|
| pack-priv ARC4Engine() | |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Doc from org. Return the name of the algorithm the cipher implements.
| |
| init | back to summary |
|---|---|
| public void init(boolean forEncryption, CipherParameters params) Implements org. initialise a RC4 cipher.
| |
| processBytes | back to summary |
|---|---|
| public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) Implements org. Doc from org. process a block of bytes from in putting the result into out.
| |
| 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). | |
| returnByte | back to summary |
|---|---|
| public byte returnByte(byte in) Implements org. Doc from org. encrypt/decrypt a single byte returning the result.
| |
| setKey | back to summary |
|---|---|
| private void setKey(byte[] keyBytes) | |