11 unsigned char rkey[64];
13 memcpy(rkey, key, keylen);
14 memset(rkey + keylen, 0, 64 - keylen);
17 memset(rkey + 32, 0, 32);
20 for (
int n = 0; n < 64; n++)
24 for (
int n = 0; n < 64; n++)
25 rkey[n] ^= 0x5c ^ 0x36;
31 unsigned char temp[32];
void Finalize(unsigned char hash[OUTPUT_SIZE])
CHMAC_SHA256(const unsigned char *key, size_t keylen)
A hasher class for SHA-256.
void Finalize(unsigned char hash[OUTPUT_SIZE])
CSHA256 & Write(const unsigned char *data, size_t len)