ChaCha stream cipher variant with 20 rounds designed by Daniel J. Bernstein. Counter-based PRNG providing excellent statistical properties and high performance. Original specification with maximum security margin.
| Property | Value |
|---|---|
| Category | Random Number Generators |
| Sub-category | Pseudorandom Number Generator |
| Variant | ChaCha20 |
| Security status | π§ͺ Experimental |
| Complexity | Advanced |
| Inventor | Daniel J. Bernstein |
| Year | 2008 |
| Origin | πΊπΈ United States |
| Source | algorithms/random/chacha.js |
| Parameter | Supported values |
|---|---|
| Seed sizes | 32 bytes (256 bits) |
| Flag | Value |
|---|---|
IsDeterministic |
Yes |
IsCryptographicallySecure |
Yes |
Status: π§ͺ Experimental
No vulnerabilities are recorded for this implementation.
1 vector ship with this algorithm and run in the test suite. Byte values are hexadecimal.
Vector 1 β ChaCha20 zero key and nonce (32-byte key): First 16 bytes
| Field | Value |
|---|---|
seed |
0000000000000000000000000000000000000000000000000000000000000000 |
nonce |
0000000000000000 |
counter |
0000000000000000 |
outputSize |
16 |
input |
null |
expected |
76b8e0ada0f13d90405d6ae55386bd28 |