Lines Matching refs:mac_key
164 EVP_PKEY *mac_key; in tls1_P_hash() local
176 mac_key = EVP_PKEY_new_mac_key(EVP_PKEY_HMAC, NULL, sec, sec_len); in tls1_P_hash()
177 if (!mac_key) in tls1_P_hash()
179 if (!EVP_DigestSignInit(&ctx,NULL,md, NULL, mac_key)) in tls1_P_hash()
181 if (!EVP_DigestSignInit(&ctx_tmp,NULL,md, NULL, mac_key)) in tls1_P_hash()
199 if (!EVP_DigestSignInit(&ctx,NULL,md, NULL, mac_key)) in tls1_P_hash()
201 if (!EVP_DigestSignInit(&ctx_tmp,NULL,md, NULL, mac_key)) in tls1_P_hash()
238 EVP_PKEY_free(mac_key); in tls1_P_hash()
339 EVP_PKEY *mac_key; in tls1_change_cipher_state() local
495 mac_key = EVP_PKEY_new_mac_key(mac_type, NULL, in tls1_change_cipher_state()
497 EVP_DigestSignInit(mac_ctx,NULL,m,NULL,mac_key); in tls1_change_cipher_state()
498 EVP_PKEY_free(mac_key); in tls1_change_cipher_state()