Lines Matching refs:hctx
685 EVP_MD_CTX *hctx; in tls_parse_ctos_cookie() local
716 hctx = EVP_MD_CTX_create(); in tls_parse_ctos_cookie()
721 if (hctx == NULL || pkey == NULL) { in tls_parse_ctos_cookie()
722 EVP_MD_CTX_free(hctx); in tls_parse_ctos_cookie()
729 if (EVP_DigestSignInit_ex(hctx, NULL, "SHA2-256", s->ctx->libctx, in tls_parse_ctos_cookie()
731 || EVP_DigestSign(hctx, hmac, &hmaclen, data, in tls_parse_ctos_cookie()
734 EVP_MD_CTX_free(hctx); in tls_parse_ctos_cookie()
740 EVP_MD_CTX_free(hctx); in tls_parse_ctos_cookie()
1716 EVP_MD_CTX *hctx; in tls_construct_stoc_cookie() local
1790 hctx = EVP_MD_CTX_create(); in tls_construct_stoc_cookie()
1795 if (hctx == NULL || pkey == NULL) { in tls_construct_stoc_cookie()
1800 if (EVP_DigestSignInit_ex(hctx, NULL, "SHA2-256", s->ctx->libctx, in tls_construct_stoc_cookie()
1802 || EVP_DigestSign(hctx, hmac, &hmaclen, cookie, in tls_construct_stoc_cookie()
1825 EVP_MD_CTX_free(hctx); in tls_construct_stoc_cookie()