benilla-re systems structs docs

SStrHashHT

function · storm · primitive

Address
0x64b3f0 · 100 bytes, up to 0x64b453
Signature
uint32_t __stdcall (const char *s)
Meaning
Hashes a string folded to upper case with / read as \ through bjhash with initial value 0
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 75

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.