Lines Matching refs:mctx

314     EVP_MD_CTX *mctx = NULL;  in tls_construct_cert_verify()  local
334 mctx = EVP_MD_CTX_new(); in tls_construct_cert_verify()
335 if (mctx == NULL) { in tls_construct_cert_verify()
351 if (EVP_DigestSignInit_ex(mctx, &pctx, in tls_construct_cert_verify()
372 if (EVP_DigestSignUpdate(mctx, hdata, hdatalen) <= 0 in tls_construct_cert_verify()
373 || EVP_MD_CTX_ctrl(mctx, EVP_CTRL_SSL3_MASTER_SECRET, in tls_construct_cert_verify()
376 || EVP_DigestSignFinal(mctx, NULL, &siglen) <= 0) { in tls_construct_cert_verify()
383 || EVP_DigestSignFinal(mctx, sig, &siglen) <= 0) { in tls_construct_cert_verify()
392 if (EVP_DigestSign(mctx, NULL, &siglen, hdata, hdatalen) <= 0) { in tls_construct_cert_verify()
398 || EVP_DigestSign(mctx, sig, &siglen, hdata, hdatalen) <= 0) { in tls_construct_cert_verify()
427 EVP_MD_CTX_free(mctx); in tls_construct_cert_verify()
431 EVP_MD_CTX_free(mctx); in tls_construct_cert_verify()
449 EVP_MD_CTX *mctx = EVP_MD_CTX_new(); in tls_process_cert_verify() local
453 if (mctx == NULL) { in tls_process_cert_verify()
533 if (EVP_DigestVerifyInit_ex(mctx, &pctx, in tls_process_cert_verify()
563 if (EVP_DigestVerifyUpdate(mctx, hdata, hdatalen) <= 0 in tls_process_cert_verify()
564 || EVP_MD_CTX_ctrl(mctx, EVP_CTRL_SSL3_MASTER_SECRET, in tls_process_cert_verify()
570 if (EVP_DigestVerifyFinal(mctx, data, len) <= 0) { in tls_process_cert_verify()
575 j = EVP_DigestVerify(mctx, data, len, hdata, hdatalen); in tls_process_cert_verify()
602 EVP_MD_CTX_free(mctx); in tls_process_cert_verify()