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