Lines Matching refs:pd
140 void ossl_prov_digest_reset(PROV_DIGEST *pd) in ossl_prov_digest_reset() argument
142 EVP_MD_free(pd->alloc_md); in ossl_prov_digest_reset()
143 pd->alloc_md = NULL; in ossl_prov_digest_reset()
144 pd->md = NULL; in ossl_prov_digest_reset()
146 ENGINE_finish(pd->engine); in ossl_prov_digest_reset()
148 pd->engine = NULL; in ossl_prov_digest_reset()
167 const EVP_MD *ossl_prov_digest_fetch(PROV_DIGEST *pd, OSSL_LIB_CTX *libctx, in ossl_prov_digest_fetch() argument
170 EVP_MD_free(pd->alloc_md); in ossl_prov_digest_fetch()
171 pd->md = pd->alloc_md = EVP_MD_fetch(libctx, mdname, propquery); in ossl_prov_digest_fetch()
173 return pd->md; in ossl_prov_digest_fetch()
176 int ossl_prov_digest_load_from_params(PROV_DIGEST *pd, in ossl_prov_digest_load_from_params() argument
186 if (!load_common(params, &propquery, &pd->engine)) in ossl_prov_digest_load_from_params()
196 ossl_prov_digest_fetch(pd, ctx, p->data, propquery); in ossl_prov_digest_load_from_params()
198 if (pd->md == NULL) { in ossl_prov_digest_load_from_params()
204 pd->md = md; in ossl_prov_digest_load_from_params()
207 if (pd->md != NULL) in ossl_prov_digest_load_from_params()
211 return pd->md != NULL; in ossl_prov_digest_load_from_params()
214 const EVP_MD *ossl_prov_digest_md(const PROV_DIGEST *pd) in ossl_prov_digest_md() argument
216 return pd->md; in ossl_prov_digest_md()
219 ENGINE *ossl_prov_digest_engine(const PROV_DIGEST *pd) in ossl_prov_digest_engine() argument
221 return pd->engine; in ossl_prov_digest_engine()