ISAAC
Bob Jenkins' fast array-based generator, designed as a CSPRNG but not recommended
Overview
ISAAC (Indirection, Shift, Accumulate, Add and Count) is a fast pseudorandom number generator designed in 1996 with cryptographic use in mind. It has no practical break, but it has not received the analysis expected of a modern cryptographic primitive and has known weak-state issues, so it should not be used for new security designs.
ISAAC keeps an array of 256 words plus three accumulators. Each step mixes an accumulator with shifted copies of itself and with an array entry selected indirectly by the state, writes back a new array entry and outputs a value fetched indirectly as well. The indirection makes outputs depend on state in a data-dependent way, which was intended to frustrate cryptanalysis and also yields high speed.
Published analysis has found weak initial states and distinguishing properties, and data-dependent memory lookups make constant-time implementation impractical, leaking through cache timing. ISAAC was historically used in some Unix tools such as the shred utility. Two variants are present: isaac (32-bit words) and isaac64 (64-bit words). Modern operating systems and cryptographic libraries now use ChaCha20-based generators for this role instead.
History
1996–1996ISAAC published by Robert J. Jenkins Jr.
How it works
- Initialise the 256-word array and accumulators from a seed with a mixing function.
- For each word, update the accumulator with shifts and an array entry, using state bits as an index.
- Write a new array entry and output a value read through a second indirection.
- Increment the counter after each batch of 256 outputs.
Security notes
Not recommended for cryptographic use. ISAAC was intended as a CSPRNG, but weak states, limited cryptanalysis and cache-timing leakage from secret-dependent indexing mean it is not recommended. Use the OS RNG, ChaCha20-based generators or HMAC_DRBG instead.
Typical uses
Variants in NextSSL
2Frequently asked questions
Which ISAAC variants does NextSSL include?
NextSSL registers 2 ISAAC variants: isaac, isaac64.
Families with similar names
Other non-cryptographic prngs
All 26Related
ARX stream cipher with a one-time Poly1305 MAC; fast and constant-time in software
HMAC_DRBGNIST SP 800-90A deterministic random bit generator built on HMAC
HMACThe standard way to build a MAC from a cryptographic hash (RFC 2104, FIPS 198-1)
xoshiro / xoroshiroFast linear generators from Blackman and Vigna for simulation, not for secrets
Operating system RNGThe kernel's cryptographically secure random number generator, the right default
ChaChaBernstein's ARX stream cipher; ChaCha20 secures much of today's TLS, SSH and VPN traffic