Merge pull request #68 from Golo-M/tonepipeshell_new

Added new algorithm for tonepipeshell
This commit is contained in:
herrcore
2025-03-04 18:46:39 -05:00
committed by GitHub
+9
View File
@@ -0,0 +1,9 @@
DESCRIPTION = "TOnePipeShell hash with seed 0x14096B (1313131)"
TYPE = 'unsigned_int'
TEST_1 = 734769215
def hash(data):
out_hash = 0
for c in data:
out_hash = (c + 0x14096B * out_hash) & 0xffffffff
return out_hash