Searched refs:dh (Results 1 - 25 of 191) sorted by relevance

12345678

/external/openssl/crypto/dh/
H A Ddh_key.c1 /* crypto/dh/dh_key.c */
63 #include <openssl/dh.h>
65 static int generate_key(DH *dh);
66 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh);
67 static int dh_bn_mod_exp(const DH *dh, BIGNUM *r,
71 static int dh_init(DH *dh);
72 static int dh_finish(DH *dh);
74 int DH_generate_key(DH *dh) argument
77 if (FIPS_mode() && !(dh->meth->flags & DH_FLAG_FIPS_METHOD)
78 && !(dh
87 DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument
117 generate_key(DH *dh) argument
203 compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument
263 dh_bn_mod_exp(const DH *dh, BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx) argument
281 dh_init(DH *dh) argument
287 dh_finish(DH *dh) argument
[all...]
H A Dp192.c1 /* crypto/dh/p192.c */
62 #include <openssl/dh.h>
73 DH *dh; local
75 dh=DH_new();
76 dh->p=BN_bin2bn(data,sizeof(data),NULL);
77 dh->g=BN_new();
78 BN_set_word(dh->g,3);
79 PEM_write_DHparams(stdout,dh);
H A Ddh_check.c1 /* crypto/dh/dh_check.c */
62 #include <openssl/dh.h>
73 int DH_check(const DH *dh, int *ret) argument
86 if (BN_is_word(dh->g,DH_GENERATOR_2))
88 l=BN_mod_word(dh->p,24);
92 else if (BN_is_word(dh->g,DH_GENERATOR_3))
94 l=BN_mod_word(dh->p,12);
98 else if (BN_is_word(dh->g,DH_GENERATOR_5))
100 l=BN_mod_word(dh->p,10);
107 if (!BN_is_prime_ex(dh
122 DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret) argument
[all...]
H A Dp512.c1 /* crypto/dh/p512.c */
62 #include <openssl/dh.h>
78 DH *dh; local
80 dh=DH_new();
81 dh->p=BN_bin2bn(data,sizeof(data),NULL);
82 dh->g=BN_new();
83 BN_set_word(dh->g,2);
84 PEM_write_DHparams(stdout,dh);
H A Ddh_ameth.c62 #include <openssl/dh.h>
68 DH_free(pkey->pkey.dh);
81 DH *dh = NULL; local
97 if (!(dh = d2i_DHparams(NULL, &pm, pmlen)))
110 if (!(dh->pub_key = ASN1_INTEGER_to_BN(public_key, NULL)))
117 EVP_PKEY_assign_DH(pkey, dh);
123 if (dh)
124 DH_free(dh);
131 DH *dh; local
139 dh
194 DH *dh = NULL; local
301 DH *dh; local
[all...]
H A Ddh.h1 /* crypto/dh/dh.h */
116 int (*generate_key)(DH *dh);
117 int (*compute_key)(unsigned char *key,const BIGNUM *pub_key,DH *dh);
118 int (*bn_mod_exp)(const DH *dh, BIGNUM *r, const BIGNUM *a,
122 int (*init)(DH *dh);
123 int (*finish)(DH *dh);
127 int (*generate_params)(DH *dh, int prime_len, int generator, BN_GENCB *cb);
188 int DH_set_method(DH *dh, const DH_METHOD *meth);
192 void DH_free(DH *dh);
[all...]
H A Ddh_pmeth.c63 #include <openssl/dh.h>
163 DH *dh = NULL; local
174 dh = DH_new();
175 if (!dh)
177 ret = DH_generate_parameters_ex(dh,
180 EVP_PKEY_assign_DH(pkey, dh);
182 DH_free(dh);
188 DH *dh = NULL; local
194 dh = DH_new();
195 if (!dh)
[all...]
H A Dp1024.c1 /* crypto/dh/p1024.c */
62 #include <openssl/dh.h>
85 DH *dh; local
87 dh=DH_new();
88 dh->p=BN_bin2bn(data,sizeof(data),NULL);
89 dh->g=BN_new();
90 BN_set_word(dh->g,2);
91 PEM_write_DHparams(stdout,dh);
H A Ddh_asn1.c62 #include <openssl/dh.h>
90 DH *DHparams_dup(DH *dh)
92 return ASN1_item_dup(ASN1_ITEM_rptr(DHparams), dh);
/external/tcpdump/
H A Ddccp.h39 #define DCCPH_CCVAL(dh) (((dh)->dccph_ccval_cscov) & 0x0F)
40 #define DCCPH_CSCOV(dh) (((dh)->dccph_ccval_cscov >> 4) & 0x0F)
42 #define DCCPH_X(dh) ((dh)->dccph_xtrs.dccph_xtr & 1)
43 #define DCCPH_TYPE(dh) (((dh)->dccph_xtrs.dccph_xtr >> 1) & 0xF)
44 #define DCCPH_SEQ(dh) (((dh)
[all...]
H A Dprint-dccp.c64 const struct dccp_hdr *dh, u_int len)
89 return in_cksum((u_short *)dh, len, sp[0]+sp[1]+sp[2]+sp[3]+sp[4]+sp[5]);
93 static int dccp6_cksum(const struct ip6_hdr *ip6, const struct dccp_hdr *dh, u_int len) argument
120 sp = (const u_int16_t *)dh;
143 static u_int64_t dccp_seqno(const struct dccp_hdr *dh) argument
145 u_int32_t seq_high = DCCPH_SEQ(dh);
148 if (DCCPH_X(dh) != 0) {
149 const struct dccp_hdr_ext *dhx = (void *)(dh + 1);
158 static inline unsigned int dccp_basic_hdr_len(const struct dccp_hdr *dh) argument
160 return sizeof(*dh)
63 dccp_cksum(const struct ip *ip, const struct dccp_hdr *dh, u_int len) argument
165 const struct dccp_hdr *dh = (const struct dccp_hdr *)bp; local
218 const struct dccp_hdr *dh; local
[all...]
/external/openssh/
H A Dkexdhc.c30 #include <openssl/dh.h>
44 #include "dh.h"
51 DH *dh; local
61 dh = dh_new_group1();
64 dh = dh_new_group14();
69 dh_gen_key(dh, kex->we_need * 8);
71 packet_put_bignum2(dh->pub_key);
76 DHparams_print_fp(stderr, dh);
78 BN_print_fp(stderr, dh->pub_key);
113 if (!dh_pub_is_valid(dh, dh_server_pu
[all...]
H A Ddh.c1 /* $OpenBSD: dh.c,v 1.48 2009/10/01 11:37:33 grunk Exp $ */
31 #include <openssl/dh.h>
38 #include "dh.h"
193 dh_pub_is_valid(DH *dh, BIGNUM *dh_pub) argument
213 if (!BN_sub(tmp, dh->p, BN_value_one()) ||
224 debug2("bits set: %d/%d", bits_set, BN_num_bits(dh->p));
230 logit("invalid public DH value (%d/%d)", bits_set, BN_num_bits(dh->p));
235 dh_gen_key(DH *dh, int need) argument
239 if (dh->p == NULL)
240 fatal("dh_gen_key: dh
267 DH *dh; local
288 DH *dh; local
[all...]
H A Dkexgexs.c36 #include <openssl/dh.h>
45 #include "dh.h"
58 DH *dh; local
105 dh = PRIVSEP(choose_dh(min, nbits, max));
106 if (dh == NULL)
111 packet_put_bignum2(dh->p);
112 packet_put_bignum2(dh->g);
119 dh_gen_key(dh, kex->we_need * 8);
138 DHparams_print_fp(stderr, dh);
140 BN_print_fp(stderr, dh
[all...]
H A Dkexgexc.c31 #include <openssl/dh.h>
45 #include "dh.h"
59 DH *dh; local
104 dh = dh_new_group(g, p);
105 dh_gen_key(dh, kex->we_need * 8);
108 DHparams_print_fp(stderr, dh);
110 BN_print_fp(stderr, dh->pub_key);
117 packet_put_bignum2(dh->pub_key);
151 if (!dh_pub_is_valid(dh, dh_server_pub))
154 klen = DH_size(dh);
[all...]
H A Dkexdhs.c34 #include <openssl/dh.h>
43 #include "dh.h"
54 DH *dh; local
63 dh = dh_new_group1();
66 dh = dh_new_group14();
71 dh_gen_key(dh, kex->we_need * 8);
101 DHparams_print_fp(stderr, dh);
103 BN_print_fp(stderr, dh->pub_key);
106 if (!dh_pub_is_valid(dh, dh_client_pub))
109 klen = DH_size(dh);
[all...]
/external/wpa_supplicant_8/hostapd/src/crypto/
H A Ddh_groups.h24 struct wpabuf * dh_init(const struct dh_group *dh, struct wpabuf **priv);
27 const struct dh_group *dh);
/external/wpa_supplicant_8/src/crypto/
H A Ddh_groups.h24 struct wpabuf * dh_init(const struct dh_group *dh, struct wpabuf **priv);
27 const struct dh_group *dh);
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A Ddh_groups.h24 struct wpabuf * dh_init(const struct dh_group *dh, struct wpabuf **priv);
27 const struct dh_group *dh);
/external/openssh/regress/
H A Dputty-kex.sh14 for k in dh-gex-sha1 dh-group1-sha1 dh-group14-sha1 ; do
/external/openssl/include/openssl/
H A Ddh.h1 /* crypto/dh/dh.h */
116 int (*generate_key)(DH *dh);
117 int (*compute_key)(unsigned char *key,const BIGNUM *pub_key,DH *dh);
118 int (*bn_mod_exp)(const DH *dh, BIGNUM *r, const BIGNUM *a,
122 int (*init)(DH *dh);
123 int (*finish)(DH *dh);
127 int (*generate_params)(DH *dh, int prime_len, int generator, BN_GENCB *cb);
188 int DH_set_method(DH *dh, const DH_METHOD *meth);
192 void DH_free(DH *dh);
[all...]
/external/openssl/apps/
H A Ddh.c1 /* apps/dh.c */
70 #include <openssl/dh.h>
91 DH *dh=NULL; local
230 dh=d2i_DHparams_bio(in,NULL);
232 dh=PEM_read_bio_DHparams(in,NULL,NULL,NULL);
238 if (dh == NULL)
249 DHparams_print(out,dh);
252 BN_print(stdout,dh->p);
254 BN_print(stdout,dh->g);
256 if (dh
[all...]
H A Ddhparam.c122 #include <openssl/dh.h>
152 DH *dh=NULL; local
319 dh = DSA_dup_DH(dsa);
321 if (dh == NULL)
330 dh = DH_new();
333 if(!dh || !DH_generate_parameters_ex(dh, num, g, &cb))
383 dh = DSA_dup_DH(dsa);
385 if (dh == NULL)
395 dh
[all...]
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/transport/
H A DKexState.java8 import ch.ethz.ssh2.crypto.dh.DhExchange;
9 import ch.ethz.ssh2.crypto.dh.DhGroupExchange;
/external/quake/quake/src/QW/client/
H A Dblock16.h4 movb %dh,%ah variable
6 movb %dh,%ch variable
19 movb %dh,%ah variable
21 movb %dh,%ch variable
34 movb %dh,%ah variable
36 movb %dh,%ch variable
49 movb %dh,%ah variable
51 movb %dh,%ch variable
65 movb %dh,%ah variable
67 movb %dh, variable
80 movb %dh,%ah variable
82 movb %dh,%ch variable
96 movb %dh,%ah variable
98 movb %dh,%ch variable
112 movb %dh,%ah variable
114 movb %dh,%ch variable
[all...]

Completed in 282 milliseconds

12345678