Lines Matching refs:hmac_key
806 unsigned char hmac_key[64];
808 memset(hmac_key, 0, sizeof(hmac_key));
810 if (arg > (int)sizeof(hmac_key)) {
813 SHA256_Final(hmac_key, &key->head);
815 memcpy(hmac_key, ptr, arg);
818 for (i = 0; i < sizeof(hmac_key); i++)
819 hmac_key[i] ^= 0x36; /* ipad */
821 SHA256_Update(&key->head, hmac_key, sizeof(hmac_key));
823 for (i = 0; i < sizeof(hmac_key); i++)
824 hmac_key[i] ^= 0x36 ^ 0x5c; /* opad */
826 SHA256_Update(&key->tail, hmac_key, sizeof(hmac_key));
828 OPENSSL_cleanse(hmac_key, sizeof(hmac_key));