Lines Matching refs:md
46 PROV_DIGEST md; member
74 const EVP_MD *md = ossl_prov_digest_md(&psm2ctx->md); in sm2_get_md() local
76 if (md == NULL) in sm2_get_md()
77 md = ossl_prov_digest_fetch(&psm2ctx->md, psm2ctx->libctx, "SM3", NULL); in sm2_get_md()
79 return md; in sm2_get_md()
87 const EVP_MD *md = sm2_get_md(psm2ctx); in sm2_asym_encrypt() local
89 if (md == NULL) in sm2_asym_encrypt()
93 if (!ossl_sm2_ciphertext_size(psm2ctx->key, md, inlen, outlen)) { in sm2_asym_encrypt()
100 return ossl_sm2_encrypt(psm2ctx->key, md, in, inlen, out, outlen); in sm2_asym_encrypt()
108 const EVP_MD *md = sm2_get_md(psm2ctx); in sm2_asym_decrypt() local
110 if (md == NULL) in sm2_asym_decrypt()
119 return ossl_sm2_decrypt(psm2ctx->key, md, in, inlen, out, outlen); in sm2_asym_decrypt()
127 ossl_prov_digest_reset(&psm2ctx->md); in sm2_freectx()
142 memset(&dstctx->md, 0, sizeof(dstctx->md)); in sm2_dupctx()
149 if (!ossl_prov_digest_copy(&dstctx->md, &srcctx->md)) { in sm2_dupctx()
167 const EVP_MD *md = ossl_prov_digest_md(&psm2ctx->md); in sm2_get_ctx_params() local
169 if (!OSSL_PARAM_set_utf8_string(p, md == NULL ? "" in sm2_get_ctx_params()
170 : EVP_MD_get0_name(md))) in sm2_get_ctx_params()
197 if (!ossl_prov_digest_load_from_params(&psm2ctx->md, params, in sm2_set_ctx_params()