| Access | Constructor and Description |
|---|---|
| public | |
| public | ChaChaEngine(int
the number of rounds (must be an even number). rounds)Creates a ChaCha engine with a specific number of rounds. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| public static void | |
| protected void | generateKeyStream(byte[] output)
Overrides org. |
| public String | getAlgorithmName()
Overrides org. Implements org. |
| protected long | |
| protected void | |
| protected void | |
| protected void | |
| protected void | setKey(byte[] keyBytes, byte[] ivBytes)
Overrides org. |
| ChaChaEngine | back to summary |
|---|---|
| public ChaChaEngine() Creates a 20 rounds ChaCha engine. | |
| ChaChaEngine | back to summary |
|---|---|
| public ChaChaEngine(int rounds) Creates a ChaCha engine with a specific number of rounds.
| |
| advanceCounter | back to summary |
|---|---|
| protected void advanceCounter(long diff) Overrides org. | |
| advanceCounter | back to summary |
|---|---|
| protected void advanceCounter() Overrides org. | |
| chachaCore | back to summary |
|---|---|
| public static void chachaCore(int rounds, int[] input, int[] x) ChaCha function
| |
| generateKeyStream | back to summary |
|---|---|
| protected void generateKeyStream(byte[] output) Overrides org. | |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Overrides org. Implements org. Doc from org. Return the name of the algorithm the cipher implements.
| |
| getCounter | back to summary |
|---|---|
| protected long getCounter() Overrides org. | |
| resetCounter | back to summary |
|---|---|
| protected void resetCounter() Overrides org. | |
| retreatCounter | back to summary |
|---|---|
| protected void retreatCounter(long diff) Overrides org. | |
| retreatCounter | back to summary |
|---|---|
| protected void retreatCounter() Overrides org. | |
| setKey | back to summary |
|---|---|
| protected void setKey(byte[] keyBytes, byte[] ivBytes) Overrides org. | |