Lines Matching refs:hctx
736 EVP_MD_CTX *hctx; in tls_parse_ctos_cookie() local
769 hctx = EVP_MD_CTX_create(); in tls_parse_ctos_cookie()
774 if (hctx == NULL || pkey == NULL) { in tls_parse_ctos_cookie()
775 EVP_MD_CTX_free(hctx); in tls_parse_ctos_cookie()
783 if (EVP_DigestSignInit(hctx, NULL, EVP_sha256(), NULL, pkey) <= 0 in tls_parse_ctos_cookie()
784 || EVP_DigestSign(hctx, hmac, &hmaclen, data, in tls_parse_ctos_cookie()
787 EVP_MD_CTX_free(hctx); in tls_parse_ctos_cookie()
794 EVP_MD_CTX_free(hctx); in tls_parse_ctos_cookie()
1778 EVP_MD_CTX *hctx; in tls_construct_stoc_cookie() local
1858 hctx = EVP_MD_CTX_create(); in tls_construct_stoc_cookie()
1863 if (hctx == NULL || pkey == NULL) { in tls_construct_stoc_cookie()
1869 if (EVP_DigestSignInit(hctx, NULL, EVP_sha256(), NULL, pkey) <= 0 in tls_construct_stoc_cookie()
1870 || EVP_DigestSign(hctx, hmac, &hmaclen, cookie, in tls_construct_stoc_cookie()
1896 EVP_MD_CTX_free(hctx); in tls_construct_stoc_cookie()