Lines Matching refs:hctx
728 EVP_MD_CTX *hctx; in tls_parse_ctos_cookie() local
761 hctx = EVP_MD_CTX_create(); in tls_parse_ctos_cookie()
766 if (hctx == NULL || pkey == NULL) { in tls_parse_ctos_cookie()
767 EVP_MD_CTX_free(hctx); in tls_parse_ctos_cookie()
774 if (EVP_DigestSignInit_ex(hctx, NULL, "SHA2-256", sctx->libctx, in tls_parse_ctos_cookie()
776 || EVP_DigestSign(hctx, hmac, &hmaclen, data, in tls_parse_ctos_cookie()
779 EVP_MD_CTX_free(hctx); in tls_parse_ctos_cookie()
785 EVP_MD_CTX_free(hctx); in tls_parse_ctos_cookie()
1783 EVP_MD_CTX *hctx; in tls_construct_stoc_cookie() local
1861 hctx = EVP_MD_CTX_create(); in tls_construct_stoc_cookie()
1866 if (hctx == NULL || pkey == NULL) { in tls_construct_stoc_cookie()
1871 if (EVP_DigestSignInit_ex(hctx, NULL, "SHA2-256", sctx->libctx, in tls_construct_stoc_cookie()
1873 || EVP_DigestSign(hctx, hmac, &hmaclen, cookie, in tls_construct_stoc_cookie()
1896 EVP_MD_CTX_free(hctx); in tls_construct_stoc_cookie()