• Home
  • Raw
  • Download

Lines Matching refs:mdctx

85     EVP_MD_CTX *mdctx;  member
198 EVP_MD_CTX_free(ctx->mdctx); in free_md()
200 ctx->mdctx = NULL; in free_md()
216 if (ctx->mdctx == NULL) { in sm2sig_digest_signverify_init()
217 ctx->mdctx = EVP_MD_CTX_new(); in sm2sig_digest_signverify_init()
218 if (ctx->mdctx == NULL) in sm2sig_digest_signverify_init()
240 if (!EVP_DigestInit_ex2(ctx->mdctx, ctx->md, params)) in sm2sig_digest_signverify_init()
264 || !EVP_DigestUpdate(ctx->mdctx, z, ctx->mdsize)) in sm2sig_compute_z_digest()
277 if (psm2ctx == NULL || psm2ctx->mdctx == NULL) in sm2sig_digest_signverify_update()
281 && EVP_DigestUpdate(psm2ctx->mdctx, data, datalen); in sm2sig_digest_signverify_update()
291 if (psm2ctx == NULL || psm2ctx->mdctx == NULL) in sm2sig_digest_sign_final()
300 && EVP_DigestFinal_ex(psm2ctx->mdctx, digest, &dlen))) in sm2sig_digest_sign_final()
316 || psm2ctx->mdctx == NULL in sm2sig_digest_verify_final()
321 && EVP_DigestFinal_ex(psm2ctx->mdctx, digest, &dlen))) in sm2sig_digest_verify_final()
349 dstctx->mdctx = NULL; in sm2sig_dupctx()
359 if (srcctx->mdctx != NULL) { in sm2sig_dupctx()
360 dstctx->mdctx = EVP_MD_CTX_new(); in sm2sig_dupctx()
361 if (dstctx->mdctx == NULL in sm2sig_dupctx()
362 || !EVP_MD_CTX_copy_ex(dstctx->mdctx, srcctx->mdctx)) in sm2sig_dupctx()
493 if (psm2ctx->mdctx == NULL) in sm2sig_get_ctx_md_params()
496 return EVP_MD_CTX_get_params(psm2ctx->mdctx, params); in sm2sig_get_ctx_md_params()
513 if (psm2ctx->mdctx == NULL) in sm2sig_set_ctx_md_params()
516 return EVP_MD_CTX_set_params(psm2ctx->mdctx, params); in sm2sig_set_ctx_md_params()