Lines Matching refs:hmac_key
787 unsigned char hmac_key[64]; in aesni_cbc_hmac_sha1_ctrl() local
789 memset(hmac_key, 0, sizeof(hmac_key)); in aesni_cbc_hmac_sha1_ctrl()
791 if (arg > (int)sizeof(hmac_key)) { in aesni_cbc_hmac_sha1_ctrl()
794 SHA1_Final(hmac_key, &key->head); in aesni_cbc_hmac_sha1_ctrl()
796 memcpy(hmac_key, ptr, arg); in aesni_cbc_hmac_sha1_ctrl()
799 for (i = 0; i < sizeof(hmac_key); i++) in aesni_cbc_hmac_sha1_ctrl()
800 hmac_key[i] ^= 0x36; /* ipad */ in aesni_cbc_hmac_sha1_ctrl()
802 SHA1_Update(&key->head, hmac_key, sizeof(hmac_key)); in aesni_cbc_hmac_sha1_ctrl()
804 for (i = 0; i < sizeof(hmac_key); i++) in aesni_cbc_hmac_sha1_ctrl()
805 hmac_key[i] ^= 0x36 ^ 0x5c; /* opad */ in aesni_cbc_hmac_sha1_ctrl()
807 SHA1_Update(&key->tail, hmac_key, sizeof(hmac_key)); in aesni_cbc_hmac_sha1_ctrl()
809 OPENSSL_cleanse(hmac_key, sizeof(hmac_key)); in aesni_cbc_hmac_sha1_ctrl()