/external/llvm/test/MC/X86/ |
H A D | encoder-fail.s | 3 movzx %dh, %rsi
|
/external/sonic/debian/ |
H A D | rules | 12 dh $@
|
/external/boringssl/src/crypto/dh/ |
H A D | dh.c | 57 #include <openssl/dh.h> 77 DH *dh = (DH *)OPENSSL_malloc(sizeof(DH)); local 78 if (dh == NULL) { 83 memset(dh, 0, sizeof(DH)); 85 CRYPTO_MUTEX_init(&dh->method_mont_p_lock); 87 dh->references = 1; 88 CRYPTO_new_ex_data(&dh->ex_data); 90 return dh; 93 void DH_free(DH *dh) { argument 94 if (dh 118 DH_generate_parameters_ex(DH *dh, int prime_bits, int generator, BN_GENCB *cb) argument 234 DH_generate_key(DH *dh) argument 319 DH_compute_key(unsigned char *out, const BIGNUM *peers_key, DH *dh) argument 376 DH_size(const DH *dh) argument 378 DH_num_bits(const DH *dh) argument 380 DH_up_ref(DH *dh) argument 433 DHparams_dup(const DH *dh) argument [all...] |
H A D | check.c | 57 #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 D | internal.h | 70 /* 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 D | params.c | 53 #include <openssl/dh.h> 254 DH *dh = DH_new(); local 255 if (!dh) { 259 dh->p = BN_dup(¶ms->p); 260 dh->q = BN_dup(¶ms->q); 261 dh->g = BN_dup(¶ms->g); 262 if (!dh->p || !dh->q || !dh->g) { 263 DH_free(dh); 282 DH_check_standard_parameters(DH *dh) argument [all...] |
/external/curl/tests/ |
H A D | mem-include-scan.pl | 84 opendir(my $dh, $dir) || die "can't opendir $dir: $!"; 85 my @cfiles = grep { /\.c\z/ && -f "$dir/$_" } readdir($dh); 86 closedir $dh;
|
/external/wpa_supplicant_8/hostapd/src/crypto/ |
H A D | dh_groups.h | 24 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 D | dh_groups.h | 24 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 D | dh_groups.h | 24 struct wpabuf * dh_init(const struct dh_group *dh, struct wpabuf **priv); 27 const struct dh_group *dh);
|
/external/openssh/ |
H A D | dh.c | 1 /* $OpenBSD: dh.c,v 1.57 2015/05/27 23:39:18 dtucker 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 D | kexgexs.c | 38 #include <openssl/dh.h> 46 #include "dh.h" 98 kex->dh = PRIVSEP(choose_dh(min, nbits, max)); 99 if (kex->dh == NULL) { 106 (r = sshpkt_put_bignum2(ssh, kex->dh->p)) != 0 || 107 (r = sshpkt_put_bignum2(ssh, kex->dh->g)) != 0 || 112 if ((r = dh_gen_key(kex->dh, kex->we_need * 8)) != 0) 166 DHparams_print_fp(stderr, kex->dh); 168 BN_print_fp(stderr, kex->dh->pub_key); 171 if (!dh_pub_is_valid(kex->dh, dh_client_pu [all...] |
H A D | kexdhc.c | 32 #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 D | kexdhs.c | 36 #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 D | kexgexc.c | 34 #include <openssl/dh.h> 47 #include "dh.h" 115 if ((kex->dh = dh_new_group(g, p)) == NULL) { 119 p = g = NULL; /* belong to kex->dh now */ 122 if ((r = dh_gen_key(kex->dh, kex->we_need * 8)) != 0 || 124 (r = sshpkt_put_bignum2(ssh, kex->dh->pub_key)) != 0 || 129 DHparams_print_fp(stderr, kex->dh); 131 BN_print_fp(stderr, kex->dh->pub_key); 198 if (!dh_pub_is_valid(kex->dh, dh_server_pub)) { 204 klen = DH_size(kex->dh); [all...] |
/external/tcpdump/ |
H A D | print-dccp.c | 80 #define DCCPH_CCVAL(dh) (((dh)->dccph_ccval_cscov >> 4) & 0xF) 81 #define DCCPH_CSCOV(dh) (((dh)->dccph_ccval_cscov) & 0xF) 83 #define DCCPH_X(dh) ((dh)->dccph_xtr & 1) 84 #define DCCPH_TYPE(dh) (((dh)->dccph_xtr >> 1) & 0xF) 191 static inline u_int dccp_csum_coverage(const struct dccp_hdr* dh, u_int len) argument 195 if (DCCPH_CSCOV(dh) 201 dccp_cksum(netdissect_options *ndo, const struct ip *ip, const struct dccp_hdr *dh, u_int len) argument 209 dccp6_cksum(const struct ip6_hdr *ip6, const struct dccp_hdr *dh, u_int len) argument 225 const struct dccp_hdr *dh = (const struct dccp_hdr *)bp; local 238 dccp_basic_hdr_len(const struct dccp_hdr *dh) argument 245 const struct dccp_hdr *dh = (const struct dccp_hdr *)bp; local 273 const struct dccp_hdr *dh; local [all...] |
/external/boringssl/include/openssl/ |
H A D | dh.h | 80 /* DH_free decrements the reference count of |dh| and frees it if the reference 82 OPENSSL_EXPORT void DH_free(DH *dh); 84 /* DH_up_ref increments the reference count of |dh|. */ 85 OPENSSL_EXPORT int DH_up_ref(DH *dh); 106 * prime that is |prime_bits| long and stores it in |dh|. The generator of the 113 OPENSSL_EXPORT int DH_generate_parameters_ex(DH *dh, int prime_bits, 120 * |dh|. It returns one on success and zero on error. */ 121 OPENSSL_EXPORT int DH_generate_key(DH *dh); 123 /* DH_compute_key calculates the shared key between |dh| and |peers_key| and 128 DH *dh); [all...] |
/external/boringssl/src/include/openssl/ |
H A D | dh.h | 80 /* DH_free decrements the reference count of |dh| and frees it if the reference 82 OPENSSL_EXPORT void DH_free(DH *dh); 84 /* DH_up_ref increments the reference count of |dh|. */ 85 OPENSSL_EXPORT int DH_up_ref(DH *dh); 106 * prime that is |prime_bits| long and stores it in |dh|. The generator of the 113 OPENSSL_EXPORT int DH_generate_parameters_ex(DH *dh, int prime_bits, 120 * |dh|. It returns one on success and zero on error. */ 121 OPENSSL_EXPORT int DH_generate_key(DH *dh); 123 /* DH_compute_key calculates the shared key between |dh| and |peers_key| and 128 DH *dh); [all...] |
/external/libpcap/ |
H A D | pcap-canusb-linux.c | 119 libusb_device_handle *dh = NULL; local 121 if ((ret = libusb_open(devs[i],&dh)) == 0) 125 int n = libusb_get_string_descriptor_ascii(dh,desc.iSerialNumber,sernum,64); 131 libusb_close(dh); 165 libusb_device_handle *dh = NULL; local 167 if (libusb_open(devs[i],&dh) != 0) continue; 169 n = libusb_get_string_descriptor_ascii(dh,desc.iSerialNumber,serial,64); 174 libusb_close(dh); 178 if ((libusb_kernel_driver_active(dh,0)) && (libusb_detach_kernel_driver(dh, [all...] |
/external/e2fsprogs/lib/quota/ |
H A D | quotaio_tree.c | 91 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 D | eap_eke_common.c | 163 const struct dh_group *dh; local 167 dh = eap_eke_dh_group(group); 168 if (generator < 0 || generator > 255 || !dh) 173 if (random_get_bytes(ret_priv, dh->prime_len)) 175 if (os_memcmp(ret_priv, dh->prime, dh->prime_len) > 0) { 179 for (i = 0; i < dh->prime_len - 1; i++) { 183 if (i == dh->prime_len - 1 && (ret_priv[i] == 0 || ret_priv[i] == 1)) 186 ret_priv, dh->prime_len); 189 pub_len = dh 407 const struct dh_group *dh; local [all...] |
/external/wpa_supplicant_8/src/eap_common/ |
H A D | eap_eke_common.c | 163 const struct dh_group *dh; local 167 dh = eap_eke_dh_group(group); 168 if (generator < 0 || generator > 255 || !dh) 173 if (random_get_bytes(ret_priv, dh->prime_len)) 175 if (os_memcmp(ret_priv, dh->prime, dh->prime_len) > 0) { 179 for (i = 0; i < dh->prime_len - 1; i++) { 183 if (i == dh->prime_len - 1 && (ret_priv[i] == 0 || ret_priv[i] == 1)) 186 ret_priv, dh->prime_len); 189 pub_len = dh 407 const struct dh_group *dh; local [all...] |
/external/wpa_supplicant_8/wpa_supplicant/src/eap_common/ |
H A D | eap_eke_common.c | 163 const struct dh_group *dh; local 167 dh = eap_eke_dh_group(group); 168 if (generator < 0 || generator > 255 || !dh) 173 if (random_get_bytes(ret_priv, dh->prime_len)) 175 if (os_memcmp(ret_priv, dh->prime, dh->prime_len) > 0) { 179 for (i = 0; i < dh->prime_len - 1; i++) { 183 if (i == dh->prime_len - 1 && (ret_priv[i] == 0 || ret_priv[i] == 1)) 186 ret_priv, dh->prime_len); 189 pub_len = dh 407 const struct dh_group *dh; local [all...] |
/external/libvpx/libvpx/vpx_scale/generic/ |
H A D | vpx_scale.c | 493 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...] |
/external/webrtc/talk/media/webrtc/ |
H A D | webrtcvideoframe.cc | 65 int dh, 72 return Reset(format, w, h, dw, dh, sample, sample_size, pixel_width, 77 bool WebRtcVideoFrame::Init(const CapturedFrame* frame, int dw, int dh, argument 79 return Reset(frame->fourcc, frame->width, frame->height, dw, dh, 196 int dh, 213 int new_height = dh; 216 new_width = dh; 227 int vert_crop = ((abs(h) - dh) / 2) & ~1; 229 int idh = (h < 0) ? -dh : dh; 61 Init(uint32_t format, int w, int h, int dw, int dh, uint8_t* sample, size_t sample_size, size_t pixel_width, size_t pixel_height, int64_t time_stamp_ns, webrtc::VideoRotation rotation) argument 192 Reset(uint32_t format, int w, int h, int dw, int dh, uint8_t* sample, size_t sample_size, size_t pixel_width, size_t pixel_height, int64_t time_stamp_ns, webrtc::VideoRotation rotation, bool apply_rotation) argument [all...] |