bjhash
function · storm · primitive
- Address
0x64b1d0· 493 bytes, up to0x64b3bc- Signature
uint32_t __fastcall (const uint8_t *key, uint32_t length, uint32_t initval)- Meaning
- Hashes bytes with Bob Jenkins' lookup2 from an initial value
- Confidence
- verified, proof two
- Name from
- the community database (idb)
- Finding
- storm/mount#hash-table-string-hash
- Test
storm::str_hash_ht
Finding: Hash-table string hash in storm: mounting the archives
SStrHashHT (0x64b3f0) copies at most the first 1023 bytes of a string, raising a to z by 0x20 and turning
/ into \, and returns bjhash(copy, length, 0). bjhash (0x64b1d0) is Bob Jenkins' lookup2: a and b
start at 0x9e3779b9 and c at the initial value; each 12-byte block adds three little-endian words and mixes;
then c gains the length, the last 0 to 11 bytes are added (c from its second byte up), and a last mix returns c.
The derivation is in the doc.
Callers 1
- SStrHashHT storm
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.