Home | History | Annotate | Download | only in evp

Lines Matching refs:hmac_key

462 		unsigned char hmac_key[64];
464 memset (hmac_key,0,sizeof(hmac_key));
466 if (arg > (int)sizeof(hmac_key)) {
469 SHA1_Final(hmac_key,&key->head);
471 memcpy(hmac_key,ptr,arg);
474 for (i=0;i<sizeof(hmac_key);i++)
475 hmac_key[i] ^= 0x36; /* ipad */
477 SHA1_Update(&key->head,hmac_key,sizeof(hmac_key));
479 for (i=0;i<sizeof(hmac_key);i++)
480 hmac_key[i] ^= 0x36^0x5c; /* opad */
482 SHA1_Update(&key->tail,hmac_key,sizeof(hmac_key));
484 OPENSSL_cleanse(hmac_key,sizeof(hmac_key));