Lines Matching refs:hmac_key
822 unsigned char hmac_key[64];
824 memset(hmac_key, 0, sizeof(hmac_key));
826 if (arg > (int)sizeof(hmac_key)) {
829 SHA1_Final(hmac_key, &key->head);
831 memcpy(hmac_key, ptr, arg);
834 for (i = 0; i < sizeof(hmac_key); i++)
835 hmac_key[i] ^= 0x36; /* ipad */
837 SHA1_Update(&key->head, hmac_key, sizeof(hmac_key));
839 for (i = 0; i < sizeof(hmac_key); i++)
840 hmac_key[i] ^= 0x36 ^ 0x5c; /* opad */
842 SHA1_Update(&key->tail, hmac_key, sizeof(hmac_key));
844 OPENSSL_cleanse(hmac_key, sizeof(hmac_key));