• Home
  • Raw
  • Download

Lines Matching refs:mdctx

92     EVP_MD_CTX *mdctx;  member
335 EVP_MD_CTX_free(ctx->mdctx); in rsa_setup_md()
338 ctx->mdctx = NULL; in rsa_setup_md()
865 if (prsactx->mdctx == NULL) { in rsa_digest_signverify_init()
866 prsactx->mdctx = EVP_MD_CTX_new(); in rsa_digest_signverify_init()
867 if (prsactx->mdctx == NULL) in rsa_digest_signverify_init()
871 if (!EVP_DigestInit_ex2(prsactx->mdctx, prsactx->md, params)) in rsa_digest_signverify_init()
877 EVP_MD_CTX_free(prsactx->mdctx); in rsa_digest_signverify_init()
878 prsactx->mdctx = NULL; in rsa_digest_signverify_init()
888 if (prsactx == NULL || prsactx->mdctx == NULL) in rsa_digest_signverify_update()
891 return EVP_DigestUpdate(prsactx->mdctx, data, datalen); in rsa_digest_signverify_update()
913 if (prsactx->mdctx == NULL) in rsa_digest_sign_final()
924 if (!EVP_DigestFinal_ex(prsactx->mdctx, digest, &dlen)) in rsa_digest_sign_final()
953 if (prsactx->mdctx == NULL) in rsa_digest_verify_final()
960 if (!EVP_DigestFinal_ex(prsactx->mdctx, digest, &dlen)) in rsa_digest_verify_final()
973 EVP_MD_CTX_free(prsactx->mdctx); in rsa_freectx()
1000 dstctx->mdctx = NULL; in rsa_dupctx()
1016 if (srcctx->mdctx != NULL) { in rsa_dupctx()
1017 dstctx->mdctx = EVP_MD_CTX_new(); in rsa_dupctx()
1018 if (dstctx->mdctx == NULL in rsa_dupctx()
1019 || !EVP_MD_CTX_copy_ex(dstctx->mdctx, srcctx->mdctx)) in rsa_dupctx()
1402 if (prsactx->mdctx == NULL) in rsa_get_ctx_md_params()
1405 return EVP_MD_CTX_get_params(prsactx->mdctx, params); in rsa_get_ctx_md_params()
1422 if (prsactx->mdctx == NULL) in rsa_set_ctx_md_params()
1425 return EVP_MD_CTX_set_params(prsactx->mdctx, params); in rsa_set_ctx_md_params()