1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Fixed names of hash functions that were overwriting the hash types.

This commit is contained in:
Sandu Liviu Catalin 2016-03-12 22:58:03 +02:00
parent 5c81af5026
commit a00e8c964f

View File

@ -209,12 +209,12 @@ void Register_Crypt(HSQUIRRELVM vm)
RegisterWrapper< SHA256 >(hashns, _SC("SHA256"));
RegisterWrapper< SHA3 >(hashns, _SC("SHA3"));
hashns.SquirrelFunc(_SC("CRC32"), &HashF< CRC32 >);
hashns.SquirrelFunc(_SC("Keccak"), &HashF< Keccak >);
hashns.SquirrelFunc(_SC("MD5"), &HashF< MD5 >);
hashns.SquirrelFunc(_SC("SHA1"), &HashF< SHA1 >);
hashns.SquirrelFunc(_SC("SHA256"), &HashF< SHA256 >);
hashns.SquirrelFunc(_SC("SHA3"), &HashF< SHA3 >);
hashns.SquirrelFunc(_SC("GetCRC32"), &HashF< CRC32 >);
hashns.SquirrelFunc(_SC("GetKeccak"), &HashF< Keccak >);
hashns.SquirrelFunc(_SC("GetMD5"), &HashF< MD5 >);
hashns.SquirrelFunc(_SC("GetSHA1"), &HashF< SHA1 >);
hashns.SquirrelFunc(_SC("GetSHA256"), &HashF< SHA256 >);
hashns.SquirrelFunc(_SC("GetSHA3"), &HashF< SHA3 >);
RootTable(vm).Bind(_SC("SqHash"), hashns);