Merge pull request #55 from Tressos-Aristomenis/sdbm_65599_x64

64-bit SDBM hash function with constant 65599
This commit is contained in:
herrcore
2024-01-19 21:42:39 -05:00
committed by GitHub
+10
View File
@@ -0,0 +1,10 @@
DESCRIPTION = "The original SDBM hash function with the constant 65599. Used by Emotet malware."
TYPE = 'unsigned_long'
TEST_1 = 18326187587583583519
def hash(data):
hsh = 0
for d in data:
hsh = d + 0x1003f * hsh
return hsh & 0xffffffffffffffff