| /dragonfly/crypto/libressl/include/openssl/ |
| HD | dh.h | 65 #error DH is disabled. 123 DH *d2i_DHparams_bio(BIO *bp, DH **a); 124 int i2d_DHparams_bio(BIO *bp, DH *a); 125 DH *d2i_DHparams_fp(FILE *fp, DH **a); 126 int i2d_DHparams_fp(FILE *fp, DH *a); 128 DH *DHparams_dup(DH *); 134 int DH_set_method(DH *dh, const DH_METHOD *meth); 135 DH *DH_new_method(ENGINE *engine); 137 DH * DH_new(void); 138 void DH_free(DH *dh); [all …]
|
| HD | ossl_typ.h | 132 typedef struct dh_st DH; typedef
|
| /dragonfly/crypto/libressl/crypto/dh/ |
| HD | dh_asn1.c | 78 DH_free((DH *)*pval); in dh_cb() 97 .offset = offsetof(DH, p), 104 .offset = offsetof(DH, g), 111 .offset = offsetof(DH, length), 123 .size = sizeof(DH), 128 DH * 129 d2i_DHparams(DH **a, const unsigned char **in, long len) in d2i_DHparams() 131 return (DH *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, in d2i_DHparams() 136 i2d_DHparams(const DH *a, unsigned char **out) in i2d_DHparams() 141 DH * [all …]
|
| HD | dh_lib.c | 91 DH_set_method(DH *dh, const DH_METHOD *meth) in DH_set_method() 112 DH * 118 DH * 121 DH *ret; in DH_new_method() 123 ret = malloc(sizeof(DH)); in DH_new_method() 179 DH_free(DH *r) in DH_free() 209 DH_up_ref(DH *r) in DH_up_ref() 225 DH_set_ex_data(DH *d, int idx, void *arg) in DH_set_ex_data() 231 DH_get_ex_data(DH *d, int idx) in DH_get_ex_data() 237 DH_size(const DH *dh) in DH_size() [all …]
|
| HD | dh_local.h | 67 int (*generate_key)(DH *dh); 68 int (*compute_key)(unsigned char *key,const BIGNUM *pub_key,DH *dh); 69 int (*bn_mod_exp)(const DH *dh, BIGNUM *r, const BIGNUM *a, 71 int (*init)(DH *dh); 72 int (*finish)(DH *dh); 76 int (*generate_params)(DH *dh, int prime_len, int generator, 110 int DH_check_params_ex(const DH *dh); 111 int DH_check_params(const DH *dh, int *flags); 112 int DH_check_ex(const DH *dh); 113 int DH_check_pub_key_ex(const DH *dh, const BIGNUM *pub_key);
|
| HD | dh_key.c | 68 static int generate_key(DH *dh); 69 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh); 70 static int dh_bn_mod_exp(const DH *dh, BIGNUM *r, const BIGNUM *a, 72 static int dh_init(DH *dh); 73 static int dh_finish(DH *dh); 76 DH_generate_key(DH *dh) in DH_generate_key() 82 DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) in DH_compute_key() 103 generate_key(DH *dh) in generate_key() 174 compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) in compute_key() 230 dh_bn_mod_exp(const DH *dh, BIGNUM *r, const BIGNUM *a, const BIGNUM *p, in dh_bn_mod_exp() [all …]
|
| HD | dh_check.c | 76 DH_check_params_ex(const DH *dh) in DH_check_params_ex() 92 DH_check_params(const DH *dh, int *flags) in DH_check_params() 131 DH_check_ex(const DH *dh) in DH_check_ex() 157 DH_check(const DH *dh, int *flags) in DH_check() 232 DH_check_pub_key_ex(const DH *dh, const BIGNUM *pub_key) in DH_check_pub_key_ex() 250 DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *flags) in DH_check_pub_key()
|
| HD | dh_ameth.c | 87 DH *dh = NULL; in dh_pub_decode() 132 DH *dh; in dh_pub_encode() 194 DH *dh = NULL; in dh_priv_decode() 297 DH *dh; in dh_param_decode() 314 do_dh_print(BIO *bp, const DH *x, int indent, ASN1_PCTX *ctx, int ptype) in do_dh_print() 472 DHparams_print(BIO *bp, const DH *x) in DHparams_print() 480 DH *dh = pkey->pkey.dh; in dh_pkey_public_check() 493 DH *dh = pkey->pkey.dh; in dh_pkey_param_check()
|
| HD | dh_gen.c | 72 static int dh_builtin_genparams(DH *ret, int prime_len, int generator, 76 DH_generate_parameters_ex(DH *ret, int prime_len, int generator, BN_GENCB *cb) in DH_generate_parameters_ex() 110 dh_builtin_genparams(DH *ret, int prime_len, int generator, BN_GENCB *cb) in dh_builtin_genparams()
|
| HD | dh_pmeth.c | 192 DH *dh = NULL; in pkey_dh_paramgen() 217 DH *dh = NULL; in pkey_dh_keygen()
|
| HD | dh_prn.c | 66 DHparams_print_fp(FILE *fp, const DH *x) in DHparams_print_fp()
|
| /dragonfly/crypto/openssh/ |
| HD | dh.h | 37 DH *choose_dh(int, int, int); 38 DH *dh_new_group_asc(const char *, const char *); 39 DH *dh_new_group(BIGNUM *, BIGNUM *); 40 DH *dh_new_group1(void); 41 DH *dh_new_group14(void); 42 DH *dh_new_group16(void); 43 DH *dh_new_group18(void); 44 DH *dh_new_group_fallback(int); 46 int dh_gen_key(DH *, int); 47 int dh_pub_is_valid(const DH *, const BIGNUM *);
|
| HD | dh.c | 158 DH * 236 dh_pub_is_valid(const DH *dh, const BIGNUM *dh_pub) in dh_pub_is_valid() 284 dh_gen_key(DH *dh, int need) in dh_gen_key() 312 DH * 315 DH *dh; in dh_new_group_asc() 337 DH * 340 DH *dh; in dh_new_group() 353 DH * 368 DH * 388 DH * [all …]
|
| HD | kex.h | 44 # define DH void macro 176 DH *dh; /* DH */
|
| HD | monitor_wrap.h | 43 DH *mm_choose_dh(int, int, int);
|
| /dragonfly/crypto/libressl/ssl/ |
| HD | ssl_kex.c | 32 ssl_kex_generate_dhe(DH *dh, DH *dh_params) in ssl_kex_generate_dhe() 60 ssl_kex_generate_dhe_params_auto(DH *dh, size_t key_bits) in ssl_kex_generate_dhe_params_auto() 104 ssl_kex_params_dhe(DH *dh, CBB *cbb) in ssl_kex_params_dhe() 136 ssl_kex_public_dhe(DH *dh, CBB *cbb) in ssl_kex_public_dhe() 159 ssl_kex_peer_params_dhe(DH *dh, CBS *cbs, int *decode_error, in ssl_kex_peer_params_dhe() 203 ssl_kex_peer_public_dhe(DH *dh, CBS *cbs, int *decode_error, in ssl_kex_peer_public_dhe() 241 ssl_kex_derive_dhe(DH *dh, DH *dh_peer, in ssl_kex_derive_dhe()
|
| HD | ssl_locl.h | 379 DH *dhe_params; 380 DH *(*dhe_params_cb)(SSL *ssl, int is_export, int keysize); 1310 int ssl_ctx_security_dh(const SSL_CTX *ctx, DH *dh); 1311 int ssl_security_dh(const SSL *ssl, DH *dh); 1456 int ssl_kex_generate_dhe(DH *dh, DH *dh_params); 1457 int ssl_kex_generate_dhe_params_auto(DH *dh, size_t key_len); 1458 int ssl_kex_params_dhe(DH *dh, CBB *cbb); 1459 int ssl_kex_public_dhe(DH *dh, CBB *cbb); 1460 int ssl_kex_peer_params_dhe(DH *dh, CBS *cbs, int *decode_error, 1462 int ssl_kex_peer_public_dhe(DH *dh, CBS *cbs, int *decode_error, [all …]
|
| HD | tls_key_share.c | 34 DH *dhe; 35 DH *dhe_peer; 121 tls_key_share_set_dh_params(struct tls_key_share *ks, DH *dh_params) in tls_key_share_set_dh_params()
|
| HD | ssl_seclevel.c | 285 ssl_ctx_security_dh(const SSL_CTX *ctx, DH *dh) in ssl_ctx_security_dh() 295 ssl_security_dh(const SSL *ssl, DH *dh) in ssl_security_dh()
|
| HD | tls_internal.h | 85 int tls_key_share_set_dh_params(struct tls_key_share *ks, DH *dh_params);
|
| /dragonfly/lib/libssh/openbsd-compat/ |
| HD | openssl-compat.h | 149 void DH_get0_pqg(const DH *dh, const BIGNUM **p, const BIGNUM **q, 154 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g); 158 void DH_get0_key(const DH *dh, const BIGNUM **pub_key, const BIGNUM **priv_key); 162 int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key); 166 int DH_set_length(DH *dh, long length);
|
| /dragonfly/crypto/libressl/crypto/pem/ |
| HD | pem_all.c | 618 DH * 619 PEM_read_DHparams(FILE *fp, DH **x, pem_password_cb *cb, void *u) in PEM_read_DHparams() 626 PEM_write_DHparams(FILE *fp, const DH *x) in PEM_write_DHparams() 632 DH * 633 PEM_read_bio_DHparams(BIO *bp, DH **x, pem_password_cb *cb, void *u) in PEM_read_bio_DHparams() 640 PEM_write_bio_DHparams(BIO *bp, const DH *x) in PEM_write_bio_DHparams()
|
| /dragonfly/crypto/libressl/crypto/evp/ |
| HD | p_lib.c | 446 DH * 456 DH * 468 EVP_PKEY_set1_DH(EVP_PKEY *pkey, DH *key) in EVP_PKEY_set1_DH()
|
| /dragonfly/crypto/libressl/crypto/dsa/ |
| HD | dsa_lib.c | 265 DH * 273 DH *ret = NULL; in DSA_dup_DH()
|
| /dragonfly/crypto/libressl/apps/openssl/ |
| HD | gendh.c | 132 DH *dh = NULL; in gendh_main()
|