Lines Matching defs:hmac_key
799 unsigned char hmac_key[64];
801 memset(hmac_key, 0, sizeof(hmac_key));
803 if (arg > (int)sizeof(hmac_key)) {
806 SHA256_Final(hmac_key, &key->head);
808 memcpy(hmac_key, ptr, arg);
811 for (i = 0; i < sizeof(hmac_key); i++)
812 hmac_key[i] ^= 0x36; /* ipad */
814 SHA256_Update(&key->head, hmac_key, sizeof(hmac_key));
816 for (i = 0; i < sizeof(hmac_key); i++)
817 hmac_key[i] ^= 0x36 ^ 0x5c; /* opad */
819 SHA256_Update(&key->tail, hmac_key, sizeof(hmac_key));
821 OPENSSL_cleanse(hmac_key, sizeof(hmac_key));