Home | History | Annotate | Download | only in evp

Lines Matching refs:hmac_key

463 		unsigned char hmac_key[64];
465 memset (hmac_key,0,sizeof(hmac_key));
467 if (arg > (int)sizeof(hmac_key)) {
470 SHA1_Final(hmac_key,&key->head);
472 memcpy(hmac_key,ptr,arg);
475 for (i=0;i<sizeof(hmac_key);i++)
476 hmac_key[i] ^= 0x36; /* ipad */
478 SHA1_Update(&key->head,hmac_key,sizeof(hmac_key));
480 for (i=0;i<sizeof(hmac_key);i++)
481 hmac_key[i] ^= 0x36^0x5c; /* opad */
483 SHA1_Update(&key->tail,hmac_key,sizeof(hmac_key));
485 OPENSSL_cleanse(hmac_key,sizeof(hmac_key));