/freebsd-10-stable/sys/ufs/ufs/ |
H A D | ufs_dirhash.c | 94 static int ufsdirhash_hash(struct dirhash *dh, char *name, int namelen); 95 static void ufsdirhash_adjfree(struct dirhash *dh, doff_t offset, int diff); 96 static void ufsdirhash_delslot(struct dirhash *dh, int slot); 97 static int ufsdirhash_findslot(struct dirhash *dh, char *name, int namelen, 110 #define DIRHASH_ASSERT_LOCKED(dh) \ 111 sx_assert(&(dh)->dh_lock, SA_LOCKED) 153 ufsdirhash_hold(struct dirhash *dh) argument 156 refcount_acquire(&dh->dh_refcount); 160 ufsdirhash_drop(struct dirhash *dh) argument 163 if (refcount_release(&dh 173 ufsdirhash_release(struct dirhash *dh) argument 190 struct dirhash *dh; local 279 struct dirhash *dh; local 300 struct dirhash *dh; local 344 struct dirhash *dh; local 482 struct dirhash *dh; local 551 struct dirhash *dh, *dh_next; local 705 struct dirhash *dh; local 780 struct dirhash *dh; local 806 struct dirhash *dh; local 847 struct dirhash *dh; local 874 struct dirhash *dh; local 896 struct dirhash *dh; local 925 struct dirhash *dh; local 974 struct dirhash *dh; local 1032 ufsdirhash_hash(struct dirhash *dh, char *name, int namelen) argument 1056 ufsdirhash_adjfree(struct dirhash *dh, doff_t offset, int diff) argument 1092 ufsdirhash_findslot(struct dirhash *dh, char *name, int namelen, doff_t offset) argument 1116 ufsdirhash_delslot(struct dirhash *dh, int slot) argument 1178 ufsdirhash_destroy(struct dirhash *dh) argument 1217 struct dirhash *dh; local 1251 struct dirhash *dh, *dh_temp; local [all...] |
/freebsd-10-stable/crypto/openssl/crypto/dh/ |
H A D | dh_key.c | 1 /* 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, 70 static int dh_init(DH *dh); 71 static int dh_finish(DH *dh); 73 int DH_generate_key(DH *dh) argument 76 if (FIPS_mode() && !(dh->meth->flags & DH_FLAG_FIPS_METHOD) 77 && !(dh 85 DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument 114 generate_key(DH *dh) argument 194 compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument 249 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 264 dh_init(DH *dh) argument 270 dh_finish(DH *dh) argument [all...] |
H A D | p192.c | 1 /* 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 D | dh_check.c | 1 /* crypto/dh/dh_check.c */ 62 #include <openssl/dh.h> 74 int DH_check(const DH *dh, int *ret) argument 89 if (BN_is_word(dh->g, DH_GENERATOR_2)) { 90 l = BN_mod_word(dh->p, 24); 95 else if (BN_is_word(dh->g, DH_GENERATOR_3)) { 96 l = BN_mod_word(dh->p, 12); 101 else if (BN_is_word(dh->g, DH_GENERATOR_5)) { 102 l = BN_mod_word(dh->p, 10); 108 if (!BN_is_prime_ex(dh 125 DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret) argument [all...] |
H A D | p512.c | 1 /* 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 D | dh_ameth.c | 63 #include <openssl/dh.h> 69 DH_free(pkey->pkey.dh); 82 DH *dh = NULL; local 97 if (!(dh = d2i_DHparams(NULL, &pm, pmlen))) { 108 if (!(dh->pub_key = ASN1_INTEGER_to_BN(public_key, NULL))) { 114 EVP_PKEY_assign_DH(pkey, dh); 120 if (dh) 121 DH_free(dh); 128 DH *dh; local 135 dh 191 DH *dh = NULL; local 294 DH *dh; local [all...] |
H A D | dh.h | 1 /* crypto/dh/dh.h */ 120 int (*generate_key) (DH *dh); 121 int (*compute_key) (unsigned char *key, const BIGNUM *pub_key, DH *dh); 123 int (*bn_mod_exp) (const DH *dh, BIGNUM *r, const BIGNUM *a, 126 int (*init) (DH *dh); 127 int (*finish) (DH *dh); 131 int (*generate_params) (DH *dh, int prime_len, int generator, 194 int DH_set_method(DH *dh, const DH_METHOD *meth); 198 void DH_free(DH *dh); [all...] |
H A D | dh_pmeth.c | 64 #include <openssl/dh.h> 159 DH *dh = NULL; local 168 dh = DH_new(); 169 if (!dh) 171 ret = DH_generate_parameters_ex(dh, 174 EVP_PKEY_assign_DH(pkey, dh); 176 DH_free(dh); 182 DH *dh = NULL; local 187 dh = DH_new(); 188 if (!dh) [all...] |
H A D | p1024.c | 1 /* 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 D | dh_asn1.c | 63 #include <openssl/dh.h> 92 DH *DHparams_dup(DH *dh) 94 return ASN1_item_dup(ASN1_ITEM_rptr(DHparams), dh);
|
H A D | dh_depr.c | 1 /* crypto/dh/dh_depr.c */ 61 #include <openssl/dh.h>
|
H A D | dh_prn.c | 62 #include <openssl/dh.h>
|
/freebsd-10-stable/contrib/tcpdump/ |
H A D | dccp.h | 39 #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 D | print-dccp.c | 63 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...] |
/freebsd-10-stable/contrib/wpa/src/crypto/ |
H A D | dh_groups.h | 21 struct wpabuf * dh_init(const struct dh_group *dh, struct wpabuf **priv); 24 const struct dh_group *dh);
|
/freebsd-10-stable/crypto/openssh/regress/ |
H A D | putty-kex.sh | 11 for k in dh-gex-sha1 dh-group1-sha1 dh-group14-sha1 ; do
|
/freebsd-10-stable/crypto/openssh/ |
H A D | dh.c | 1 /* $OpenBSD: dh.c,v 1.60 2016/05/02 10:26:04 djm Exp $ */ 31 #include <openssl/dh.h> 40 #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)); 254 bits_set, BN_num_bits(dh->p)); 261 dh_gen_key(DH *dh, int need) argument 265 if (need < 0 || dh->p == NULL || 266 (pbits = BN_num_bits(dh 287 DH *dh; local 307 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 | kexdhs.c | 36 #include <openssl/dh.h> 44 #include "dh.h" 63 kex->dh = dh_new_group1(); 67 kex->dh = dh_new_group14(); 70 kex->dh = dh_new_group16(); 73 kex->dh = dh_new_group18(); 79 if (kex->dh == NULL) { 83 if ((r = dh_gen_key(kex->dh, kex->we_need * 8)) != 0) 137 DHparams_print_fp(stderr, kex->dh); 139 BN_print_fp(stderr, kex->dh [all...] |
H A D | kexdhc.c | 32 #include <openssl/dh.h> 45 #include "dh.h" 63 kex->dh = dh_new_group1(); 67 kex->dh = dh_new_group14(); 70 kex->dh = dh_new_group16(); 73 kex->dh = dh_new_group18(); 79 if (kex->dh == NULL) { 84 if ((r = dh_gen_key(kex->dh, kex->we_need * 8)) != 0 || 86 (r = sshpkt_put_bignum2(ssh, kex->dh->pub_key)) != 0 || 90 DHparams_print_fp(stderr, 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...] |
/freebsd-10-stable/crypto/openssl/apps/ |
H A D | dh.c | 1 /* apps/dh.c */ 70 # include <openssl/dh.h> 92 DH *dh = NULL; local 221 dh = d2i_DHparams_bio(in, NULL); 223 dh = PEM_read_bio_DHparams(in, NULL, NULL, NULL); 228 if (dh == NULL) { 235 DHparams_print(out, dh); 238 BN_print(stdout, dh->p); 240 BN_print(stdout, dh->g); 242 if (dh [all...] |
H A D | dhparam.c | 122 # include <openssl/dh.h> 153 DH *dh = NULL; local 322 dh = DSA_dup_DH(dsa); 324 if (dh == NULL) { 331 dh = DH_new(); 336 if (!dh || !DH_generate_parameters_ex(dh, num, g, &cb)) { 378 dh = DSA_dup_DH(dsa); 380 if (dh == NULL) { 388 dh [all...] |
/freebsd-10-stable/secure/lib/libcrypto/i386/ |
H A D | cast-586.S | 32 movb %dh,%cl 36 movb %dh,%al 53 movb %dh,%cl 57 movb %dh,%al 74 movb %dh,%cl 78 movb %dh,%al 95 movb %dh,%cl 99 movb %dh,%al 116 movb %dh,%cl 120 movb %dh, [all...] |
/freebsd-10-stable/contrib/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); 148 libusb_device_handle* dh; local 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, [all...] |