XSalsa20 requires a 256 bit key, and a 192 bit nonce.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAlgorithmName()
Overrides org. Implements org. |
| protected int | |
| protected void | setKey(byte[] keyBytes, byte[] ivBytes)
Overrides org. |
| XSalsa20Engine | back to summary |
|---|---|
| public XSalsa20Engine() | |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Overrides org. Implements org. Doc from org. Return the name of the algorithm the cipher implements.
| |
| getNonceSize | back to summary |
|---|---|
| protected int getNonceSize() Overrides org. | |
| setKey | back to summary |
|---|---|
| protected void setKey(byte[] keyBytes, byte[] ivBytes) Overrides org. XSalsa20 key generation: process 256 bit input key and 128 bits of the input nonce using a core Salsa20 function without input addition to produce 256 bit working key and use that with the remaining 64 bits of nonce to initialize a standard Salsa20 engine state. | |