Home
last modified time | relevance | path

Searched refs:hashes (Results 1 – 25 of 33) sorted by relevance

12

/dragonfly/contrib/cryptsetup/lib/
HDgcrypt.c74 struct hash_type *hashes; in gcrypt_get_hashes() local
93 hashes = malloc(sizeof(*hashes) * (size + 1)); in gcrypt_get_hashes()
94 if (!hashes) { in gcrypt_get_hashes()
100 hashes[i].name = NULL; in gcrypt_get_hashes()
101 hashes[i].private = NULL; in gcrypt_get_hashes()
107 hashes[i].name = strdup(gcry_md_algo_name(list[i])); in gcrypt_get_hashes()
108 if(!hashes[i].name) in gcrypt_get_hashes()
110 for(p = (char *)hashes[i].name; *p; p++) in gcrypt_get_hashes()
112 hashes[i].private = malloc(sizeof(int)); in gcrypt_get_hashes()
113 if(!hashes[i].private) in gcrypt_get_hashes()
[all …]
HDinternal.h40 void (*free_hashes)(struct hash_type *hashes);
/dragonfly/crypto/libressl/crypto/x509/
HDby_dir.c83 STACK_OF(BY_DIR_HASH) *hashes;
185 sk_BY_DIR_HASH_pop_free(ent->hashes, by_dir_hash_free); in by_dir_entry_free()
244 ent->hashes = sk_BY_DIR_HASH_new(by_dir_hash_cmp); in add_cert_dir()
246 if (ent->dir == NULL || ent->hashes == NULL) { in add_cert_dir()
324 idx = sk_BY_DIR_HASH_find(ent->hashes, &htmp); in get_cert_by_subject()
326 hent = sk_BY_DIR_HASH_value(ent->hashes, idx); in get_cert_by_subject()
375 idx = sk_BY_DIR_HASH_find(ent->hashes, &htmp); in get_cert_by_subject()
376 hent = sk_BY_DIR_HASH_value(ent->hashes, idx); in get_cert_by_subject()
388 if (!sk_BY_DIR_HASH_push(ent->hashes, hent)) { in get_cert_by_subject()
/dragonfly/contrib/gcc-8.0/gcc/
HDtree-streamer.c117 if (cache->hashes.exists ()) in streamer_tree_cache_add_to_node_array()
119 if (cache->hashes.length () == ix) in streamer_tree_cache_add_to_node_array()
120 cache->hashes.safe_push (hash); in streamer_tree_cache_add_to_node_array()
122 cache->hashes[ix] = hash; in streamer_tree_cache_add_to_node_array()
197 if (cache->hashes.exists ()) in streamer_tree_cache_replace_tree()
407 cache->hashes.create (165); in streamer_tree_cache_create()
429 c->hashes.release (); in streamer_tree_cache_delete()
HDtree-streamer.h54 vec<hashval_t> hashes; member
106 return cache->hashes[ix]; in streamer_tree_cache_get_hash()
/dragonfly/contrib/tcsh-6/
HDsh.hist.c450 generateHashes(int nChars, unsigned nWords, unsigned samples, unsigned *hashes, in generateHashes() argument
504 hashes[hash2tableIndex(hash, length)]++; in generateHashes()
531 unsigned hashes[4]; /* dummy place to put hashes */ in testHash() local
538 generateHashes(length, words, 0, hashes, 4); in testHash()
546 unsigned *hashes = xmalloc(length*sizeof(unsigned)); in testHash() local
547 memset(hashes, 0, length*sizeof(unsigned)); in testHash()
549 generateHashes(4, 1, length/2, hashes, length); in testHash()
557 unsigned hits = hashes[i]; in testHash()
574 for (i = 0; hashes[i] == 0; i++); /* find first occupied bucket */ in testHash()
578 unsigned hits = hashes[i]; in testHash()
[all …]
/dragonfly/sys/dev/netif/ste/
HDif_ste.c539 u_int32_t hashes[2] = { 0, 0 }; in ste_setmulti() local
563 hashes[0] |= (1 << h); in ste_setmulti()
565 hashes[1] |= (1 << (h - 32)); in ste_setmulti()
568 CSR_WRITE_2(sc, STE_MAR0, hashes[0] & 0xFFFF); in ste_setmulti()
569 CSR_WRITE_2(sc, STE_MAR1, (hashes[0] >> 16) & 0xFFFF); in ste_setmulti()
570 CSR_WRITE_2(sc, STE_MAR2, hashes[1] & 0xFFFF); in ste_setmulti()
571 CSR_WRITE_2(sc, STE_MAR3, (hashes[1] >> 16) & 0xFFFF); in ste_setmulti()
/dragonfly/tools/tools/locale/tools/
HDfinalize25 TEMP2=/tmp/${1}.hashes
/dragonfly/sys/dev/netif/tl/
HDif_tl.c888 u_int32_t hashes[2] = { 0, 0 }; in tl_setmulti() local
902 hashes[0] = 0xFFFFFFFF; in tl_setmulti()
903 hashes[1] = 0xFFFFFFFF; in tl_setmulti()
924 hashes[0] |= (1 << h); in tl_setmulti()
926 hashes[1] |= (1 << (h - 32)); in tl_setmulti()
930 tl_dio_write32(sc, TL_HASH1, hashes[0]); in tl_setmulti()
931 tl_dio_write32(sc, TL_HASH2, hashes[1]); in tl_setmulti()
/dragonfly/sys/dev/netif/lge/
HDif_lge.c346 uint32_t h = 0, hashes[2] = { 0, 0 }; in lge_setmulti() local
368 hashes[0] |= (1 << h); in lge_setmulti()
370 hashes[1] |= (1 << (h - 32)); in lge_setmulti()
373 CSR_WRITE_4(sc, LGE_MAR0, hashes[0]); in lge_setmulti()
374 CSR_WRITE_4(sc, LGE_MAR1, hashes[1]); in lge_setmulti()
/dragonfly/sys/dev/netif/sk/
HDif_sk.c575 uint32_t hashes[2] = { 0, 0 }; in sk_setmulti() local
601 hashes[0] = 0xFFFFFFFF; in sk_setmulti()
602 hashes[1] = 0xFFFFFFFF; in sk_setmulti()
638 hashes[0] |= (1 << h); in sk_setmulti()
640 hashes[1] |= (1 << (h - 32)); in sk_setmulti()
648 SK_XM_WRITE_4(sc_if, XM_MAR0, hashes[0]); in sk_setmulti()
649 SK_XM_WRITE_4(sc_if, XM_MAR2, hashes[1]); in sk_setmulti()
654 SK_YU_WRITE_2(sc_if, YUKON_MCAH1, hashes[0] & 0xffff); in sk_setmulti()
655 SK_YU_WRITE_2(sc_if, YUKON_MCAH2, (hashes[0] >> 16) & 0xffff); in sk_setmulti()
656 SK_YU_WRITE_2(sc_if, YUKON_MCAH3, hashes[1] & 0xffff); in sk_setmulti()
[all …]
/dragonfly/sys/dev/netif/wb/
HDif_wb.c534 uint32_t hashes[2] = { 0, 0 }; in wb_setmulti() local
559 hashes[0] |= (1 << h); in wb_setmulti()
561 hashes[1] |= (1 << (h - 32)); in wb_setmulti()
570 CSR_WRITE_4(sc, WB_MAR0, hashes[0]); in wb_setmulti()
571 CSR_WRITE_4(sc, WB_MAR1, hashes[1]); in wb_setmulti()
/dragonfly/sys/dev/netif/vr/
HDif_vr.c520 uint32_t hashes[2] = { 0, 0 }; in vr_setmulti() local
553 hashes[0] |= (1 << h); in vr_setmulti()
555 hashes[1] |= (1 << (h - 32)); in vr_setmulti()
564 CSR_WRITE_4(sc, VR_MAR0, hashes[0]); in vr_setmulti()
565 CSR_WRITE_4(sc, VR_MAR1, hashes[1]); in vr_setmulti()
/dragonfly/sys/dev/netif/rl/
HDif_rl.c644 uint32_t hashes[2] = { 0, 0 }; in rl_setmulti() local
673 hashes[0] |= (1 << h); in rl_setmulti()
675 hashes[1] |= (1 << (h - 32)); in rl_setmulti()
685 CSR_WRITE_4(sc, RL_MAR0, hashes[0]); in rl_setmulti()
686 CSR_WRITE_4(sc, RL_MAR4, hashes[1]); in rl_setmulti()
/dragonfly/sys/dev/netif/dc/
HDif_dc.c1122 u_int32_t hashes[2] = { 0, 0 }; in dc_setfilt_admtek() local
1172 hashes[0] |= (1 << h); in dc_setfilt_admtek()
1174 hashes[1] |= (1 << (h - 32)); in dc_setfilt_admtek()
1177 CSR_WRITE_4(sc, DC_AL_MAR0, hashes[0]); in dc_setfilt_admtek()
1178 CSR_WRITE_4(sc, DC_AL_MAR1, hashes[1]); in dc_setfilt_admtek()
1188 u_int32_t hashes[2] = { 0, 0 }; in dc_setfilt_asix() local
1243 hashes[0] |= (1 << h); in dc_setfilt_asix()
1245 hashes[1] |= (1 << (h - 32)); in dc_setfilt_asix()
1249 CSR_WRITE_4(sc, DC_AX_FILTDATA, hashes[0]); in dc_setfilt_asix()
1251 CSR_WRITE_4(sc, DC_AX_FILTDATA, hashes[1]); in dc_setfilt_asix()
/dragonfly/sys/dev/netif/sis/
HDif_sis.c816 uint16_t hashes[16]; in sis_setmulti_sis() local
836 hashes[i] = ~0; in sis_setmulti_sis()
839 hashes[i] = 0; in sis_setmulti_sis()
846 hashes[h >> 4] |= 1 << (h & 0xf); in sis_setmulti_sis()
852 hashes[i] = ~0; in sis_setmulti_sis()
858 CSR_WRITE_4(sc, SIS_RXFILT_DATA, hashes[i]); in sis_setmulti_sis()
/dragonfly/sys/dev/netif/my/
HDif_my.c329 u_int32_t hashes[2] = {0, 0}; in my_setmulti() local
354 hashes[0] |= (1 << h); in my_setmulti()
356 hashes[1] |= (1 << (h - 32)); in my_setmulti()
364 CSR_WRITE_4(sc, MY_MAR0, hashes[0]); in my_setmulti()
365 CSR_WRITE_4(sc, MY_MAR1, hashes[1]); in my_setmulti()
/dragonfly/sys/dev/netif/vge/
HDif_vge.c516 uint32_t h, hashes[2] = { 0, 0 }; in vge_setmulti() local
553 hashes[0] |= (1 << h); in vge_setmulti()
555 hashes[1] |= (1 << (h - 32)); in vge_setmulti()
558 CSR_WRITE_4(sc, VGE_MAR0, hashes[0]); in vge_setmulti()
559 CSR_WRITE_4(sc, VGE_MAR1, hashes[1]); in vge_setmulti()
/dragonfly/contrib/pam_passwdqc/
HDREADME68 used with the traditional DES-based password hashes, which truncate
72 hashes, or some weak passwords will pass the checks.
/dragonfly/sys/dev/netif/pcn/
HDif_pcn.c319 u_int16_t hashes[4] = { 0, 0, 0, 0 }; in pcn_setmulti() local
341 hashes[h >> 4] |= 1 << (h & 0xF); in pcn_setmulti()
345 pcn_csr_write(sc, PCN_CSR_MAR0 + i, hashes[i]); in pcn_setmulti()
/dragonfly/crypto/openssh/
HDPROTOCOL.krl160 certificates) by listing their hashes:
/dragonfly/contrib/binutils-2.27/bfd/
HDelflink.c2466 if (reldata->hashes == NULL && reldata->count) in _bfd_elf_link_size_reloc_section()
2475 reldata->hashes = p; in _bfd_elf_link_size_reloc_section()
8342 struct elf_link_hash_entry **rel_hash = reldata->hashes; in elf_link_adjust_relocs()
8495 free (reldata->hashes); in elf_link_adjust_relocs()
8496 reldata->hashes = NULL; in elf_link_adjust_relocs()
10396 rel_hash = esdo->rel.hashes + esdo->rel.count; in elf_link_input_bfd()
10422 rel_hash = esdo->rela.hashes + esdo->rela.count; in elf_link_input_bfd()
10754 rel_hash_ptr = reldata->hashes + reldata->count; in elf_reloc_link_order()
11059 if ((o->flags & SEC_RELOC) != 0 && esdo->rel.hashes != NULL) in elf_final_link_free()
11060 free (esdo->rel.hashes); in elf_final_link_free()
[all …]
/dragonfly/contrib/binutils-2.34/bfd/
HDelflink.c2687 if (reldata->hashes == NULL && reldata->count) in _bfd_elf_link_size_reloc_section()
2696 reldata->hashes = p; in _bfd_elf_link_size_reloc_section()
8925 struct elf_link_hash_entry **rel_hash = reldata->hashes; in elf_link_adjust_relocs()
9094 free (reldata->hashes); in elf_link_adjust_relocs()
9095 reldata->hashes = NULL; in elf_link_adjust_relocs()
11023 rel_hash = esdo->rel.hashes + esdo->rel.count; in elf_link_input_bfd()
11049 rel_hash = esdo->rela.hashes + esdo->rela.count; in elf_link_input_bfd()
11385 rel_hash_ptr = reldata->hashes + reldata->count; in elf_reloc_link_order()
11785 if ((o->flags & SEC_RELOC) != 0 && esdo->rel.hashes != NULL) in elf_final_link_free()
11786 free (esdo->rel.hashes); in elf_final_link_free()
[all …]
/dragonfly/contrib/gdb-7/bfd/
HDelflink.c2316 if (reldata->hashes == NULL && reldata->count) in _bfd_elf_link_size_reloc_section()
2325 reldata->hashes = p; in _bfd_elf_link_size_reloc_section()
8070 struct elf_link_hash_entry **rel_hash = reldata->hashes; in elf_link_adjust_relocs()
9824 rel_hash = esdo->rel.hashes + esdo->rel.count; in elf_link_input_bfd()
9850 rel_hash = esdo->rela.hashes + esdo->rela.count; in elf_link_input_bfd()
10171 rel_hash_ptr = reldata->hashes + reldata->count; in elf_reloc_link_order()
10481 if ((o->flags & SEC_RELOC) != 0 && esdo->rel.hashes != NULL) in elf_final_link_free()
10482 free (esdo->rel.hashes); in elf_final_link_free()
10483 if ((o->flags & SEC_RELOC) != 0 && esdo->rela.hashes != NULL) in elf_final_link_free()
10484 free (esdo->rela.hashes); in elf_final_link_free()
/dragonfly/sys/dev/netif/bge/
HDif_bge.c1261 uint32_t hashes[4] = { 0, 0, 0, 0 }; in bge_setmulti() local
1283 hashes[(h & 0x60) >> 5] |= 1 << (h & 0x1F); in bge_setmulti()
1287 CSR_WRITE_4(sc, BGE_MAR0 + (i * 4), hashes[i]); in bge_setmulti()

12