08.08.2013, 16:32
There's a bug when I try to use sha2_hmac:
I think it's most definitely related to this piece of code:
Can you/someone fix it? I tried to compile it with code::blocks, but failed.
Код:
Erorr native function sha2_file: Expecting 3 parameter(s), but found 4
Код:
AMX_NATIVE_INFO Encrypt_natives[] = { { "sha1", n_sha1 }, { "sha1_file", n_sha1_file }, { "sha1_hmac", n_sha1_hmac }, { "sha2", n_sha2 }, { "sha2_file", n_sha2_file }, { "sha2_hmac", n_sha2_file }, { "md5", n_md5 }, { "md5_file", n_md5_file }, { "md5_hmac", n_md5_hmac }, { 0, 0 } };