| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private int | |
| public static final int | |
| protected int[] | |
| private int | |
| private boolean | |
| private byte[] | |
| protected int | |
| protected static final byte[] | sigma
Deprecated
|
| private static final int | STATE_SIZE
Constants |
| protected static final byte[] | tau
Deprecated
|
| private static final int[] | |
| protected int[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Salsa20Engine(int
the number of rounds (must be an even number). rounds)Creates a Salsa20 engine with a specific number of rounds. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| protected void | |
| public String | |
| protected long | |
| protected int | |
| public long | |
| public void | init(boolean
whether or not we are for encryption. forEncryption, ParametersWithIV the parameters required to set up the cipher. params)initialise a Salsa20 cipher. |
| private boolean | |
| private boolean | |
| protected void | |
| public int | |
| public void | |
| protected void | |
| private void | |
| protected void | |
| protected void | |
| public byte | |
| protected static int | |
| public static void | |
| public long | |
| protected void | |
| public long |
| cW0 | back to summary |
|---|---|
| private int cW0 | |
| cW1 | back to summary |
|---|---|
| private int cW1 | |
| cW2 | back to summary |
|---|---|
| private int cW2 | |
| DEFAULT_ROUNDS | back to summary |
|---|---|
| public static final int DEFAULT_ROUNDS | |
| engineState | back to summary |
|---|---|
| protected int[] engineState | |
| index | back to summary |
|---|---|
| private int index | |
| initialised | back to summary |
|---|---|
| private boolean initialised | |
| keyStream | back to summary |
|---|---|
| private byte[] keyStream | |
| rounds | back to summary |
|---|---|
| protected int rounds | |
| sigma | back to summary |
|---|---|
| protected static final byte[] sigma
Deprecated
| |
| STATE_SIZE | back to summary |
|---|---|
| private static final int STATE_SIZE Constants | |
| tau | back to summary |
|---|---|
| protected static final byte[] tau
Deprecated
| |
| TAU_SIGMA | back to summary |
|---|---|
| private static final int[] TAU_SIGMA | |
| x | back to summary |
|---|---|
| protected int[] x | |
| Salsa20Engine | back to summary |
|---|---|
| public Salsa20Engine() Creates a 20 round Salsa20 engine. | |
| Salsa20Engine | back to summary |
|---|---|
| public Salsa20Engine(int rounds) Creates a Salsa20 engine with a specific number of rounds.
| |
| advanceCounter | back to summary |
|---|---|
| protected void advanceCounter(long diff) | |
| advanceCounter | back to summary |
|---|---|
| protected void advanceCounter() | |
| generateKeyStream | back to summary |
|---|---|
| protected void generateKeyStream(byte[] output) | |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() | |
| getCounter | back to summary |
|---|---|
| protected long getCounter() | |
| getNonceSize | back to summary |
|---|---|
| protected int getNonceSize() | |
| getPosition | back to summary |
|---|---|
| public long getPosition() | |
| init | back to summary |
|---|---|
| public void init(boolean forEncryption, ParametersWithIV params) initialise a Salsa20 cipher.
| |
| limitExceeded | back to summary |
|---|---|
| private boolean limitExceeded() | |
| limitExceeded | back to summary |
|---|---|
| private boolean limitExceeded(int len) | |
| packTauOrSigma | back to summary |
|---|---|
| protected void packTauOrSigma(int keyLength, int[] state, int stateOffset) | |
| processBytes | back to summary |
|---|---|
| public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) | |
| reset | back to summary |
|---|---|
| public void reset() | |
| resetCounter | back to summary |
|---|---|
| protected void resetCounter() | |
| resetLimitCounter | back to summary |
|---|---|
| private void resetLimitCounter() | |
| retreatCounter | back to summary |
|---|---|
| protected void retreatCounter(long diff) | |
| retreatCounter | back to summary |
|---|---|
| protected void retreatCounter() | |
| returnByte | back to summary |
|---|---|
| public byte returnByte(byte in) | |
| rotl | back to summary |
|---|---|
| protected static int rotl(int x, int y) Rotate left
| |
| salsaCore | back to summary |
|---|---|
| public static void salsaCore(int rounds, int[] input, int[] x) Salsa20 function
| |
| seekTo | back to summary |
|---|---|
| public long seekTo(long position) | |
| setKey | back to summary |
|---|---|
| protected void setKey(byte[] keyBytes, byte[] ivBytes) | |
| skip | back to summary |
|---|---|
| public long skip(long numberOfBytes) | |