Searched refs:DH (Results 1 - 25 of 82) sorted by relevance

1234

/freebsd-9.3-release/crypto/openssh/
H A Ddh.h35 DH *choose_dh(int, int, int);
36 DH *dh_new_group_asc(const char *, const char *);
37 DH *dh_new_group(BIGNUM *, BIGNUM *);
38 DH *dh_new_group1(void);
39 DH *dh_new_group14(void);
41 void dh_gen_key(DH *, int);
42 int dh_pub_is_valid(DH *, BIGNUM *);
H A Ddh.c144 DH *
213 dh_pub_is_valid(DH *dh, BIGNUM *dh_pub)
221 logit("invalid public DH value: negative");
225 logit("invalid public DH value: <= 1");
236 logit("invalid public DH value: >= p-1");
250 logit("invalid public DH value (%d/%d)", bits_set, BN_num_bits(dh->p));
255 dh_gen_key(DH *dh, int need)
272 DH *
275 DH *dh;
293 DH *
[all...]
H A Dmonitor_wrap.h42 DH *mm_choose_dh(int, int, int);
H A Dkexdhc.c51 DH *dh;
58 /* generate and send 'e', client DH public key */
97 /* DH parameter f, server public DH key */
114 packet_disconnect("bad server public DH value");
H A Dkexdhs.c50 DH *dh;
56 /* generate server DH public key */
100 packet_disconnect("bad client public DH value");
145 /* send server hostkey, DH pubkey 'f' and singed H */
154 /* have keys, free DH */
/freebsd-9.3-release/crypto/openssl/crypto/dh/
H A Ddh_asn1.c76 DH_free((DH *)*pval);
84 ASN1_SIMPLE(DH, p, BIGNUM),
85 ASN1_SIMPLE(DH, g, BIGNUM),
86 ASN1_OPT(DH, length, ZLONG),
87 } ASN1_SEQUENCE_END_cb(DH, DHparams)
89 IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(DH, DHparams, DHparams)
H A Ddh.h65 # error DH is disabled.
85 * new with 0.9.7h; the built-in DH
99 /* typedef struct dh_st DH; */
105 int (*generate_key) (DH *dh);
106 int (*compute_key) (unsigned char *key, const BIGNUM *pub_key, DH *dh);
108 int (*bn_mod_exp) (const DH *dh, BIGNUM *r, const BIGNUM *a,
111 int (*init) (DH *dh);
112 int (*finish) (DH *dh);
116 int (*generate_params) (DH *dh, int prime_len, int generator,
122 * This first argument is used to pick up errors when a DH i
[all...]
H A Ddh_depr.c66 DH *DH_generate_parameters(int prime_len, int generator,
70 DH *ret = NULL;
H A Ddh_key.c67 static int generate_key(DH *dh);
68 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh);
69 static int dh_bn_mod_exp(const DH *dh, BIGNUM *r,
72 static int dh_init(DH *dh);
73 static int dh_finish(DH *dh);
75 int DH_generate_key(DH *dh)
80 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)
86 "OpenSSL DH Method",
102 static int generate_key(DH *dh)
175 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *d
[all...]
H A Ddh_lib.c83 int DH_set_method(DH *dh, const DH_METHOD *meth)
105 DH *DH_new(void)
110 DH *DH_new_method(ENGINE *engine)
112 DH *ret;
114 ret = (DH *)OPENSSL_malloc(sizeof(DH));
170 void DH_free(DH *r)
177 REF_PRINT("DH", r);
216 int DH_up_ref(DH *r)
220 REF_PRINT("DH",
[all...]
H A Ddh_gen.c71 static int dh_builtin_genparams(DH *ret, int prime_len, int generator,
74 int DH_generate_parameters_ex(DH *ret, int prime_len, int generator,
83 * We generate DH parameters as follows
101 * Since DH should be using a safe prime (both p and q are prime),
109 static int dh_builtin_genparams(DH *ret, int prime_len, int generator,
H A Dp192.c73 DH *dh;
H A Ddh_check.c76 int DH_check(const DH *dh, int *ret)
127 int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret)
H A Dp512.c78 DH *dh;
H A Ddhtest.c82 printf("No DH support\n");
102 DH *a;
103 DH *b = NULL;
198 fprintf(stderr, "Error in DH routines\n");
H A Dp1024.c85 DH *dh;
/freebsd-9.3-release/crypto/openssl/fips/dh/
H A Dfips_dh_lib.c69 DH *FIPS_dh_new(void)
71 DH *ret;
72 ret = OPENSSL_malloc(sizeof(DH));
75 memset(ret, 0, sizeof(DH));
82 void FIPS_dh_free(DH *r)
H A Dfips_dh_key.c71 static int generate_key(DH *dh);
72 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh);
73 static int dh_bn_mod_exp(const DH *dh, BIGNUM *r,
76 static int dh_init(DH *dh);
77 static int dh_finish(DH *dh);
79 int DH_generate_key(DH *dh)
84 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)
90 "OpenSSL DH Method",
105 static int generate_key(DH *dh)
184 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *d
[all...]
H A Ddh_gen.c71 static int dh_builtin_genparams(DH *ret, int prime_len, int generator,
74 int DH_generate_parameters_ex(DH *ret, int prime_len, int generator,
83 * We generate DH parameters as follows
101 * Since DH should be using a safe prime (both p and q are prime),
109 static int dh_builtin_genparams(DH *ret, int prime_len, int generator,
H A Dfips_dh_gen.c72 static int dh_builtin_genparams(DH *ret, int prime_len, int generator,
75 int DH_generate_parameters_ex(DH *ret, int prime_len, int generator,
84 * We generate DH parameters as follows
102 * Since DH should be using a safe prime (both p and q are prime),
110 static int dh_builtin_genparams(DH *ret, int prime_len, int generator,
H A Dfips_dh_check.c77 int DH_check(const DH *dh, int *ret)
128 int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret)
/freebsd-9.3-release/contrib/bind9/lib/dns/
H A Dopenssldh_link.c80 DH *dhpub, *dhpriv;
106 DH *dh1, *dh2;
135 DH *dh1, *dh2;
173 DH *dh = NULL;
248 DH *dh = key->keydata.dh;
254 DH *dh = key->keydata.dh;
290 DH *dh;
343 DH *dh;
461 DH *dh;
522 DH *d
[all...]
/freebsd-9.3-release/crypto/openssl/test/
H A Dtestfipsssl93 echo skipping anonymous DH tests
95 echo test tls1 with 1024bit anonymous DH, multiple handshakes
/freebsd-9.3-release/crypto/openssl/crypto/
H A Dossl_typ.h125 typedef struct dh_st DH; typedef in typeref:struct:dh_st
/freebsd-9.3-release/contrib/llvm/include/llvm/Support/
H A DSourceMgr.h83 void setDiagHandler(DiagHandlerTy DH, void *Ctx = 0) { argument
84 DiagHandler = DH;

Completed in 142 milliseconds

1234