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

Revert hash functions to their previous names.

This commit is contained in:
Sandu Liviu Catalin 2016-03-11 21:38:06 +02:00
parent 9ca2c7ca7d
commit 386c1d5254

View File

@ -209,12 +209,12 @@ void Register_Crypt(HSQUIRRELVM vm)
RegisterWrapper< SHA256 >(hashns, _SC("SHA256")); RegisterWrapper< SHA256 >(hashns, _SC("SHA256"));
RegisterWrapper< SHA3 >(hashns, _SC("SHA3")); RegisterWrapper< SHA3 >(hashns, _SC("SHA3"));
hashns.SquirrelFunc(_SC("SqCRC32"), &HashF< CRC32 >); hashns.SquirrelFunc(_SC("CRC32"), &HashF< CRC32 >);
hashns.SquirrelFunc(_SC("SqKeccak"), &HashF< Keccak >); hashns.SquirrelFunc(_SC("Keccak"), &HashF< Keccak >);
hashns.SquirrelFunc(_SC("SqMD5"), &HashF< MD5 >); hashns.SquirrelFunc(_SC("MD5"), &HashF< MD5 >);
hashns.SquirrelFunc(_SC("SqSHA1"), &HashF< SHA1 >); hashns.SquirrelFunc(_SC("SHA1"), &HashF< SHA1 >);
hashns.SquirrelFunc(_SC("SqSHA256"), &HashF< SHA256 >); hashns.SquirrelFunc(_SC("SHA256"), &HashF< SHA256 >);
hashns.SquirrelFunc(_SC("SqSHA3"), &HashF< SHA3 >); hashns.SquirrelFunc(_SC("SHA3"), &HashF< SHA3 >);
RootTable(vm).Bind(_SC("SqHash"), hashns); RootTable(vm).Bind(_SC("SqHash"), hashns);