Isaac
Bob Jenkins' fast array-based generator, designed as a CSPRNG but not recommended
Source found and wired, correctness not fully proven. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.
About Isaac
Isaac is a non-cryptographic pseudorandom generator. It uses a 1–268,435,456-byte output and a 32-byte seed. Its registry entry cites ISAAC (Jenkins 1996), NOT cryptographically secure for new designs. NextSSL lists it in the unverified tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).
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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| out | 1 – 268,435,456 | Output |
| seed | 32 | Seed |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'unverified' is reachable from the root API only
buf = root.call("rng_fill", "isaac", "seed=42", 32)[0] # not for keys
nextssl_root_rng_fill("isaac", "seed=42", 32, out);
// prng is a root-only kind: use the C ABI (nextssl_root_*)
// or the Prng trait in nextssl-core/src/traits.rs
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Other ISAAC variants
1More non-cryptographic prngs
All 26Frequently asked questions
What is Isaac?
Isaac is a PRNG in the ISAAC family. ISAAC (Indirection, Shift, Accumulate, Add and Count) is a fast pseudorandom number generator designed in 1996 with cryptographic use in mind.
What are the Isaac sizes?
In NextSSL, Isaac uses: output 1 to 268,435,456 bytes.
Who designed Isaac and when?
Isaac belongs to the ISAAC family, first published in 1996 by Robert J. Jenkins Jr.. Its origin: Jenkins, ISAAC (Fast Software Encryption 1996).
Which standards define Isaac?
Isaac is referenced by ISAAC (Jenkins 1996), NOT cryptographically secure for new designs.
Is Isaac safe to use?
Isaac is in the unverified tier. Source found and wired, correctness not fully proven. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).
What other ISAAC variants are there?
NextSSL also registers isaac64 in the ISAAC family.
Related families
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