Lines Matching refs:d

30 int DSA_set_ex_data(DSA *d, int idx, void *arg)  in DSA_set_ex_data()  argument
32 return CRYPTO_set_ex_data(&d->ex_data, idx, arg); in DSA_set_ex_data()
35 void *DSA_get_ex_data(const DSA *d, int idx) in DSA_get_ex_data() argument
37 return CRYPTO_get_ex_data(&d->ex_data, idx); in DSA_get_ex_data()
86 void DSA_clear_flags(DSA *d, int flags) in DSA_clear_flags() argument
88 d->flags &= ~flags; in DSA_clear_flags()
91 int DSA_test_flags(const DSA *d, int flags) in DSA_test_flags() argument
93 return d->flags & flags; in DSA_test_flags()
96 void DSA_set_flags(DSA *d, int flags) in DSA_set_flags() argument
98 d->flags |= flags; in DSA_set_flags()
101 ENGINE *DSA_get0_engine(DSA *d) in DSA_get0_engine() argument
103 return d->engine; in DSA_get0_engine()
128 const DSA_METHOD *DSA_get_method(DSA *d) in DSA_get_method() argument
130 return d->meth; in DSA_get_method()
257 void ossl_dsa_set0_libctx(DSA *d, OSSL_LIB_CTX *libctx) in ossl_dsa_set0_libctx() argument
259 d->libctx = libctx; in ossl_dsa_set0_libctx()
262 void DSA_get0_pqg(const DSA *d, in DSA_get0_pqg() argument
265 ossl_ffc_params_get0_pqg(&d->params, p, q, g); in DSA_get0_pqg()
268 int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g) in DSA_set0_pqg() argument
273 if ((d->params.p == NULL && p == NULL) in DSA_set0_pqg()
274 || (d->params.q == NULL && q == NULL) in DSA_set0_pqg()
275 || (d->params.g == NULL && g == NULL)) in DSA_set0_pqg()
278 ossl_ffc_params_set0_pqg(&d->params, p, q, g); in DSA_set0_pqg()
279 d->dirty_cnt++; in DSA_set0_pqg()
284 const BIGNUM *DSA_get0_p(const DSA *d) in DSA_get0_p() argument
286 return d->params.p; in DSA_get0_p()
289 const BIGNUM *DSA_get0_q(const DSA *d) in DSA_get0_q() argument
291 return d->params.q; in DSA_get0_q()
294 const BIGNUM *DSA_get0_g(const DSA *d) in DSA_get0_g() argument
296 return d->params.g; in DSA_get0_g()
299 const BIGNUM *DSA_get0_pub_key(const DSA *d) in DSA_get0_pub_key() argument
301 return d->pub_key; in DSA_get0_pub_key()
304 const BIGNUM *DSA_get0_priv_key(const DSA *d) in DSA_get0_priv_key() argument
306 return d->priv_key; in DSA_get0_priv_key()
309 void DSA_get0_key(const DSA *d, in DSA_get0_key() argument
313 *pub_key = d->pub_key; in DSA_get0_key()
315 *priv_key = d->priv_key; in DSA_get0_key()
318 int DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key) in DSA_set0_key() argument
321 BN_free(d->pub_key); in DSA_set0_key()
322 d->pub_key = pub_key; in DSA_set0_key()
325 BN_free(d->priv_key); in DSA_set0_key()
326 d->priv_key = priv_key; in DSA_set0_key()
328 d->dirty_cnt++; in DSA_set0_key()
333 int DSA_security_bits(const DSA *d) in DSA_security_bits() argument
335 if (d->params.p != NULL && d->params.q != NULL) in DSA_security_bits()
336 return BN_security_bits(BN_num_bits(d->params.p), in DSA_security_bits()
337 BN_num_bits(d->params.q)); in DSA_security_bits()