crypto/heimdal/kdc/pkinit.c
1120
DH *kdc_dh = cp->u.dh.key;
crypto/heimdal/kdc/pkinit.c
332
DH *dh = NULL;
crypto/heimdal/kdc/pkinit.c
54
DH *key;
crypto/heimdal/lib/krb5/pkinit.c
133
select_dh_group(krb5_context context, DH *dh, unsigned long bits,
crypto/heimdal/lib/krb5/pkinit.c
487
DH *dh = ctx->u.dh;
crypto/heimdal/lib/krb5/pkinit.c
65
DH *dh;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
146
static void print_dh(DH *, char *);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
228
compat_dh_set0_key(DH *dh, BIGNUM *pub, BIGNUM *priv)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
242
static void compat_dh_get0_key(const DH *dh, const BIGNUM **pub,
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
252
static DH *
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
305
dh_to_pkey(DH **dh)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
392
DH *dh;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
467
DH *dh;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
498
const DH *dh;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
5525
print_dh(DH * dh, char *msg)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
575
DH *dh;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
765
const DH *dh;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
808
DH *dhsrc = EVP_PKEY_get0_DH(src), *dhdest = EVP_PKEY_get0_DH(dest);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
888
static DH *
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
889
dup_dh_params(DH *src)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
895
static DH *
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
896
dup_dh_params(DH *src)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
898
DH *dh;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
917
DH *dhparams, *dh = NULL;
crypto/openssh/dh.c
158
DH *
crypto/openssh/dh.c
236
dh_pub_is_valid(const DH *dh, const BIGNUM *dh_pub)
crypto/openssh/dh.c
284
dh_gen_key(DH *dh, int need)
crypto/openssh/dh.c
312
DH *
crypto/openssh/dh.c
315
DH *dh;
crypto/openssh/dh.c
337
DH *
crypto/openssh/dh.c
340
DH *dh;
crypto/openssh/dh.c
353
DH *
crypto/openssh/dh.c
368
DH *
crypto/openssh/dh.c
388
DH *
crypto/openssh/dh.c
419
DH *
crypto/openssh/dh.c
471
DH *
crypto/openssh/dh.h
37
DH *choose_dh(int, int, int);
crypto/openssh/dh.h
38
DH *dh_new_group_asc(const char *, const char *);
crypto/openssh/dh.h
39
DH *dh_new_group(BIGNUM *, BIGNUM *);
crypto/openssh/dh.h
40
DH *dh_new_group1(void);
crypto/openssh/dh.h
41
DH *dh_new_group14(void);
crypto/openssh/dh.h
42
DH *dh_new_group16(void);
crypto/openssh/dh.h
43
DH *dh_new_group18(void);
crypto/openssh/dh.h
44
DH *dh_new_group_fallback(int);
crypto/openssh/dh.h
46
int dh_gen_key(DH *, int);
crypto/openssh/dh.h
47
int dh_pub_is_valid(const DH *, const BIGNUM *);
crypto/openssh/kex.h
177
DH *dh; /* DH */
crypto/openssh/monitor.c
669
DH *dh;
crypto/openssh/monitor_wrap.c
216
DH *
crypto/openssh/monitor_wrap.h
43
DH *mm_choose_dh(int, int, int);
crypto/openssh/ssh_api.c
59
DH *mm_choose_dh(int, int, int);
crypto/openssh/ssh_api.c
77
DH *
crypto/openssl/crypto/dh/dh_ameth.c
113
DH *dh;
crypto/openssl/crypto/dh/dh_ameth.c
167
DH *dh = ossl_dh_key_from_pkcs8(p8, NULL, NULL);
crypto/openssl/crypto/dh/dh_ameth.c
230
DH *dh;
crypto/openssl/crypto/dh/dh_ameth.c
244
static int do_dh_print(BIO *bp, const DH *x, int indent, int ptype)
crypto/openssl/crypto/dh/dh_ameth.c
322
static int int_dh_param_copy(DH *to, const DH *from, int is_x942)
crypto/openssl/crypto/dh/dh_ameth.c
334
DH *DHparams_dup(const DH *dh)
crypto/openssl/crypto/dh/dh_ameth.c
336
DH *ret;
crypto/openssl/crypto/dh/dh_ameth.c
34
static DH *d2i_dhp(const EVP_PKEY *pkey, const unsigned char **pp,
crypto/openssl/crypto/dh/dh_ameth.c
37
DH *dh = NULL;
crypto/openssl/crypto/dh/dh_ameth.c
393
int DHparams_print(BIO *bp, const DH *x)
crypto/openssl/crypto/dh/dh_ameth.c
400
DH *dh;
crypto/openssl/crypto/dh/dh_ameth.c
406
dh = (DH *)evp_pkey_get0_DH_int(pkey);
crypto/openssl/crypto/dh/dh_ameth.c
411
dh = (DH *)EVP_PKEY_get0_DH(pkey);
crypto/openssl/crypto/dh/dh_ameth.c
430
DH *dh = pkey->pkey.dh;
crypto/openssl/crypto/dh/dh_ameth.c
442
DH *dh = pkey->pkey.dh;
crypto/openssl/crypto/dh/dh_ameth.c
456
DH *dh = from->pkey.dh;
crypto/openssl/crypto/dh/dh_ameth.c
48
static int i2d_dhp(const EVP_PKEY *pkey, const DH *a, unsigned char **pp)
crypto/openssl/crypto/dh/dh_ameth.c
514
DH *dh = ossl_dh_new_ex(pctx->libctx);
crypto/openssl/crypto/dh/dh_ameth.c
544
DH *dh = from->pkey.dh;
crypto/openssl/crypto/dh/dh_ameth.c
545
DH *dupkey = NULL;
crypto/openssl/crypto/dh/dh_ameth.c
70
DH *dh = NULL;
crypto/openssl/crypto/dh/dh_asn1.c
135
int i2d_DHxparams(const DH *dh, unsigned char **pp)
crypto/openssl/crypto/dh/dh_asn1.c
34
DH_free((DH *)*pval);
crypto/openssl/crypto/dh/dh_asn1.c
38
DH *dh = (DH *)*pval;
crypto/openssl/crypto/dh/dh_asn1.c
49
ASN1_SIMPLE(DH, params.p, BIGNUM),
crypto/openssl/crypto/dh/dh_asn1.c
50
ASN1_SIMPLE(DH, params.g, BIGNUM),
crypto/openssl/crypto/dh/dh_asn1.c
51
ASN1_OPT_EMBED(DH, length, ZINT32),
crypto/openssl/crypto/dh/dh_asn1.c
52
} ASN1_SEQUENCE_END_cb(DH, DHparams)
crypto/openssl/crypto/dh/dh_asn1.c
54
IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(DH, DHparams, DHparams)
crypto/openssl/crypto/dh/dh_asn1.c
93
DH *d2i_DHxparams(DH **a, const unsigned char **pp, long length)
crypto/openssl/crypto/dh/dh_asn1.c
97
DH *dh = NULL;
crypto/openssl/crypto/dh/dh_backend.c
102
int ossl_dh_key_todata(DH *dh, OSSL_PARAM_BLD *bld, OSSL_PARAM params[],
crypto/openssl/crypto/dh/dh_backend.c
122
int ossl_dh_is_foreign(const DH *dh)
crypto/openssl/crypto/dh/dh_backend.c
138
DH *ossl_dh_dup(const DH *dh, int selection)
crypto/openssl/crypto/dh/dh_backend.c
140
DH *dupkey = NULL;
crypto/openssl/crypto/dh/dh_backend.c
180
DH *ossl_dh_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf,
crypto/openssl/crypto/dh/dh_backend.c
191
DH *dh = NULL;
crypto/openssl/crypto/dh/dh_backend.c
31
static int dh_ffc_params_fromdata(DH *dh, const OSSL_PARAM params[])
crypto/openssl/crypto/dh/dh_backend.c
42
int ossl_dh_params_fromdata(DH *dh, const OSSL_PARAM params[])
crypto/openssl/crypto/dh/dh_backend.c
59
int ossl_dh_key_fromdata(DH *dh, const OSSL_PARAM params[], int include_private)
crypto/openssl/crypto/dh/dh_backend.c
90
int ossl_dh_params_todata(DH *dh, OSSL_PARAM_BLD *bld, OSSL_PARAM params[])
crypto/openssl/crypto/dh/dh_check.c
112
int DH_check_ex(const DH *dh)
crypto/openssl/crypto/dh/dh_check.c
142
int DH_check(const DH *dh, int *ret)
crypto/openssl/crypto/dh/dh_check.c
150
int nid = DH_get_nid((DH *)dh);
crypto/openssl/crypto/dh/dh_check.c
231
int DH_check_pub_key_ex(const DH *dh, const BIGNUM *pub_key)
crypto/openssl/crypto/dh/dh_check.c
251
int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret)
crypto/openssl/crypto/dh/dh_check.c
273
int ossl_dh_check_pub_key_partial(const DH *dh, const BIGNUM *pub_key, int *ret)
crypto/openssl/crypto/dh/dh_check.c
279
int ossl_dh_check_priv_key(const DH *dh, const BIGNUM *priv_key, int *ret)
crypto/openssl/crypto/dh/dh_check.c
29
int DH_check_params_ex(const DH *dh)
crypto/openssl/crypto/dh/dh_check.c
314
if (DH_get_nid((DH *)dh) != NID_undef && dh->length != 0) {
crypto/openssl/crypto/dh/dh_check.c
333
int ossl_dh_check_pairwise(const DH *dh, int return_on_null_numbers)
crypto/openssl/crypto/dh/dh_check.c
49
int DH_check_params(const DH *dh, int *ret)
crypto/openssl/crypto/dh/dh_check.c
58
nid = DH_get_nid((DH *)dh);
crypto/openssl/crypto/dh/dh_check.c
70
int DH_check_params(const DH *dh, int *ret)
crypto/openssl/crypto/dh/dh_depr.c
25
DH *DH_generate_parameters(int prime_len, int generator,
crypto/openssl/crypto/dh/dh_depr.c
29
DH *ret = NULL;
crypto/openssl/crypto/dh/dh_gen.c
115
int DH_generate_parameters_ex(DH *ret, int prime_len, int generator,
crypto/openssl/crypto/dh/dh_gen.c
156
static int dh_builtin_genparams(DH *ret, int prime_len, int generator,
crypto/openssl/crypto/dh/dh_gen.c
35
static int dh_builtin_genparams(DH *ret, int prime_len, int generator,
crypto/openssl/crypto/dh/dh_gen.c
39
int ossl_dh_generate_ffc_parameters(DH *dh, int type, int pbits, int qbits,
crypto/openssl/crypto/dh/dh_gen.c
95
static int dh_gen_named_group(OSSL_LIB_CTX *libctx, DH *ret, int prime_len)
crypto/openssl/crypto/dh/dh_gen.c
97
DH *dh;
crypto/openssl/crypto/dh/dh_group_params.c
27
static DH *dh_param_init(OSSL_LIB_CTX *libctx, const DH_NAMED_GROUP *group)
crypto/openssl/crypto/dh/dh_group_params.c
29
DH *dh = ossl_dh_new_ex(libctx);
crypto/openssl/crypto/dh/dh_group_params.c
40
DH *ossl_dh_new_by_nid_ex(OSSL_LIB_CTX *libctx, int nid)
crypto/openssl/crypto/dh/dh_group_params.c
51
DH *DH_new_by_nid(int nid)
crypto/openssl/crypto/dh/dh_group_params.c
56
void ossl_dh_cache_named_group(DH *dh)
crypto/openssl/crypto/dh/dh_group_params.c
83
int ossl_dh_is_named_safe_prime_group(const DH *dh)
crypto/openssl/crypto/dh/dh_group_params.c
94
int DH_get_nid(const DH *dh)
crypto/openssl/crypto/dh/dh_key.c
114
int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)
crypto/openssl/crypto/dh/dh_key.c
144
int DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh)
crypto/openssl/crypto/dh/dh_key.c
189
static int dh_bn_mod_exp(const DH *dh, BIGNUM *r,
crypto/openssl/crypto/dh/dh_key.c
200
static int dh_init(DH *dh)
crypto/openssl/crypto/dh/dh_key.c
207
static int dh_finish(DH *dh)
crypto/openssl/crypto/dh/dh_key.c
220
int DH_generate_key(DH *dh)
crypto/openssl/crypto/dh/dh_key.c
229
int ossl_dh_generate_public_key(BN_CTX *ctx, const DH *dh,
crypto/openssl/crypto/dh/dh_key.c
265
static int generate_key(DH *dh)
crypto/openssl/crypto/dh/dh_key.c
29
static int generate_key(DH *dh);
crypto/openssl/crypto/dh/dh_key.c
30
static int dh_bn_mod_exp(const DH *dh, BIGNUM *r,
crypto/openssl/crypto/dh/dh_key.c
33
static int dh_init(DH *dh);
crypto/openssl/crypto/dh/dh_key.c
34
static int dh_finish(DH *dh);
crypto/openssl/crypto/dh/dh_key.c
389
int ossl_dh_buf2key(DH *dh, const unsigned char *buf, size_t len)
crypto/openssl/crypto/dh/dh_key.c
40
int ossl_dh_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)
crypto/openssl/crypto/dh/dh_key.c
417
size_t ossl_dh_key2buf(const DH *dh, unsigned char **pbuf_out, size_t size,
crypto/openssl/crypto/dh/dh_lib.c
136
void DH_free(DH *r)
crypto/openssl/crypto/dh/dh_lib.c
167
int DH_up_ref(DH *r)
crypto/openssl/crypto/dh/dh_lib.c
179
void ossl_dh_set0_libctx(DH *d, OSSL_LIB_CTX *libctx)
crypto/openssl/crypto/dh/dh_lib.c
185
int DH_set_ex_data(DH *d, int idx, void *arg)
crypto/openssl/crypto/dh/dh_lib.c
190
void *DH_get_ex_data(const DH *d, int idx)
crypto/openssl/crypto/dh/dh_lib.c
196
int DH_bits(const DH *dh)
crypto/openssl/crypto/dh/dh_lib.c
203
int DH_size(const DH *dh)
crypto/openssl/crypto/dh/dh_lib.c
210
int DH_security_bits(const DH *dh)
crypto/openssl/crypto/dh/dh_lib.c
225
void DH_get0_pqg(const DH *dh,
crypto/openssl/crypto/dh/dh_lib.c
231
int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g)
crypto/openssl/crypto/dh/dh_lib.c
247
long DH_get_length(const DH *dh)
crypto/openssl/crypto/dh/dh_lib.c
252
int DH_set_length(DH *dh, long length)
crypto/openssl/crypto/dh/dh_lib.c
259
void DH_get0_key(const DH *dh, const BIGNUM **pub_key, const BIGNUM **priv_key)
crypto/openssl/crypto/dh/dh_lib.c
267
int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key)
crypto/openssl/crypto/dh/dh_lib.c
282
const BIGNUM *DH_get0_p(const DH *dh)
crypto/openssl/crypto/dh/dh_lib.c
287
const BIGNUM *DH_get0_q(const DH *dh)
crypto/openssl/crypto/dh/dh_lib.c
29
static DH *dh_new_intern(ENGINE *engine, OSSL_LIB_CTX *libctx);
crypto/openssl/crypto/dh/dh_lib.c
292
const BIGNUM *DH_get0_g(const DH *dh)
crypto/openssl/crypto/dh/dh_lib.c
297
const BIGNUM *DH_get0_priv_key(const DH *dh)
crypto/openssl/crypto/dh/dh_lib.c
302
const BIGNUM *DH_get0_pub_key(const DH *dh)
crypto/openssl/crypto/dh/dh_lib.c
307
void DH_clear_flags(DH *dh, int flags)
crypto/openssl/crypto/dh/dh_lib.c
312
int DH_test_flags(const DH *dh, int flags)
crypto/openssl/crypto/dh/dh_lib.c
317
void DH_set_flags(DH *dh, int flags)
crypto/openssl/crypto/dh/dh_lib.c
32
int DH_set_method(DH *dh, const DH_METHOD *meth)
crypto/openssl/crypto/dh/dh_lib.c
323
ENGINE *DH_get0_engine(DH *dh)
crypto/openssl/crypto/dh/dh_lib.c
329
FFC_PARAMS *ossl_dh_get0_params(DH *dh)
crypto/openssl/crypto/dh/dh_lib.c
333
int ossl_dh_get0_nid(const DH *dh)
crypto/openssl/crypto/dh/dh_lib.c
52
const DH_METHOD *ossl_dh_get_method(const DH *dh)
crypto/openssl/crypto/dh/dh_lib.c
57
DH *DH_new(void)
crypto/openssl/crypto/dh/dh_lib.c
63
DH *DH_new_method(ENGINE *engine)
crypto/openssl/crypto/dh/dh_lib.c
69
DH *ossl_dh_new_ex(OSSL_LIB_CTX *libctx)
crypto/openssl/crypto/dh/dh_lib.c
74
static DH *dh_new_intern(ENGINE *engine, OSSL_LIB_CTX *libctx)
crypto/openssl/crypto/dh/dh_lib.c
76
DH *ret = OPENSSL_zalloc(sizeof(*ret));
crypto/openssl/crypto/dh/dh_local.h
46
int (*generate_key)(DH *dh);
crypto/openssl/crypto/dh/dh_local.h
47
int (*compute_key)(unsigned char *key, const BIGNUM *pub_key, DH *dh);
crypto/openssl/crypto/dh/dh_local.h
50
int (*bn_mod_exp)(const DH *dh, BIGNUM *r, const BIGNUM *a,
crypto/openssl/crypto/dh/dh_local.h
53
int (*init)(DH *dh);
crypto/openssl/crypto/dh/dh_local.h
54
int (*finish)(DH *dh);
crypto/openssl/crypto/dh/dh_local.h
58
int (*generate_params)(DH *dh, int prime_len, int generator,
crypto/openssl/crypto/dh/dh_meth.c
102
int (*DH_meth_get_generate_key(const DH_METHOD *dhm))(DH *)
crypto/openssl/crypto/dh/dh_meth.c
107
int DH_meth_set_generate_key(DH_METHOD *dhm, int (*generate_key)(DH *))
crypto/openssl/crypto/dh/dh_meth.c
113
int (*DH_meth_get_compute_key(const DH_METHOD *dhm))(unsigned char *key, const BIGNUM *pub_key, DH *dh)
crypto/openssl/crypto/dh/dh_meth.c
119
int (*compute_key)(unsigned char *key, const BIGNUM *pub_key, DH *dh))
crypto/openssl/crypto/dh/dh_meth.c
125
int (*DH_meth_get_bn_mod_exp(const DH_METHOD *dhm))(const DH *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *,
crypto/openssl/crypto/dh/dh_meth.c
132
int (*bn_mod_exp)(const DH *, BIGNUM *, const BIGNUM *, const BIGNUM *,
crypto/openssl/crypto/dh/dh_meth.c
139
int (*DH_meth_get_init(const DH_METHOD *dhm))(DH *)
crypto/openssl/crypto/dh/dh_meth.c
144
int DH_meth_set_init(DH_METHOD *dhm, int (*init)(DH *))
crypto/openssl/crypto/dh/dh_meth.c
150
int (*DH_meth_get_finish(const DH_METHOD *dhm))(DH *)
crypto/openssl/crypto/dh/dh_meth.c
155
int DH_meth_set_finish(DH_METHOD *dhm, int (*finish)(DH *))
crypto/openssl/crypto/dh/dh_meth.c
161
int (*DH_meth_get_generate_params(const DH_METHOD *dhm))(DH *, int, int, BN_GENCB *)
crypto/openssl/crypto/dh/dh_meth.c
167
int (*generate_params)(DH *, int, int, BN_GENCB *))
crypto/openssl/crypto/dh/dh_pmeth.c
272
static DH *ffc_params_generate(OSSL_LIB_CTX *libctx, DH_PKEY_CTX *dctx,
crypto/openssl/crypto/dh/dh_pmeth.c
275
DH *ret;
crypto/openssl/crypto/dh/dh_pmeth.c
321
DH *dh = NULL;
crypto/openssl/crypto/dh/dh_pmeth.c
375
DH *dh = NULL;
crypto/openssl/crypto/dh/dh_pmeth.c
391
return DH_generate_key((DH *)EVP_PKEY_get0_DH(pkey));
crypto/openssl/crypto/dh/dh_pmeth.c
398
DH *dh;
crypto/openssl/crypto/dh/dh_pmeth.c
399
const DH *dhpub;
crypto/openssl/crypto/dh/dh_pmeth.c
407
dh = (DH *)EVP_PKEY_get0_DH(ctx->pkey);
crypto/openssl/crypto/dh/dh_prn.c
22
int DHparams_print_fp(FILE *fp, const DH *x)
crypto/openssl/crypto/dh/dh_rfc5114.c
29
DH *DH_get_##x(void) \
crypto/openssl/crypto/dh/dh_rfc5114.c
31
DH *dh = DH_new(); \
crypto/openssl/crypto/dsa/dsa_lib.c
41
DH *DSA_dup_DH(const DSA *r)
crypto/openssl/crypto/dsa/dsa_lib.c
48
DH *ret = NULL;
crypto/openssl/crypto/err/err_all_legacy.c
77
IMPLEMENT_LEGACY_ERR_LOAD(DH)
crypto/openssl/crypto/evp/ctrl_params_translate.c
1524
const DH *dh = EVP_PKEY_get0_DH(pkey);
crypto/openssl/crypto/evp/ctrl_params_translate.c
1574
const DH *dh = EVP_PKEY_get0_DH(pkey);
crypto/openssl/crypto/evp/p_lib.c
1002
const DH *EVP_PKEY_get0_DH(const EVP_PKEY *pkey)
crypto/openssl/crypto/evp/p_lib.c
1007
DH *EVP_PKEY_get1_DH(EVP_PKEY *pkey)
crypto/openssl/crypto/evp/p_lib.c
1009
DH *ret = evp_pkey_get0_DH_int(pkey);
crypto/openssl/crypto/evp/p_lib.c
954
int EVP_PKEY_set1_DH(EVP_PKEY *pkey, DH *dhkey)
crypto/openssl/crypto/evp/p_lib.c
993
DH *evp_pkey_get0_DH_int(const EVP_PKEY *pkey)
crypto/openssl/crypto/pem/pem_all.c
178
IMPLEMENT_PEM_write(DHparams, DH, PEM_STRING_DHPARAMS, DHparams)
crypto/openssl/crypto/pem/pem_all.c
179
IMPLEMENT_PEM_write(DHxparams, DH, PEM_STRING_DHXPARAMS, DHxparams)
crypto/openssl/crypto/pem/pem_all.c
183
DH *PEM_read_bio_DHparams(BIO *bp, DH **x, pem_password_cb *cb, void *u)
crypto/openssl/crypto/pem/pem_all.c
189
DH *ret = NULL;
crypto/openssl/crypto/pem/pem_all.c
208
DH *PEM_read_DHparams(FILE *fp, DH **x, pem_password_cb *cb, void *u)
crypto/openssl/crypto/pem/pem_all.c
211
DH *ret;
crypto/openssl/crypto/x509/x_pubkey.c
646
DH *ossl_d2i_DH_PUBKEY(DH **a, const unsigned char **pp, long length)
crypto/openssl/crypto/x509/x_pubkey.c
649
DH *key = NULL;
crypto/openssl/crypto/x509/x_pubkey.c
669
int ossl_i2d_DH_PUBKEY(const DH *a, unsigned char **pp)
crypto/openssl/crypto/x509/x_pubkey.c
680
(void)EVP_PKEY_assign_DH(pktmp, (DH *)a);
crypto/openssl/crypto/x509/x_pubkey.c
687
DH *ossl_d2i_DHx_PUBKEY(DH **a, const unsigned char **pp, long length)
crypto/openssl/crypto/x509/x_pubkey.c
690
DH *key = NULL;
crypto/openssl/crypto/x509/x_pubkey.c
710
int ossl_i2d_DHx_PUBKEY(const DH *a, unsigned char **pp)
crypto/openssl/crypto/x509/x_pubkey.c
721
(void)EVP_PKEY_assign(pktmp, EVP_PKEY_DHX, (DH *)a);
crypto/openssl/fuzz/asn1.c
347
DO_TEST_NO_PRINT(DH, d2i_DHparams, i2d_DHparams);
crypto/openssl/fuzz/asn1.c
348
DO_TEST_NO_PRINT(DH, d2i_DHxparams, i2d_DHxparams);
crypto/openssl/include/crypto/dh.h
19
DH *ossl_dh_new_by_nid_ex(OSSL_LIB_CTX *libctx, int nid);
crypto/openssl/include/crypto/dh.h
20
DH *ossl_dh_new_ex(OSSL_LIB_CTX *libctx);
crypto/openssl/include/crypto/dh.h
21
void ossl_dh_set0_libctx(DH *d, OSSL_LIB_CTX *libctx);
crypto/openssl/include/crypto/dh.h
22
int ossl_dh_generate_ffc_parameters(DH *dh, int type, int pbits, int qbits,
crypto/openssl/include/crypto/dh.h
24
int ossl_dh_generate_public_key(BN_CTX *ctx, const DH *dh,
crypto/openssl/include/crypto/dh.h
29
void ossl_dh_cache_named_group(DH *dh);
crypto/openssl/include/crypto/dh.h
30
int ossl_dh_is_named_safe_prime_group(const DH *dh);
crypto/openssl/include/crypto/dh.h
32
FFC_PARAMS *ossl_dh_get0_params(DH *dh);
crypto/openssl/include/crypto/dh.h
33
int ossl_dh_get0_nid(const DH *dh);
crypto/openssl/include/crypto/dh.h
34
int ossl_dh_params_fromdata(DH *dh, const OSSL_PARAM params[]);
crypto/openssl/include/crypto/dh.h
35
int ossl_dh_key_fromdata(DH *dh, const OSSL_PARAM params[], int include_private);
crypto/openssl/include/crypto/dh.h
36
int ossl_dh_params_todata(DH *dh, OSSL_PARAM_BLD *bld, OSSL_PARAM params[]);
crypto/openssl/include/crypto/dh.h
37
int ossl_dh_key_todata(DH *dh, OSSL_PARAM_BLD *bld, OSSL_PARAM params[],
crypto/openssl/include/crypto/dh.h
39
DH *ossl_dh_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf,
crypto/openssl/include/crypto/dh.h
41
int ossl_dh_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh);
crypto/openssl/include/crypto/dh.h
43
int ossl_dh_check_pub_key_partial(const DH *dh, const BIGNUM *pub_key, int *ret);
crypto/openssl/include/crypto/dh.h
44
int ossl_dh_check_priv_key(const DH *dh, const BIGNUM *priv_key, int *ret);
crypto/openssl/include/crypto/dh.h
45
int ossl_dh_check_pairwise(const DH *dh, int return_on_null_numbers);
crypto/openssl/include/crypto/dh.h
47
const DH_METHOD *ossl_dh_get_method(const DH *dh);
crypto/openssl/include/crypto/dh.h
49
int ossl_dh_buf2key(DH *key, const unsigned char *buf, size_t len);
crypto/openssl/include/crypto/dh.h
50
size_t ossl_dh_key2buf(const DH *dh, unsigned char **pbuf, size_t size,
crypto/openssl/include/crypto/dh.h
59
int ossl_dh_is_foreign(const DH *dh);
crypto/openssl/include/crypto/dh.h
60
DH *ossl_dh_dup(const DH *dh, int selection);
crypto/openssl/include/crypto/evp.h
967
DH *evp_pkey_get0_DH_int(const EVP_PKEY *pkey);
crypto/openssl/include/crypto/x509.h
348
DH *ossl_d2i_DH_PUBKEY(DH **a, const unsigned char **pp, long length);
crypto/openssl/include/crypto/x509.h
349
int ossl_i2d_DH_PUBKEY(const DH *a, unsigned char **pp);
crypto/openssl/include/crypto/x509.h
350
DH *ossl_d2i_DHx_PUBKEY(DH **a, const unsigned char **pp, long length);
crypto/openssl/include/crypto/x509.h
351
int ossl_i2d_DHx_PUBKEY(const DH *a, unsigned char **pp);
crypto/openssl/include/openssl/dh.h
178
(DH *)ASN1_d2i_fp((void *(*)(void))DH_new, \
crypto/openssl/include/openssl/dh.h
185
ASN1_d2i_bio_of(DH, DH_new, d2i_DHparams, bp, x)
crypto/openssl/include/openssl/dh.h
187
ASN1_i2d_bio_of(DH, i2d_DHparams, bp, x)
crypto/openssl/include/openssl/dh.h
190
(DH *)ASN1_d2i_fp((void *(*)(void))DH_new, \
crypto/openssl/include/openssl/dh.h
197
ASN1_d2i_bio_of(DH, DH_new, d2i_DHxparams, bp, x)
crypto/openssl/include/openssl/dh.h
199
ASN1_i2d_bio_of(DH, i2d_DHxparams, bp, x)
crypto/openssl/include/openssl/dh.h
201
DECLARE_ASN1_DUP_FUNCTION_name_attr(OSSL_DEPRECATEDIN_3_0, DH, DHparams)
crypto/openssl/include/openssl/dh.h
207
OSSL_DEPRECATEDIN_3_0 int DH_set_method(DH *dh, const DH_METHOD *meth);
crypto/openssl/include/openssl/dh.h
208
OSSL_DEPRECATEDIN_3_0 DH *DH_new_method(ENGINE *engine);
crypto/openssl/include/openssl/dh.h
210
OSSL_DEPRECATEDIN_3_0 DH *DH_new(void);
crypto/openssl/include/openssl/dh.h
211
OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
crypto/openssl/include/openssl/dh.h
212
OSSL_DEPRECATEDIN_3_0 int DH_up_ref(DH *dh);
crypto/openssl/include/openssl/dh.h
213
OSSL_DEPRECATEDIN_3_0 int DH_bits(const DH *dh);
crypto/openssl/include/openssl/dh.h
214
OSSL_DEPRECATEDIN_3_0 int DH_size(const DH *dh);
crypto/openssl/include/openssl/dh.h
215
OSSL_DEPRECATEDIN_3_0 int DH_security_bits(const DH *dh);
crypto/openssl/include/openssl/dh.h
220
OSSL_DEPRECATEDIN_3_0 int DH_set_ex_data(DH *d, int idx, void *arg);
crypto/openssl/include/openssl/dh.h
221
OSSL_DEPRECATEDIN_3_0 void *DH_get_ex_data(const DH *d, int idx);
crypto/openssl/include/openssl/dh.h
223
OSSL_DEPRECATEDIN_3_0 int DH_generate_parameters_ex(DH *dh, int prime_len,
crypto/openssl/include/openssl/dh.h
227
OSSL_DEPRECATEDIN_3_0 int DH_check_params_ex(const DH *dh);
crypto/openssl/include/openssl/dh.h
228
OSSL_DEPRECATEDIN_3_0 int DH_check_ex(const DH *dh);
crypto/openssl/include/openssl/dh.h
229
OSSL_DEPRECATEDIN_3_0 int DH_check_pub_key_ex(const DH *dh, const BIGNUM *pub_key);
crypto/openssl/include/openssl/dh.h
230
OSSL_DEPRECATEDIN_3_0 int DH_check_params(const DH *dh, int *ret);
crypto/openssl/include/openssl/dh.h
231
OSSL_DEPRECATEDIN_3_0 int DH_check(const DH *dh, int *codes);
crypto/openssl/include/openssl/dh.h
232
OSSL_DEPRECATEDIN_3_0 int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key,
crypto/openssl/include/openssl/dh.h
234
OSSL_DEPRECATEDIN_3_0 int DH_generate_key(DH *dh);
crypto/openssl/include/openssl/dh.h
236
const BIGNUM *pub_key, DH *dh);
crypto/openssl/include/openssl/dh.h
238
const BIGNUM *pub_key, DH *dh);
crypto/openssl/include/openssl/dh.h
240
DECLARE_ASN1_ENCODE_FUNCTIONS_only_attr(OSSL_DEPRECATEDIN_3_0, DH, DHparams)
crypto/openssl/include/openssl/dh.h
241
DECLARE_ASN1_ENCODE_FUNCTIONS_only_attr(OSSL_DEPRECATEDIN_3_0, DH, DHxparams)
crypto/openssl/include/openssl/dh.h
244
OSSL_DEPRECATEDIN_3_0 int DHparams_print_fp(FILE *fp, const DH *x);
crypto/openssl/include/openssl/dh.h
246
OSSL_DEPRECATEDIN_3_0 int DHparams_print(BIO *bp, const DH *x);
crypto/openssl/include/openssl/dh.h
249
OSSL_DEPRECATEDIN_3_0 DH *DH_get_1024_160(void);
crypto/openssl/include/openssl/dh.h
250
OSSL_DEPRECATEDIN_3_0 DH *DH_get_2048_224(void);
crypto/openssl/include/openssl/dh.h
251
OSSL_DEPRECATEDIN_3_0 DH *DH_get_2048_256(void);
crypto/openssl/include/openssl/dh.h
254
OSSL_DEPRECATEDIN_3_0 DH *DH_new_by_nid(int nid);
crypto/openssl/include/openssl/dh.h
255
OSSL_DEPRECATEDIN_3_0 int DH_get_nid(const DH *dh);
crypto/openssl/include/openssl/dh.h
264
OSSL_DEPRECATEDIN_3_0 void DH_get0_pqg(const DH *dh, const BIGNUM **p,
crypto/openssl/include/openssl/dh.h
266
OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);
crypto/openssl/include/openssl/dh.h
267
OSSL_DEPRECATEDIN_3_0 void DH_get0_key(const DH *dh, const BIGNUM **pub_key,
crypto/openssl/include/openssl/dh.h
269
OSSL_DEPRECATEDIN_3_0 int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key);
crypto/openssl/include/openssl/dh.h
270
OSSL_DEPRECATEDIN_3_0 const BIGNUM *DH_get0_p(const DH *dh);
crypto/openssl/include/openssl/dh.h
271
OSSL_DEPRECATEDIN_3_0 const BIGNUM *DH_get0_q(const DH *dh);
crypto/openssl/include/openssl/dh.h
272
OSSL_DEPRECATEDIN_3_0 const BIGNUM *DH_get0_g(const DH *dh);
crypto/openssl/include/openssl/dh.h
273
OSSL_DEPRECATEDIN_3_0 const BIGNUM *DH_get0_priv_key(const DH *dh);
crypto/openssl/include/openssl/dh.h
274
OSSL_DEPRECATEDIN_3_0 const BIGNUM *DH_get0_pub_key(const DH *dh);
crypto/openssl/include/openssl/dh.h
275
OSSL_DEPRECATEDIN_3_0 void DH_clear_flags(DH *dh, int flags);
crypto/openssl/include/openssl/dh.h
276
OSSL_DEPRECATEDIN_3_0 int DH_test_flags(const DH *dh, int flags);
crypto/openssl/include/openssl/dh.h
277
OSSL_DEPRECATEDIN_3_0 void DH_set_flags(DH *dh, int flags);
crypto/openssl/include/openssl/dh.h
278
OSSL_DEPRECATEDIN_3_0 ENGINE *DH_get0_engine(DH *d);
crypto/openssl/include/openssl/dh.h
279
OSSL_DEPRECATEDIN_3_0 long DH_get_length(const DH *dh);
crypto/openssl/include/openssl/dh.h
280
OSSL_DEPRECATEDIN_3_0 int DH_set_length(DH *dh, long length);
crypto/openssl/include/openssl/dh.h
291
OSSL_DEPRECATEDIN_3_0 int (*DH_meth_get_generate_key(const DH_METHOD *dhm))(DH *);
crypto/openssl/include/openssl/dh.h
293
int (*generate_key)(DH *));
crypto/openssl/include/openssl/dh.h
296
DH *dh);
crypto/openssl/include/openssl/dh.h
300
DH *dh));
crypto/openssl/include/openssl/dh.h
301
OSSL_DEPRECATEDIN_3_0 int (*DH_meth_get_bn_mod_exp(const DH_METHOD *dhm))(const DH *, BIGNUM *,
crypto/openssl/include/openssl/dh.h
307
int (*bn_mod_exp)(const DH *, BIGNUM *,
crypto/openssl/include/openssl/dh.h
311
OSSL_DEPRECATEDIN_3_0 int (*DH_meth_get_init(const DH_METHOD *dhm))(DH *);
crypto/openssl/include/openssl/dh.h
312
OSSL_DEPRECATEDIN_3_0 int DH_meth_set_init(DH_METHOD *dhm, int (*init)(DH *));
crypto/openssl/include/openssl/dh.h
313
OSSL_DEPRECATEDIN_3_0 int (*DH_meth_get_finish(const DH_METHOD *dhm))(DH *);
crypto/openssl/include/openssl/dh.h
314
OSSL_DEPRECATEDIN_3_0 int DH_meth_set_finish(DH_METHOD *dhm, int (*finish)(DH *));
crypto/openssl/include/openssl/dh.h
315
OSSL_DEPRECATEDIN_3_0 int (*DH_meth_get_generate_params(const DH_METHOD *dhm))(DH *, int, int,
crypto/openssl/include/openssl/dh.h
318
int (*generate_params)(DH *, int, int,
crypto/openssl/include/openssl/dh.h
323
OSSL_DEPRECATEDIN_0_9_8 DH *DH_generate_parameters(int prime_len, int generator,
crypto/openssl/include/openssl/dsa.h
202
OSSL_DEPRECATEDIN_3_0 DH *DSA_dup_DH(const DSA *r);
crypto/openssl/include/openssl/pem.h
479
DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, DHparams, DH)
crypto/openssl/include/openssl/pem.h
480
DECLARE_PEM_write_attr(OSSL_DEPRECATEDIN_3_0, DHxparams, DH)
crypto/openssl/include/openssl/ssl.h
2278
DH *(*dh)(SSL *ssl, int is_export,
crypto/openssl/include/openssl/ssl.h
2282
DH *(*dh)(SSL *ssl, int is_export,
crypto/openssl/providers/common/include/prov/securitycheck.h
31
int ossl_dh_check_key(const DH *dh);
crypto/openssl/providers/common/securitycheck.c
196
int ossl_dh_check_key(const DH *dh)
crypto/openssl/providers/implementations/encode_decode/decode_der2key.c
1222
MAKE_DECODER("DH", dh, dh, DH);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
1696
MAKE_ENCODER(dh, dh, DH, der);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
1697
MAKE_ENCODER(dh, dh, DH, pem);
crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
44
const DH *dh = key;
crypto/openssl/providers/implementations/encode_decode/encode_key2text.c
78
params = ossl_dh_get0_params((DH *)dh);
crypto/openssl/providers/implementations/exchange/dh_exch.c
146
static int dh_match_params(DH *priv, DH *peer)
crypto/openssl/providers/implementations/exchange/dh_exch.c
64
DH *dh;
crypto/openssl/providers/implementations/exchange/dh_exch.c
65
DH *dhpeer;
crypto/openssl/providers/implementations/keymgmt/dh_kmgmt.c
103
DH *dh = NULL;
crypto/openssl/providers/implementations/keymgmt/dh_kmgmt.c
117
DH *dh = NULL;
crypto/openssl/providers/implementations/keymgmt/dh_kmgmt.c
134
const DH *dh = keydata;
crypto/openssl/providers/implementations/keymgmt/dh_kmgmt.c
153
const DH *dh1 = keydata1;
crypto/openssl/providers/implementations/keymgmt/dh_kmgmt.c
154
const DH *dh2 = keydata2;
crypto/openssl/providers/implementations/keymgmt/dh_kmgmt.c
185
FFC_PARAMS *dhparams1 = ossl_dh_get0_params((DH *)dh1);
crypto/openssl/providers/implementations/keymgmt/dh_kmgmt.c
186
FFC_PARAMS *dhparams2 = ossl_dh_get0_params((DH *)dh2);
crypto/openssl/providers/implementations/keymgmt/dh_kmgmt.c
195
DH *dh = keydata;
crypto/openssl/providers/implementations/keymgmt/dh_kmgmt.c
219
DH *dh = keydata;
crypto/openssl/providers/implementations/keymgmt/dh_kmgmt.c
317
DH *dh = key;
crypto/openssl/providers/implementations/keymgmt/dh_kmgmt.c
370
DH *dh = key;
crypto/openssl/providers/implementations/keymgmt/dh_kmgmt.c
382
static int dh_validate_public(const DH *dh, int checktype)
crypto/openssl/providers/implementations/keymgmt/dh_kmgmt.c
401
static int dh_validate_private(const DH *dh)
crypto/openssl/providers/implementations/keymgmt/dh_kmgmt.c
414
const DH *dh = keydata;
crypto/openssl/providers/implementations/keymgmt/dh_kmgmt.c
502
DH *dh = templ;
crypto/openssl/providers/implementations/keymgmt/dh_kmgmt.c
698
DH *dh = NULL;
crypto/openssl/providers/implementations/keymgmt/dh_kmgmt.c
831
DH *dh = NULL;
crypto/openssl/providers/implementations/keymgmt/dh_kmgmt.c
835
dh = *(DH **)reference;
crypto/openssl/providers/implementations/keymgmt/dh_kmgmt.c
837
*(DH **)reference = NULL;
crypto/openssl/ssl/s3_lib.c
4325
sc->cert->dh_tmp_cb = (DH *(*)(SSL *, int, int))fp;
crypto/openssl/ssl/s3_lib.c
4596
ctx->cert->dh_tmp_cb = (DH *(*)(SSL *, int, int))fp;
crypto/openssl/ssl/ssl_local.h
2089
DH *(*dh_tmp_cb)(SSL *ssl, int is_export, int keysize);
crypto/openssl/ssl/ssl_local.h
2639
__owur EVP_PKEY *ssl_dh_to_pkey(DH *dh);
crypto/openssl/ssl/tls_depr.c
154
EVP_PKEY *ssl_dh_to_pkey(DH *dh)
crypto/openssl/ssl/tls_depr.c
205
DH *(*dh)(SSL *ssl, int is_export,
crypto/openssl/ssl/tls_depr.c
211
void SSL_set_tmp_dh_callback(SSL *ssl, DH *(*dh)(SSL *ssl, int is_export, int keylength))
crypto/openssl/test/dhtest.c
265
DH *dh = NULL;
crypto/openssl/test/dhtest.c
39
DH *dh = NULL;
crypto/openssl/test/dhtest.c
45
DH *a = NULL;
crypto/openssl/test/dhtest.c
46
DH *b = NULL;
crypto/openssl/test/dhtest.c
47
DH *c = NULL;
crypto/openssl/test/dhtest.c
549
DH *(*get_param)(void);
crypto/openssl/test/dhtest.c
580
DH *dhA = NULL;
crypto/openssl/test/dhtest.c
581
DH *dhB = NULL;
crypto/openssl/test/dhtest.c
664
DH *a = NULL, *b = NULL;
crypto/openssl/test/dhtest.c
734
DH *dh = NULL;
crypto/openssl/test/dhtest.c
809
DH *dh1 = DH_new_by_nid(NID_ffdhe2048);
crypto/openssl/test/dhtest.c
810
DH *dh2 = DH_new();
crypto/openssl/test/endecode_test.c
1478
MAKE_DOMAIN_KEYS(DH, "DH", NULL);
crypto/openssl/test/endecode_test.c
1543
ADD_TEST_SUITE(DH);
crypto/openssl/test/endecode_test.c
1544
ADD_TEST_SUITE_PARAMS(DH);
crypto/openssl/test/endecode_test.c
1660
FREE_DOMAIN_KEYS(DH);
crypto/openssl/test/endecode_test.c
986
DOMAIN_KEYS(DH);
crypto/openssl/test/endecode_test.c
987
IMPLEMENT_TEST_SUITE(DH, "DH", 1)
crypto/openssl/test/endecode_test.c
988
IMPLEMENT_TEST_SUITE_PARAMS(DH, "DH")
crypto/openssl/test/evp_extra_test.c
4166
DH *x942dh = NULL, *noqdh = NULL;
crypto/openssl/test/evp_extra_test2.c
1602
const DH *dhkey;
crypto/openssl/test/evp_libctx_test.c
193
DH *dh = NULL;
crypto/openssl/test/ffc_internal_test.c
439
extern FFC_PARAMS *ossl_dh_get0_params(DH *dh);
crypto/openssl/test/ffc_internal_test.c
446
DH *dh = NULL;
crypto/openssl/test/ffc_internal_test.c
544
DH *dh = NULL;
crypto/openssl/test/ffc_internal_test.c
611
DH *dh = NULL;
crypto/openssl/test/ffc_internal_test.c
666
DH *dh = NULL;
crypto/openssl/test/pem_read_depr_test.c
45
DH *dh = NULL;
crypto/openssl/test/pem_read_depr_test.c
66
DH *dh = NULL;
crypto/openssl/test/sslapitest.c
10724
static DH *tmp_dh_callback(SSL *s, int is_export, int keylen)
crypto/openssl/test/sslapitest.c
10727
DH *ret = NULL;
crypto/openssl/test/sslapitest.c
10773
DH *dh = NULL;