Lines Matching refs:mctx
1544 EVP_MD_CTX *mctx = NULL; in tls_psk_do_binder() local
1603 mctx = EVP_MD_CTX_new(); in tls_psk_do_binder()
1604 if (mctx == NULL in tls_psk_do_binder()
1605 || EVP_DigestInit_ex(mctx, md, NULL) <= 0 in tls_psk_do_binder()
1606 || EVP_DigestFinal_ex(mctx, hash, NULL) <= 0) { in tls_psk_do_binder()
1624 if (EVP_DigestInit_ex(mctx, md, NULL) <= 0) { in tls_psk_do_binder()
1665 if (EVP_DigestUpdate(mctx, hdata, hdatalen) <= 0) { in tls_psk_do_binder()
1671 if (EVP_DigestUpdate(mctx, msgstart, binderoffset) <= 0 in tls_psk_do_binder()
1672 || EVP_DigestFinal_ex(mctx, hash, NULL) <= 0) { in tls_psk_do_binder()
1689 if (EVP_DigestSignInit_ex(mctx, NULL, EVP_MD_get0_name(md), sctx->libctx, in tls_psk_do_binder()
1691 || EVP_DigestSignUpdate(mctx, hash, hashsize) <= 0 in tls_psk_do_binder()
1692 || EVP_DigestSignFinal(mctx, binderout, &bindersize) <= 0 in tls_psk_do_binder()
1711 EVP_MD_CTX_free(mctx); in tls_psk_do_binder()