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

1234567

/external/sonic/debian/
H A Drules12 dh $@
/external/boringssl/src/crypto/dh/
H A Ddh.c57 #include <openssl/dh.h>
79 DH *dh = (DH *)OPENSSL_malloc(sizeof(DH)); local
80 if (dh == NULL) {
85 memset(dh, 0, sizeof(DH));
88 dh->meth = ENGINE_get_DH_method(engine);
91 if (dh->meth == NULL) {
92 dh->meth = (DH_METHOD*) &DH_default_method;
94 METHOD_ref(dh->meth);
96 CRYPTO_MUTEX_init(&dh->method_mont_p_lock);
98 dh
114 DH_free(DH *dh) argument
144 DH_generate_parameters_ex(DH *dh, int prime_bits, int generator, BN_GENCB *cb) argument
151 DH_generate_key(DH *dh) argument
158 DH_compute_key(unsigned char *out, const BIGNUM *peers_key, DH *dh) argument
165 DH_size(const DH *dh) argument
167 DH_num_bits(const DH *dh) argument
169 DH_up_ref(DH *dh) argument
222 DHparams_dup(const DH *dh) argument
[all...]
H A Dcheck.c57 #include <openssl/dh.h>
64 int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret) { argument
77 if (!BN_copy(&q, dh->p) ||
93 int DH_check(const DH *dh, int *ret) { argument
121 if (dh->q) {
122 if (BN_cmp(dh->g, BN_value_one()) <= 0) {
124 } else if (BN_cmp(dh->g, dh->p) >= 0) {
128 if (!BN_mod_exp(t1, dh->g, dh
[all...]
H A Ddh_impl.c57 #include <openssl/dh.h>
178 static int generate_key(DH *dh) { argument
192 if (dh->priv_key == NULL) {
199 priv_key = dh->priv_key;
202 if (dh->pub_key == NULL) {
208 pub_key = dh->pub_key;
211 mont = BN_MONT_CTX_set_locked(&dh->method_mont_p, &dh->method_mont_p_lock,
212 dh->p, ctx);
218 if (dh
258 compute_key(DH *dh, unsigned char *out, const BIGNUM *pub_key) argument
[all...]
H A Dinternal.h70 /* DH_check_standard_parameters checks if the parameters in |dh| are well
71 * known and safe. If so, it sets |dh->priv_length| to an appropriately smaller
73 void DH_check_standard_parameters(DH *dh);
H A Dparams.c53 #include <openssl/dh.h>
267 DH *dh; local
269 dh = DH_new_method(engine);
270 if (!dh) {
274 dh->p = BN_dup(&params->p);
275 dh->q = BN_dup(&params->q);
276 dh->g = BN_dup(&params->g);
277 if (!dh->p || !dh->q || !dh
297 DH_check_standard_parameters(DH *dh) argument
[all...]
H A Ddh_asn1.c56 #include <openssl/dh.h>
/external/tcpdump/
H A Ddccp.h39 #define DCCPH_CCVAL(dh) (((dh)->dccph_ccval_cscov >> 4) & 0xF)
40 #define DCCPH_CSCOV(dh) (((dh)->dccph_ccval_cscov) & 0xF)
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.c63 static inline u_int dccp_csum_coverage(const struct dccp_hdr* dh, u_int len) argument
67 if (DCCPH_CSCOV(dh) == 0)
69 cov = (dh->dccph_doff + DCCPH_CSCOV(dh) - 1) * sizeof(u_int32_t);
74 const struct dccp_hdr *dh, u_int len)
76 return nextproto4_cksum(ip, (const u_int8_t *)(void *)dh,
77 dccp_csum_coverage(dh, len), IPPROTO_DCCP);
81 static int dccp6_cksum(const struct ip6_hdr *ip6, const struct dccp_hdr *dh, u_int len) argument
83 return nextproto6_cksum(ip6, (const u_int8_t *)(void *)dh,
84 dccp_csum_coverage(dh, le
73 dccp_cksum(const struct ip *ip, const struct dccp_hdr *dh, u_int len) argument
95 dccp_seqno(const struct dccp_hdr *dh) argument
110 dccp_basic_hdr_len(const struct dccp_hdr *dh) argument
117 const struct dccp_hdr *dh = (const struct dccp_hdr *)bp; local
170 const struct dccp_hdr *dh; local
[all...]
/external/boringssl/include/openssl/
H A Ddh.h83 /* DH_free decrements the reference count of |dh| and frees it if the reference
85 OPENSSL_EXPORT void DH_free(DH *dh);
87 /* DH_up_ref increments the reference count of |dh|. */
88 OPENSSL_EXPORT int DH_up_ref(DH *dh);
110 * prime that is |prime_bits| long and stores it in |dh|. The generator of the
117 OPENSSL_EXPORT int DH_generate_parameters_ex(DH *dh, int prime_bits,
124 * |dh|. It returns one on success and zero on error. */
125 OPENSSL_EXPORT int DH_generate_key(DH *dh);
127 /* DH_compute_key calculates the shared key between |dh| and |peers_key| and
132 DH *dh);
[all...]
/external/boringssl/src/include/openssl/
H A Ddh.h83 /* DH_free decrements the reference count of |dh| and frees it if the reference
85 OPENSSL_EXPORT void DH_free(DH *dh);
87 /* DH_up_ref increments the reference count of |dh|. */
88 OPENSSL_EXPORT int DH_up_ref(DH *dh);
110 * prime that is |prime_bits| long and stores it in |dh|. The generator of the
117 OPENSSL_EXPORT int DH_generate_parameters_ex(DH *dh, int prime_bits,
124 * |dh|. It returns one on success and zero on error. */
125 OPENSSL_EXPORT int DH_generate_key(DH *dh);
127 /* DH_compute_key calculates the shared key between |dh| and |peers_key| and
132 DH *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/
H A Ddh.c1 /* $OpenBSD: dh.c,v 1.55 2015/01/20 23:14:00 deraadt Exp $ */
31 #include <openssl/dh.h>
39 #include "dh.h"
216 dh_pub_is_valid(DH *dh, BIGNUM *dh_pub) argument
236 if (!BN_sub(tmp, dh->p, BN_value_one()) ||
247 debug2("bits set: %d/%d", bits_set, BN_num_bits(dh->p));
253 logit("invalid public DH value (%d/%d)", bits_set, BN_num_bits(dh->p));
258 dh_gen_key(DH *dh, int need) argument
262 if (need < 0 || dh->p == NULL ||
263 (pbits = BN_num_bits(dh
283 DH *dh; local
303 DH *dh; local
[all...]
H A Dkexgexs.c38 #include <openssl/dh.h>
46 #include "dh.h"
117 kex->dh = PRIVSEP(choose_dh(min, nbits, max));
118 if (kex->dh == NULL) {
125 (r = sshpkt_put_bignum2(ssh, kex->dh->p)) != 0 ||
126 (r = sshpkt_put_bignum2(ssh, kex->dh->g)) != 0 ||
131 if ((r = dh_gen_key(kex->dh, kex->we_need * 8)) != 0)
189 DHparams_print_fp(stderr, kex->dh);
191 BN_print_fp(stderr, kex->dh->pub_key);
194 if (!dh_pub_is_valid(kex->dh, dh_client_pu
[all...]
H A Dkexdhc.c32 #include <openssl/dh.h>
45 #include "dh.h"
63 kex->dh = dh_new_group1();
66 kex->dh = dh_new_group14();
72 if (kex->dh == NULL) {
77 if ((r = dh_gen_key(kex->dh, kex->we_need * 8)) != 0 ||
79 (r = sshpkt_put_bignum2(ssh, kex->dh->pub_key)) != 0 ||
83 DHparams_print_fp(stderr, kex->dh);
85 BN_print_fp(stderr, kex->dh->pub_key);
143 if (!dh_pub_is_valid(kex->dh, dh_server_pu
[all...]
H A Dkexdhs.c36 #include <openssl/dh.h>
44 #include "dh.h"
63 kex->dh = dh_new_group1();
66 kex->dh = dh_new_group14();
72 if (kex->dh == NULL) {
76 if ((r = dh_gen_key(kex->dh, kex->we_need * 8)) != 0)
130 DHparams_print_fp(stderr, kex->dh);
132 BN_print_fp(stderr, kex->dh->pub_key);
135 if (!dh_pub_is_valid(kex->dh, dh_client_pub)) {
141 klen = DH_size(kex->dh);
[all...]
H A Dkexgexc.c33 #include <openssl/dh.h>
46 #include "dh.h"
122 if ((kex->dh = dh_new_group(g, p)) == NULL) {
126 p = g = NULL; /* belong to kex->dh now */
129 if ((r = dh_gen_key(kex->dh, kex->we_need * 8)) != 0 ||
131 (r = sshpkt_put_bignum2(ssh, kex->dh->pub_key)) != 0 ||
136 DHparams_print_fp(stderr, kex->dh);
138 BN_print_fp(stderr, kex->dh->pub_key);
205 if (!dh_pub_is_valid(kex->dh, dh_server_pub)) {
211 klen = DH_size(kex->dh);
[all...]
/external/libpcap/
H A Dpcap-canusb-linux.c118 libusb_device_handle *dh = NULL; local
120 if ((ret = libusb_open(devs[i],&dh)) == 0)
124 int n = libusb_get_string_descriptor_ascii(dh,desc.iSerialNumber,sernum,64);
130 libusb_close(dh);
164 libusb_device_handle *dh = NULL; local
166 if (libusb_open(devs[i],&dh) != 0) continue;
168 n = libusb_get_string_descriptor_ascii(dh,desc.iSerialNumber,serial,64);
173 libusb_close(dh);
177 if ((libusb_kernel_driver_active(dh,0)) && (libusb_detach_kernel_driver(dh,
[all...]
/external/e2fsprogs/lib/quota/
H A Dquotaio_tree.c91 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; local
101 info->dqi_free_blk = ext2fs_le32_to_cpu(dh->dqdh_next_free);
121 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; local
124 dh->dqdh_next_free = ext2fs_cpu_to_le32(info->dqi_free_blk);
125 dh->dqdh_prev_free = ext2fs_cpu_to_le32(0);
126 dh->dqdh_entries = ext2fs_cpu_to_le16(0);
136 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; local
137 uint nextblk = ext2fs_le32_to_cpu(dh->dqdh_next_free), prevblk =
139 ext2fs_le32_to_cpu(dh->dqdh_prev_free);
147 dh
169 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; local
194 struct qt_disk_dqdbheader *dh; local
350 struct qt_disk_dqdbheader *dh; local
549 struct qt_disk_dqdbheader *dh; local
[all...]
/external/wpa_supplicant_8/hostapd/src/eap_common/
H A Deap_eke_common.c165 const struct dh_group *dh; local
173 dh = eap_eke_dh_group(group);
174 if (dh == NULL)
178 if (random_get_bytes(ret_priv, dh->prime_len))
180 if (os_memcmp(ret_priv, dh->prime, dh->prime_len) > 0) {
184 for (i = 0; i < dh->prime_len - 1; i++) {
188 if (i == dh->prime_len - 1 && (ret_priv[i] == 0 || ret_priv[i] == 1))
191 ret_priv, dh->prime_len);
194 pub_len = dh
412 const struct dh_group *dh; local
[all...]
/external/wpa_supplicant_8/src/eap_common/
H A Deap_eke_common.c165 const struct dh_group *dh; local
173 dh = eap_eke_dh_group(group);
174 if (dh == NULL)
178 if (random_get_bytes(ret_priv, dh->prime_len))
180 if (os_memcmp(ret_priv, dh->prime, dh->prime_len) > 0) {
184 for (i = 0; i < dh->prime_len - 1; i++) {
188 if (i == dh->prime_len - 1 && (ret_priv[i] == 0 || ret_priv[i] == 1))
191 ret_priv, dh->prime_len);
194 pub_len = dh
412 const struct dh_group *dh; local
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/eap_common/
H A Deap_eke_common.c165 const struct dh_group *dh; local
173 dh = eap_eke_dh_group(group);
174 if (dh == NULL)
178 if (random_get_bytes(ret_priv, dh->prime_len))
180 if (os_memcmp(ret_priv, dh->prime, dh->prime_len) > 0) {
184 for (i = 0; i < dh->prime_len - 1; i++) {
188 if (i == dh->prime_len - 1 && (ret_priv[i] == 0 || ret_priv[i] == 1))
191 ret_priv, dh->prime_len);
194 pub_len = dh
412 const struct dh_group *dh; local
[all...]
/external/libvpx/libvpx/vpx_scale/generic/
H A Dvpx_scale.c493 int dh = (vscale - 1 + src->y_height * vratio) / vscale; local
497 (unsigned char *) dst->y_buffer, dst->y_stride, dw, dh,
501 for (i = 0; i < dh; i++)
504 if (dh < (int)dst->y_height)
505 for (i = dh - 1; i < (int)dst->y_height; i++)
506 memcpy(dst->y_buffer + i * dst->y_stride, dst->y_buffer + (dh - 2) * dst->y_stride, dst->y_width + 1);
509 (unsigned char *) dst->u_buffer, dst->uv_stride, dw / 2, dh / 2,
516 if (dh / 2 < (int)dst->uv_height)
517 for (i = dh / 2 - 1; i < (int)dst->y_height / 2; i++)
518 memcpy(dst->u_buffer + i * dst->uv_stride, dst->u_buffer + (dh /
[all...]

Completed in 579 milliseconds

1234567