Home
last modified time | relevance | path

Searched refs:dh (Results 1 – 25 of 151) sorted by relevance

1234567

/external/openssl/crypto/dh/
Ddh_key.c65 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) in DH_generate_key() argument
76 return dh->meth->generate_key(dh); in DH_generate_key()
79 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) in DH_compute_key() argument
81 return dh->meth->compute_key(key, pub_key, dh); in DH_compute_key()
101 static int generate_key(DH *dh) in generate_key() argument
[all …]
Ddh_ameth.c68 DH_free(pkey->pkey.dh); in int_dh_free()
81 DH *dh = NULL; in dh_pub_decode() local
97 if (!(dh = d2i_DHparams(NULL, &pm, pmlen))) in dh_pub_decode()
110 if (!(dh->pub_key = ASN1_INTEGER_to_BN(public_key, NULL))) in dh_pub_decode()
117 EVP_PKEY_assign_DH(pkey, dh); in dh_pub_decode()
123 if (dh) in dh_pub_decode()
124 DH_free(dh); in dh_pub_decode()
131 DH *dh; in dh_pub_encode() local
139 dh=pkey->pkey.dh; in dh_pub_encode()
142 str->length = i2d_DHparams(dh, &str->data); in dh_pub_encode()
[all …]
Ddh.h101 int (*generate_key)(DH *dh);
102 int (*compute_key)(unsigned char *key,const BIGNUM *pub_key,DH *dh);
103 int (*bn_mod_exp)(const DH *dh, BIGNUM *r, const BIGNUM *a,
107 int (*init)(DH *dh);
108 int (*finish)(DH *dh);
112 int (*generate_params)(DH *dh, int prime_len, int generator, BN_GENCB *cb);
173 int DH_set_method(DH *dh, const DH_METHOD *meth);
177 void DH_free(DH *dh);
178 int DH_up_ref(DH *dh);
179 int DH_size(const DH *dh);
[all …]
Ddh_check.c73 int DH_check(const DH *dh, int *ret) in DH_check() argument
86 if (BN_is_word(dh->g,DH_GENERATOR_2)) in DH_check()
88 l=BN_mod_word(dh->p,24); in DH_check()
92 else if (BN_is_word(dh->g,DH_GENERATOR_3)) in DH_check()
94 l=BN_mod_word(dh->p,12); in DH_check()
98 else if (BN_is_word(dh->g,DH_GENERATOR_5)) in DH_check()
100 l=BN_mod_word(dh->p,10); in DH_check()
107 if (!BN_is_prime_ex(dh->p,BN_prime_checks,ctx,NULL)) in DH_check()
111 if (!BN_rshift1(q,dh->p)) goto err; in DH_check()
122 int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret) in DH_check_pub_key() argument
[all …]
Ddh_pmeth.c163 DH *dh = NULL; in pkey_dh_paramgen() local
174 dh = DH_new(); in pkey_dh_paramgen()
175 if (!dh) in pkey_dh_paramgen()
177 ret = DH_generate_parameters_ex(dh, in pkey_dh_paramgen()
180 EVP_PKEY_assign_DH(pkey, dh); in pkey_dh_paramgen()
182 DH_free(dh); in pkey_dh_paramgen()
188 DH *dh = NULL; in pkey_dh_keygen() local
194 dh = DH_new(); in pkey_dh_keygen()
195 if (!dh) in pkey_dh_keygen()
197 EVP_PKEY_assign_DH(pkey, dh); in pkey_dh_keygen()
[all …]
Dp1024.c85 DH *dh; in main() local
87 dh=DH_new(); in main()
88 dh->p=BN_bin2bn(data,sizeof(data),NULL); in main()
89 dh->g=BN_new(); in main()
90 BN_set_word(dh->g,2); in main()
91 PEM_write_DHparams(stdout,dh); in main()
Dp512.c78 DH *dh; in main() local
80 dh=DH_new(); in main()
81 dh->p=BN_bin2bn(data,sizeof(data),NULL); in main()
82 dh->g=BN_new(); in main()
83 BN_set_word(dh->g,2); in main()
84 PEM_write_DHparams(stdout,dh); in main()
Dp192.c73 DH *dh; in main() local
75 dh=DH_new(); in main()
76 dh->p=BN_bin2bn(data,sizeof(data),NULL); in main()
77 dh->g=BN_new(); in main()
78 BN_set_word(dh->g,3); in main()
79 PEM_write_DHparams(stdout,dh); in main()
Ddh_lib.c83 int DH_set_method(DH *dh, const DH_METHOD *meth) in DH_set_method() argument
88 mtmp = dh->meth; in DH_set_method()
89 if (mtmp->finish) mtmp->finish(dh); in DH_set_method()
91 if (dh->engine) in DH_set_method()
93 ENGINE_finish(dh->engine); in DH_set_method()
94 dh->engine = NULL; in DH_set_method()
97 dh->meth = meth; in DH_set_method()
98 if (meth->init) meth->init(dh); in DH_set_method()
244 int DH_size(const DH *dh) in DH_size() argument
246 return(BN_num_bytes(dh->p)); in DH_size()
/external/tcpdump/
Dprint-dccp.c64 const struct dccp_hdr *dh, u_int len) in dccp_cksum() argument
89 return in_cksum((u_short *)dh, len, sp[0]+sp[1]+sp[2]+sp[3]+sp[4]+sp[5]); in dccp_cksum()
93 static int dccp6_cksum(const struct ip6_hdr *ip6, const struct dccp_hdr *dh, u_int len) in dccp6_cksum() argument
120 sp = (const u_int16_t *)dh; in dccp6_cksum()
143 static u_int64_t dccp_seqno(const struct dccp_hdr *dh) in dccp_seqno() argument
145 u_int32_t seq_high = DCCPH_SEQ(dh); in dccp_seqno()
148 if (DCCPH_X(dh) != 0) { in dccp_seqno()
149 const struct dccp_hdr_ext *dhx = (void *)(dh + 1); in dccp_seqno()
158 static inline unsigned int dccp_basic_hdr_len(const struct dccp_hdr *dh) in dccp_basic_hdr_len() argument
160 return sizeof(*dh) + (DCCPH_X(dh) ? sizeof(struct dccp_hdr_ext) : 0); in dccp_basic_hdr_len()
[all …]
Ddccp.h39 #define DCCPH_CCVAL(dh) (((dh)->dccph_ccval_cscov) & 0x0F) argument
40 #define DCCPH_CSCOV(dh) (((dh)->dccph_ccval_cscov >> 4) & 0x0F) argument
42 #define DCCPH_X(dh) ((dh)->dccph_xtrs.dccph_xtr & 1) argument
43 #define DCCPH_TYPE(dh) (((dh)->dccph_xtrs.dccph_xtr >> 1) & 0xF) argument
44 #define DCCPH_SEQ(dh) (((dh)->dccph_xtrs.dccph_seq) >> 8) argument
/external/wpa_supplicant_6/wpa_supplicant/src/crypto/
Ddh_groups.c554 struct wpabuf * dh_init(const struct dh_group *dh, struct wpabuf **priv) in dh_init() argument
559 if (dh == NULL) in dh_init()
563 *priv = wpabuf_alloc(dh->prime_len); in dh_init()
567 if (os_get_random(wpabuf_put(*priv, dh->prime_len), dh->prime_len)) { in dh_init()
573 if (os_memcmp(wpabuf_head(*priv), dh->prime, dh->prime_len) > 0) { in dh_init()
579 pv_len = dh->prime_len; in dh_init()
583 if (crypto_mod_exp(dh->generator, dh->generator_len, in dh_init()
585 dh->prime, dh->prime_len, wpabuf_mhead(pv), in dh_init()
607 const struct dh_group *dh) in dh_derive_shared() argument
612 if (dh == NULL || peer_public == NULL || own_private == NULL) in dh_derive_shared()
[all …]
/external/openssl/apps/
Ddhparam.c155 DH *dh=NULL; in MAIN() local
322 dh = DSA_dup_DH(dsa); in MAIN()
324 if (dh == NULL) in MAIN()
333 dh = DH_new(); in MAIN()
336 if(!dh || !DH_generate_parameters_ex(dh, num, g, &cb)) in MAIN()
338 if(dh) DH_free(dh); in MAIN()
387 dh = DSA_dup_DH(dsa); in MAIN()
389 if (dh == NULL) in MAIN()
399 dh=d2i_DHparams_bio(in,NULL); in MAIN()
401 dh=PEM_read_bio_DHparams(in,NULL,NULL,NULL); in MAIN()
[all …]
Ddh.c94 DH *dh=NULL; in MAIN() local
233 dh=d2i_DHparams_bio(in,NULL); in MAIN()
235 dh=PEM_read_bio_DHparams(in,NULL,NULL,NULL); in MAIN()
241 if (dh == NULL) in MAIN()
252 DHparams_print(out,dh); in MAIN()
255 BN_print(stdout,dh->p); in MAIN()
257 BN_print(stdout,dh->g); in MAIN()
259 if (dh->length != 0) in MAIN()
260 printf("recommended private length=%ld\n",dh->length); in MAIN()
266 if (!DH_check(dh,&i)) in MAIN()
[all …]
/external/quake/quake/src/QW/client/
Dblock8.h4 movb %dh,%ah
6 movb %dh,%ch
19 movb %dh,%ah
21 movb %dh,%ch
34 movb %dh,%ah
36 movb %dh,%ch
49 movb %dh,%ah
51 movb %dh,%ch
65 movb %dh,%ah
67 movb %dh,%ch
[all …]
Dblock16.h4 movb %dh,%ah
6 movb %dh,%ch
19 movb %dh,%ah
21 movb %dh,%ch
34 movb %dh,%ah
36 movb %dh,%ch
49 movb %dh,%ah
51 movb %dh,%ch
65 movb %dh,%ah
67 movb %dh,%ch
[all …]
Dsurf8.s113 movb %dh,%bh
118 movb %dh,%ch
129 movb %dh,%bh
133 movb %dh,%ch
146 movb %dh,%bh
149 movb %dh,%ch
160 movb %dh,%bh
164 movb %dh,%ch
177 movb %dh,%bh
180 movb %dh,%ch
[all …]
Dsurf8.asm281 mov bh,dh
284 mov ch,dh
292 mov bh,dh
295 mov ch,dh
304 mov bh,dh
306 mov ch,dh
314 mov bh,dh
317 mov ch,dh
326 mov bh,dh
328 mov ch,dh
[all …]
/external/quake/quake/src/WinQuake/
Dblock16.h23 movb %dh,%ah
25 movb %dh,%ch
38 movb %dh,%ah
40 movb %dh,%ch
53 movb %dh,%ah
55 movb %dh,%ch
68 movb %dh,%ah
70 movb %dh,%ch
84 movb %dh,%ah
86 movb %dh,%ch
[all …]
Dblock8.h23 movb %dh,%ah
25 movb %dh,%ch
38 movb %dh,%ah
40 movb %dh,%ch
53 movb %dh,%ah
55 movb %dh,%ch
68 movb %dh,%ah
70 movb %dh,%ch
84 movb %dh,%ah
86 movb %dh,%ch
[all …]
Dsurf8.s113 movb %dh,%bh
118 movb %dh,%ch
129 movb %dh,%bh
133 movb %dh,%ch
146 movb %dh,%bh
149 movb %dh,%ch
160 movb %dh,%bh
164 movb %dh,%ch
177 movb %dh,%bh
180 movb %dh,%ch
[all …]
/external/openssl/include/openssl/
Ddh.h101 int (*generate_key)(DH *dh);
102 int (*compute_key)(unsigned char *key,const BIGNUM *pub_key,DH *dh);
103 int (*bn_mod_exp)(const DH *dh, BIGNUM *r, const BIGNUM *a,
107 int (*init)(DH *dh);
108 int (*finish)(DH *dh);
112 int (*generate_params)(DH *dh, int prime_len, int generator, BN_GENCB *cb);
173 int DH_set_method(DH *dh, const DH_METHOD *meth);
177 void DH_free(DH *dh);
178 int DH_up_ref(DH *dh);
179 int DH_size(const DH *dh);
[all …]
/external/libvpx/vpx_scale/leapster/
Dvpxscale_lf.c460 int dh = (vscale - 1 + src->y_height * vratio) / vscale; in vp8_scale_frame() local
464 (unsigned char *) dst->y_buffer, dst->y_stride, dw, dh, in vp8_scale_frame()
468 for (i = 0; i < dh; i++) in vp8_scale_frame()
471 if (dh < (int)dst->y_height) in vp8_scale_frame()
472 for (i = dh - 1; i < (int)dst->y_height; i++) in vp8_scale_frame()
473 …duck_memcpy(dst->y_buffer + i * dst->y_stride, dst->y_buffer + (dh - 2) * dst->y_stride, dst->y_wi… in vp8_scale_frame()
476 (unsigned char *) dst->u_buffer, dst->uv_stride, dw / 2, dh / 2, in vp8_scale_frame()
483 if (dh / 2 < (int)dst->uv_height) in vp8_scale_frame()
484 for (i = dh / 2 - 1; i < (int)dst->y_height / 2; i++) in vp8_scale_frame()
485 …duck_memcpy(dst->u_buffer + i * dst->uv_stride, dst->u_buffer + (dh / 2 - 2)*dst->uv_stride, dst->… in vp8_scale_frame()
[all …]
/external/kernel-headers/original/linux/
Ddccp.h258 static inline unsigned int __dccp_basic_hdr_len(const struct dccp_hdr *dh) in __dccp_basic_hdr_len() argument
260 return sizeof(*dh) + (dh->dccph_x ? sizeof(struct dccp_hdr_ext) : 0); in __dccp_basic_hdr_len()
265 const struct dccp_hdr *dh = dccp_hdr(skb); in dccp_basic_hdr_len() local
266 return __dccp_basic_hdr_len(dh); in dccp_basic_hdr_len()
271 const struct dccp_hdr *dh = dccp_hdr(skb); in dccp_hdr_seq() local
272 __u64 seq_nr = ntohs(dh->dccph_seq); in dccp_hdr_seq()
274 if (dh->dccph_x != 0) in dccp_hdr_seq()
277 seq_nr += (u32)dh->dccph_seq2 << 16; in dccp_hdr_seq()
308 static inline unsigned int __dccp_hdr_len(const struct dccp_hdr *dh) in __dccp_hdr_len() argument
310 return __dccp_basic_hdr_len(dh) + in __dccp_hdr_len()
[all …]
/external/libvpx/vpx_scale/generic/
Dvpxscale.c618 int dh = (vscale - 1 + src->y_height * vratio) / vscale; in vp8_scale_frame() local
622 (unsigned char *) dst->y_buffer, dst->y_stride, dw, dh, in vp8_scale_frame()
626 for (i = 0; i < dh; i++) in vp8_scale_frame()
629 if (dh < (int)dst->y_height) in vp8_scale_frame()
630 for (i = dh - 1; i < (int)dst->y_height; i++) in vp8_scale_frame()
631 …duck_memcpy(dst->y_buffer + i * dst->y_stride, dst->y_buffer + (dh - 2) * dst->y_stride, dst->y_wi… in vp8_scale_frame()
634 (unsigned char *) dst->u_buffer, dst->uv_stride, dw / 2, dh / 2, in vp8_scale_frame()
641 if (dh / 2 < (int)dst->uv_height) in vp8_scale_frame()
642 for (i = dh / 2 - 1; i < (int)dst->y_height / 2; i++) in vp8_scale_frame()
643 …duck_memcpy(dst->u_buffer + i * dst->uv_stride, dst->u_buffer + (dh / 2 - 2)*dst->uv_stride, dst->… in vp8_scale_frame()
[all …]

1234567