Lines Matching refs:evp_md_ctx
118 EVP_MD_CTX *evp_md_ctx;
130 evp_md_ctx = EVP_MD_CTX_create();
131 if (evp_md_ctx == NULL)
156 if (!EVP_DigestInit_ex(evp_md_ctx, type, NULL)) {
157 EVP_MD_CTX_destroy(evp_md_ctx);
162 dctx->ctxdata.evp_md_ctx = evp_md_ctx;
223 EVP_MD_CTX *evp_md_ctx = dctx->ctxdata.evp_md_ctx;
233 if (evp_md_ctx != NULL) {
234 EVP_MD_CTX_destroy(evp_md_ctx);
235 dctx->ctxdata.evp_md_ctx = NULL;
297 EVP_MD_CTX *evp_md_ctx = dctx->ctxdata.evp_md_ctx;
307 if (!EVP_DigestUpdate(evp_md_ctx, data->base, data->length)) {
371 EVP_MD_CTX *evp_md_ctx = dctx->ctxdata.evp_md_ctx;
398 if (!EVP_SignFinal(evp_md_ctx, r.base, &siglen, pkey)) {
509 EVP_MD_CTX *evp_md_ctx = dctx->ctxdata.evp_md_ctx;
530 status = EVP_VerifyFinal(evp_md_ctx, sig->base, sig->length, pkey);