| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private final int[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static int | Returns: A value >=0 and < 256The byte to test against. aByte)This will ensure that the value for a byte >=0. |
| public void | |
| private static void | swap(int[]
The array to swap from. data, int The index of the first element to swap. firstIndex, int The index of the second element to swap. secondIndex)This will swap two values in an array. |
| public void | write(byte
The byte to encrypt. aByte, OutputStream The stream to write to. output)This will encrypt and write the next byte. |
| public void | write(byte[]
The data to encrypt. data, OutputStream The stream to write to. output)This will encrypt and write the data. |
| public void | write(InputStream
The data to encrypt. data, OutputStream The stream to write to. output)This will encrypt and write the data. |
| public void | write(byte[]
The data to encrypt. data, int The offset into the array to start reading data from. offset, int The number of bytes to attempt to read. len, OutputStream The stream to write to. output)This will encrypt and write the data. |
| b | back to summary |
|---|---|
| private int b | |
| c | back to summary |
|---|---|
| private int c | |
| salt | back to summary |
|---|---|
| private final int[] salt | |
| RC4Cipher | back to summary |
|---|---|
| pack-priv RC4Cipher() Constructor. | |
| fixByte | back to summary |
|---|---|
| private static int fixByte(byte aByte) This will ensure that the value for a byte >=0.
| |
| setKey | back to summary |
|---|---|
| public void setKey(byte[] key) This will reset the key to be used.
| |
| swap | back to summary |
|---|---|
| private static void swap(int[] data, int firstIndex, int secondIndex) This will swap two values in an array.
| |
| write | back to summary |
|---|---|
| public void write(byte aByte, OutputStream output) throws IOException This will encrypt and write the next byte.
| |
| write | back to summary |
|---|---|
| public void write(byte[] data, OutputStream output) throws IOException This will encrypt and write the data.
| |
| write | back to summary |
|---|---|
| public void write(InputStream data, OutputStream output) throws IOException This will encrypt and write the data.
| |
| write | back to summary |
|---|---|
| public void write(byte[] data, int offset, int len, OutputStream output) throws IOException This will encrypt and write the data.
| |