[Ohrrpgce] SVN: teeemcee/9529 Replace old hash_file() with file_hash_SHA1() and file_hash64() function

subversion at HamsterRepublic.com subversion at HamsterRepublic.com
Sun Oct 1 07:43:19 PDT 2017


teeemcee
2017-10-01 07:43:19 -0700 (Sun, 01 Oct 2017)
405
Replace old hash_file() with file_hash_SHA1() and file_hash64() functions, and other SHA1 wrappers

file_hash64 returns the first 64 bits of the SHA1 of the file.
So instead of using a bad 32 bit hash, which could have caused collisions
concievably resulting in files not getting reloaded, we use a good 64 bit hash.
(Yes, I know it's not cryptographically secure, but we won't be using this for
security)
---
U   wip/SConscript
U   wip/game.bas
U   wip/game_udts.bi
U   wip/lib/sha1.bi
U   wip/lib/sha1.c
U   wip/lib/sha1.h
U   wip/util.bas
U   wip/util.bi
U   wip/yetmore2.bas


More information about the Ohrrpgce mailing list