Hawkynt

ChaCha20 (PRNG)

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.

Properties

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

Parameters

Parameter Supported values
Seed sizes 32 bytes (256 bits)

Capabilities

Flag Value
IsDeterministic Yes
IsCryptographicallySecure Yes

Security

Status: πŸ§ͺ Experimental

No vulnerabilities are recorded for this implementation.

Documentation

References

Test vectors

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

← All algorithms