Lines Matching refs:evp_md_ctx
61 EVP_MD_CTX *evp_md_ctx;
65 evp_md_ctx = EVP_MD_CTX_create();
66 if (evp_md_ctx == NULL)
69 if (!EVP_DigestInit_ex(evp_md_ctx, EVP_dss1(), NULL)) {
70 EVP_MD_CTX_destroy(evp_md_ctx);
74 dctx->ctxdata.evp_md_ctx = evp_md_ctx;
92 EVP_MD_CTX *evp_md_ctx = dctx->ctxdata.evp_md_ctx;
94 if (evp_md_ctx != NULL) {
95 EVP_MD_CTX_destroy(evp_md_ctx);
96 dctx->ctxdata.evp_md_ctx = NULL;
112 EVP_MD_CTX *evp_md_ctx = dctx->ctxdata.evp_md_ctx;
114 if (!EVP_DigestUpdate(evp_md_ctx, data->base, data->length)) {
141 EVP_MD_CTX *evp_md_ctx = dctx->ctxdata.evp_md_ctx;
168 if (!EVP_SignFinal(evp_md_ctx, sigbuf, &siglen, pkey)) {
193 if (!EVP_DigestFinal_ex(evp_md_ctx, digest, &siglen)) {
231 EVP_MD_CTX *evp_md_ctx = dctx->ctxdata.evp_md_ctx;
246 if (!EVP_DigestFinal_ex(evp_md_ctx, digest, &siglen)) {
282 status = EVP_VerifyFinal(evp_md_ctx, sigbuf, siglen, pkey);