Checksums and non-cryptographic hashes

Jenkins-Lookup3

Bob Jenkins's 2006 hash-table hash, used in the Linux kernel and many C libraries

unverified Root API only Not cryptographic
Unverified tier.

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 Jenkins-Lookup3

Jenkins-Lookup3 is a checksum / non-cryptographic hash from the Jenkins lookup3 family. It produces a 4-byte (32-bit) output. 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

lookup3 is a non-cryptographic hash function by Bob Jenkins, published in 2006 as a successor to his lookup2. It has been used in the Linux kernel, PostgreSQL and many hash-table implementations. It provides no security against a deliberate attacker.

lookup3 processes input in 12-byte blocks, adding three 32-bit words into three state variables and applying a mix function of subtractions, XORs and rotations. A final function avalanches the state. Variants return one 32-bit hash or two independent 32-bit hashes from one pass. Its output can be seeded. It is fast on 32-bit machines.

NextSSL includes jenkins-lookup3 wired from source and not yet verified. Bob Jenkins's earlier one-at-a-time and lookup2 hashes are related but produce different values. None of this provides security: the function has no secret key, and anyone can compute or deliberately collide its outputs. Stored values must match the variant. It needs no seed.

History

2006–2006
  1. Jenkins lookup3 published by Bob Jenkins

Security notes

lookup3 is not cryptographic and is vulnerable to deliberately constructed collisions. Use it only on trusted inputs.

Typical uses

Hash tablesLegacy compatibility with existing hash values

Sizes

FieldBytesMeaning
out4Output

Use it

from nextssl_demo import NextSSL

root = NextSSL(root=True)   # tier 'unverified' is reachable from the root API only
value = root.call("checksum", "jenkins-lookup3", None, b"123456789")[0]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Frequently asked questions

What is Jenkins-Lookup3?

Jenkins-Lookup3 is a checksum in the Jenkins lookup3 family. lookup3 is a non-cryptographic hash function by Bob Jenkins, published in 2006 as a successor to his lookup2.

What are the Jenkins-Lookup3 sizes?

In NextSSL, Jenkins-Lookup3 uses: output 4 bytes.

Who designed Jenkins-Lookup3 and when?

Jenkins-Lookup3 belongs to the Jenkins lookup3 family, first published in 2006 by Bob Jenkins.

Is Jenkins-Lookup3 safe to use?

Jenkins-Lookup3 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).