12 memcpy(rkey, key, keylen);
13 memset(rkey + keylen, 0, 64 - keylen);
16 memset(rkey + 32, 0, 32);
19 for (
int n = 0; n < 64; n++) {
24 for (
int n = 0; n < 64; n++) {
25 rkey[n] ^= 0x5c ^ 0x36;
CHMAC_SHA256(const uint8_t *key, size_t keylen)
void Finalize(uint8_t hash[OUTPUT_SIZE])
A hasher class for SHA-256.
CSHA256 & Write(const uint8_t *data, size_t len)
void Finalize(uint8_t hash[OUTPUT_SIZE])