Lines Matching refs:hmac_key
758 unsigned char hmac_key[64]; in aesni_cbc_hmac_sha256_ctrl() local
760 memset(hmac_key, 0, sizeof(hmac_key)); in aesni_cbc_hmac_sha256_ctrl()
765 if (u_arg > sizeof(hmac_key)) { in aesni_cbc_hmac_sha256_ctrl()
768 SHA256_Final(hmac_key, &key->head); in aesni_cbc_hmac_sha256_ctrl()
770 memcpy(hmac_key, ptr, arg); in aesni_cbc_hmac_sha256_ctrl()
773 for (i = 0; i < sizeof(hmac_key); i++) in aesni_cbc_hmac_sha256_ctrl()
774 hmac_key[i] ^= 0x36; /* ipad */ in aesni_cbc_hmac_sha256_ctrl()
776 SHA256_Update(&key->head, hmac_key, sizeof(hmac_key)); in aesni_cbc_hmac_sha256_ctrl()
778 for (i = 0; i < sizeof(hmac_key); i++) in aesni_cbc_hmac_sha256_ctrl()
779 hmac_key[i] ^= 0x36 ^ 0x5c; /* opad */ in aesni_cbc_hmac_sha256_ctrl()
781 SHA256_Update(&key->tail, hmac_key, sizeof(hmac_key)); in aesni_cbc_hmac_sha256_ctrl()
783 OPENSSL_cleanse(hmac_key, sizeof(hmac_key)); in aesni_cbc_hmac_sha256_ctrl()