| /freebsd/contrib/netbsd-tests/lib/libc/stdlib/ |
| H A D | t_mi_vector_hash.c | 50 uint32_t hashes[3]; member 75 uint32_t hashes[3]; in ATF_TC_BODY() local 82 mi_vector_hash(buf + j, len, 0, hashes); in ATF_TC_BODY() 83 ATF_CHECK_EQ(hashes[0], testv[i].hashes[0]); in ATF_TC_BODY() 84 ATF_CHECK_EQ(hashes[1], testv[i].hashes[1]); in ATF_TC_BODY() 85 ATF_CHECK_EQ(hashes[2], testv[i].hashes[2]); in ATF_TC_BODY()
|
| /freebsd/contrib/llvm-project/lld/ELF/ |
| H A D | BPSectionOrderer.cpp | 43 getSectionHashes(const Section &sec, SmallVectorImpl<uint64_t> &hashes, in getSectionHashes() 51 hashes.push_back(support::endian::read32le(data.data() + i)); in getSectionHashes() 53 hashes.push_back(byte); in getSectionHashes() 55 llvm::sort(hashes); in getSectionHashes() 56 hashes.erase(llvm::unique(hashes), hashes.end()); in getSectionHashes()
|
| /freebsd/contrib/llvm-project/lld/MachO/ |
| H A D | BPSectionOrderer.cpp | 50 getSectionHashes(const Section &sec, llvm::SmallVectorImpl<uint64_t> &hashes, in getSectionHashes() 58 hashes.push_back(llvm::support::endian::read32le(data.data() + i)); in getSectionHashes() 60 hashes.push_back(byte); in getSectionHashes() 71 hashes.push_back(xxh3_64bits(window) ^ relocHash); in getSectionHashes() 75 llvm::sort(hashes); in getSectionHashes() 76 hashes.erase(llvm::unique(hashes), hashes.end()); in getSectionHashes()
|
| /freebsd/crypto/libecc/scripts/ |
| H A D | test_ec_utils.sh | 28 hashes=("SHA224" "SHA256" "SHA384" "SHA512" "SHA512_224" "SHA512_256" "SHA3_224" "SHA3_256" "SHA3_3… 70 …$EC_UTILS sign ${curves[c]} ${signatures[s]} ${hashes[h]} $EC_UTILS test_key_private_key.bin signe… 72 …$EC_UTILS verify ${curves[c]} ${signatures[s]} ${hashes[h]} $EC_UTILS test_key_public_key.bin sign… 75 …$EC_UTILS struct_sign ${curves[c]} ${signatures[s]} ${hashes[h]} $EC_UTILS test_key_private_key.bi… 77 …$EC_UTILS struct_verify ${curves[c]} ${signatures[s]} ${hashes[h]} signed_file.bin.signed test_key…
|
| /freebsd/crypto/openssl/crypto/x509/ |
| H A D | by_dir.c | 42 STACK_OF(BY_DIR_HASH) *hashes; 152 sk_BY_DIR_HASH_pop_free(ent->hashes, by_dir_hash_free); in by_dir_entry_free() 206 ent->hashes = sk_BY_DIR_HASH_new(by_dir_hash_cmp); in add_cert_dir() 208 if (ent->dir == NULL || ent->hashes == NULL) { in add_cert_dir() 274 if (type == X509_LU_CRL && ent->hashes) { in get_cert_by_subject_ex() 278 idx = sk_BY_DIR_HASH_find(ent->hashes, &htmp); in get_cert_by_subject_ex() 280 hent = sk_BY_DIR_HASH_value(ent->hashes, idx); in get_cert_by_subject_ex() 385 idx = sk_BY_DIR_HASH_find(ent->hashes, &htmp); in get_cert_by_subject_ex() 386 hent = sk_BY_DIR_HASH_value(ent->hashes, idx); in get_cert_by_subject_ex() 397 if (!sk_BY_DIR_HASH_push(ent->hashes, hent)) { in get_cert_by_subject_ex() [all …]
|
| /freebsd/contrib/jemalloc/src/ |
| H A D | ckh.c | 19 * fewest that can work, and supporting multiple hashes is an implementation 25 * #hashes | 1 | 2 | 4 | 8 | 81 size_t hashes[2], bucket, cell; in ckh_isearch() 85 ckh->hash(key, hashes); in ckh_isearch() 88 bucket = hashes[0] & ((ZU(1) << ckh->lg_curbuckets) - 1); in ckh_isearch() 95 bucket = hashes[1] & ((ZU(1) << ckh->lg_curbuckets) - 1); in ckh_isearch() 137 size_t hashes[2], bucket, tbucket; in ckh_evict_reloc_insert() 149 * were an item for which both hashes indicated the same in ckh_evict_reloc_insert() 167 ckh->hash(key, hashes); in ckh_evict_reloc_insert() 168 tbucket = hashes[ in ckh_evict_reloc_insert() 82 size_t hashes[2], bucket, cell; ckh_isearch() local 138 size_t hashes[2], bucket, tbucket; ckh_evict_reloc_insert() local 206 size_t hashes[2], bucket; ckh_try_insert() local [all...] |
| /freebsd/sys/dev/qat/qat_api/common/ctrl/ |
| H A D | sal_crypto.c | 1371 CPA_BITMAP_BIT_SET(pCapInfo->hashes, CPA_CY_SYM_HASH_SHA1); in cpaCySymQueryCapabilities() 1372 CPA_BITMAP_BIT_SET(pCapInfo->hashes, CPA_CY_SYM_HASH_SHA224); in cpaCySymQueryCapabilities() 1373 CPA_BITMAP_BIT_SET(pCapInfo->hashes, CPA_CY_SYM_HASH_SHA256); in cpaCySymQueryCapabilities() 1374 CPA_BITMAP_BIT_SET(pCapInfo->hashes, CPA_CY_SYM_HASH_SHA384); in cpaCySymQueryCapabilities() 1375 CPA_BITMAP_BIT_SET(pCapInfo->hashes, CPA_CY_SYM_HASH_SHA512); in cpaCySymQueryCapabilities() 1376 CPA_BITMAP_BIT_SET(pCapInfo->hashes, CPA_CY_SYM_HASH_AES_XCBC); in cpaCySymQueryCapabilities() 1377 CPA_BITMAP_BIT_SET(pCapInfo->hashes, CPA_CY_SYM_HASH_AES_CCM); in cpaCySymQueryCapabilities() 1378 CPA_BITMAP_BIT_SET(pCapInfo->hashes, CPA_CY_SYM_HASH_AES_GCM); in cpaCySymQueryCapabilities() 1379 CPA_BITMAP_BIT_SET(pCapInfo->hashes, CPA_CY_SYM_HASH_AES_CMAC); in cpaCySymQueryCapabilities() 1380 CPA_BITMAP_BIT_SET(pCapInfo->hashes, CPA_CY_SYM_HASH_AES_GMAC); in cpaCySymQueryCapabilities() [all …]
|
| /freebsd/contrib/llvm-project/lld/include/lld/Common/ |
| H A D | BPSectionOrdererBase.inc | 88 SmallVector<uint64_t> hashes; 92 D::getSectionHashes(*isec, hashes, sectionToIdx); 93 sectionHashes.emplace_back(sectionIdx, std::move(hashes)); 94 hashes.clear(); 98 for (auto &[sectionIdx, hashes] : sectionHashes) 99 for (auto hash : hashes) 107 for (auto &[sectionIdx, hashes] : sectionHashes) { 109 for (auto hash : hashes) 115 newSectionHashes.emplace_back(sectionIdx, hashes); 124 for (auto &[sectionIdx, hashes] : sectionHashes) [all …]
|
| /freebsd/contrib/bearssl/src/x509/ |
| H A D | x509_minimal_full.c | 37 static const br_hash_class *hashes[] = { in br_x509_minimal_init_full() local 56 hc = hashes[id - 1]; in br_x509_minimal_init_full()
|
| /freebsd/contrib/bearssl/src/ssl/ |
| H A D | ssl_server_full_rsa.c | 73 static const br_hash_class *hashes[] = { in br_ssl_server_init_full_rsa() local 113 hc = hashes[id - 1]; in br_ssl_server_init_full_rsa()
|
| H A D | ssl_server_full_ec.c | 84 static const br_hash_class *hashes[] = { in br_ssl_server_init_full_ec() local 130 hc = hashes[id - 1]; in br_ssl_server_init_full_ec()
|
| H A D | ssl_client_full.c | 105 static const br_hash_class *hashes[] = { in br_ssl_client_init_full() local 153 hc = hashes[id - 1]; in br_ssl_client_init_full()
|
| /freebsd/sys/arm/allwinner/ |
| H A D | if_emac.c | 219 uint32_t h, *hashes = arg; in emac_hash_maddr() local 222 hashes[h >> 5] |= 1 << (h & 0x1f); in emac_hash_maddr() 231 uint32_t hashes[2]; in emac_set_rx_mode() local 244 hashes[0] = 0; in emac_set_rx_mode() 245 hashes[1] = 0; in emac_set_rx_mode() 247 hashes[0] = 0xffffffff; in emac_set_rx_mode() 248 hashes[1] = 0xffffffff; in emac_set_rx_mode() 250 if_foreach_llmaddr(ifp, emac_hash_maddr, hashes); in emac_set_rx_mode() 253 EMAC_WRITE_REG(sc, EMAC_RX_HASH0, hashes[0]); in emac_set_rx_mode() 254 EMAC_WRITE_REG(sc, EMAC_RX_HASH1, hashes[1]); in emac_set_rx_mode()
|
| /freebsd/sys/dev/usb/net/ |
| H A D | if_rue.c | 473 uint32_t *hashes = arg; in rue_hash_maddr() local 478 hashes[0] |= (1 << h); in rue_hash_maddr() 480 hashes[1] |= (1 << (h - 32)); in rue_hash_maddr() 494 uint32_t hashes[2] = { 0, 0 }; in rue_setmulti() local 515 mcnt = if_foreach_llmaddr(ifp, rue_hash_maddr, &hashes); in rue_setmulti() 525 rue_csr_write_4(sc, RUE_MAR0, hashes[0]); in rue_setmulti() 526 rue_csr_write_4(sc, RUE_MAR4, hashes[1]); in rue_setmulti()
|
| H A D | if_ure.c | 1260 uint32_t h, *hashes = arg; in ure_hash_maddr() local 1264 hashes[0] |= (1 << h); in ure_hash_maddr() 1266 hashes[1] |= (1 << (h - 32)); in ure_hash_maddr() 1279 uint32_t h, hashes[2] = { 0, 0 }; in ure_rxfilter() local 1291 hashes[0] = hashes[1] = 0xffffffff; in ure_rxfilter() 1296 if_foreach_llmaddr(ifp, ure_hash_maddr, &hashes); in ure_rxfilter() 1298 h = bswap32(hashes[0]); in ure_rxfilter() 1299 hashes[0] = bswap32(hashes[1]); in ure_rxfilter() 1300 hashes[1] = h; in ure_rxfilter() 1306 ure_write_4(sc, URE_PLA_MAR0, URE_MCU_TYPE_PLA, hashes[0]); in ure_rxfilter() [all …]
|
| /freebsd/contrib/tcsh/ |
| H A D | sh.hist.c | 437 generateHashes(int nChars, unsigned nWords, unsigned samples, unsigned *hashes, in generateHashes() argument 491 hashes[hash2tableIndex(hash, length)]++; in generateHashes() 518 unsigned hashes[4]; /* dummy place to put hashes */ in testHash() local 525 generateHashes(length, words, 0, hashes, 4); in testHash() 533 unsigned *hashes = xmalloc(length*sizeof(unsigned)); in testHash() local 534 memset(hashes, 0, length*sizeof(unsigned)); in testHash() 536 generateHashes(4, 1, length/2, hashes, length); in testHash() 544 unsigned hits = hashes[i]; in testHash() 561 for (i = 0; hashes[i] == 0; i++); /* find first occupied bucket */ in testHash() 565 unsigned hits = hashes[i]; in testHash() [all …]
|
| /freebsd/contrib/jemalloc/include/jemalloc/internal/ |
| H A D | hash.h | 312 uint64_t hashes[2]; in hash() 313 hash_x86_128(key, (int)len, seed, hashes); in hash() 314 r_hash[0] = (size_t)hashes[0]; in hash() 315 r_hash[1] = (size_t)hashes[1]; in hash() 311 uint64_t hashes[2]; hash() local
|
| /freebsd/sys/dev/rl/ |
| H A D | if_rl.c | 511 uint32_t *hashes = arg; in rl_hash_maddr() local 516 hashes[0] |= (1 << h); in rl_hash_maddr() 518 hashes[1] |= (1 << (h - 32)); in rl_hash_maddr() 530 uint32_t hashes[2] = { 0, 0 }; in rl_rxfilter() local 547 hashes[0] = 0xFFFFFFFF; in rl_rxfilter() 548 hashes[1] = 0xFFFFFFFF; in rl_rxfilter() 551 if_foreach_llmaddr(ifp, rl_hash_maddr, hashes); in rl_rxfilter() 552 if (hashes[0] != 0 || hashes[1] != 0) in rl_rxfilter() 556 CSR_WRITE_4(sc, RL_MAR0, hashes[0]); in rl_rxfilter() 557 CSR_WRITE_4(sc, RL_MAR4, hashes[1]); in rl_rxfilter()
|
| /freebsd/sys/dev/sk/ |
| H A D | if_sk.c | 682 uint32_t hashes[2]; member 703 ctx->hashes[0] |= (1 << h); in sk_add_maddr_genesis() 705 ctx->hashes[1] |= (1 << (h - 32)); in sk_add_maddr_genesis() 734 ctx.hashes[0] = 0xFFFFFFFF; in sk_rxfilter_genesis() 735 ctx.hashes[1] = 0xFFFFFFFF; in sk_rxfilter_genesis() 741 SK_XM_WRITE_4(sc_if, XM_MAR0, ctx.hashes[0]); in sk_rxfilter_genesis() 742 SK_XM_WRITE_4(sc_if, XM_MAR2, ctx.hashes[1]); in sk_rxfilter_genesis() 748 uint32_t crc, *hashes = arg; in sk_hash_maddr_yukon() local 754 hashes[crc >> 5] |= 1 << (crc & 0x1f); in sk_hash_maddr_yukon() 763 uint32_t hashes[2] = { 0, 0 }, mode; in sk_rxfilter_yukon() local [all …]
|
| /freebsd/crypto/heimdal/lib/ntlm/ |
| H A D | ChangeLog | 3 * ntlm.c: replace hashes with keys. 100 * ntlm.c: sent lm hashes, needed for NTLM2 session
|
| /freebsd/sys/dev/cadence/ |
| H A D | if_cgem.c | 319 uint32_t *hashes = arg; in cgem_hash_maddr() local 324 hashes[0] |= (1U << (index - 32)); in cgem_hash_maddr() 326 hashes[1] |= (1U << index); in cgem_hash_maddr() 339 uint32_t hashes[2] = { 0, 0 }; in cgem_rx_filter() local 350 hashes[0] = 0xffffffff; in cgem_rx_filter() 351 hashes[1] = 0xffffffff; in cgem_rx_filter() 353 if_foreach_llmaddr(ifp, cgem_hash_maddr, hashes); in cgem_rx_filter() 355 if (hashes[0] != 0 || hashes[1] != 0) in cgem_rx_filter() 359 WR4(sc, CGEM_HASH_TOP, hashes[0]); in cgem_rx_filter() 360 WR4(sc, CGEM_HASH_BOT, hashes[1]); in cgem_rx_filter()
|
| /freebsd/sys/dev/lge/ |
| H A D | if_lge.c | 356 uint32_t h, *hashes = arg; in lge_hash_maddr() local 360 hashes[0] |= (1 << h); in lge_hash_maddr() 362 hashes[1] |= (1 << (h - 32)); in lge_hash_maddr() 370 uint32_t hashes[2] = { 0, 0 }; in lge_setmulti() local 389 if_foreach_llmaddr(ifp, lge_hash_maddr, hashes); in lge_setmulti() 391 CSR_WRITE_4(sc, LGE_MAR0, hashes[0]); in lge_setmulti() 392 CSR_WRITE_4(sc, LGE_MAR1, hashes[1]); in lge_setmulti()
|
| /freebsd/sys/dev/sge/ |
| H A D | if_sge.c | 444 uint32_t crc, *hashes = arg; in sge_hash_maddr() local 447 hashes[crc >> 31] |= 1 << ((crc >> 26) & 0x1f); in sge_hash_maddr() 456 uint32_t hashes[2]; in sge_rxfilter() local 471 hashes[0] = 0xFFFFFFFF; in sge_rxfilter() 472 hashes[1] = 0xFFFFFFFF; in sge_rxfilter() 475 hashes[0] = hashes[1] = 0; in sge_rxfilter() 477 if_foreach_llmaddr(ifp, sge_hash_maddr, hashes); in sge_rxfilter() 480 CSR_WRITE_4(sc, RxHashTable, hashes[0]); in sge_rxfilter() 481 CSR_WRITE_4(sc, RxHashTable2, hashes[1]); in sge_rxfilter()
|
| /freebsd/crypto/libecc/ |
| H A D | meson.options | 81 # All the hashes options 105 value: [], description: 'enable a set of hashes when override is set')
|
| /freebsd/sys/dev/rge/ |
| H A D | if_rge.c | 2384 uint32_t crc, *hashes = arg; in rge_hash_maddr() local 2391 hashes[0] |= (1 << crc); in rge_hash_maddr() 2393 hashes[1] |= (1 << (crc - 32)); in rge_hash_maddr() 2406 uint32_t hashes[2]; in rge_iff_locked() local 2424 hashes[0] = hashes[1] = 0xffffffff; in rge_iff_locked() 2428 memset(hashes, 0, sizeof(hashes)); in rge_iff_locked() 2429 if_foreach_llmaddr(sc->sc_ifp, rge_hash_maddr, &hashes); in rge_iff_locked() 2433 RGE_WRITE_4(sc, RGE_MAR0, bswap32(hashes[1])); in rge_iff_locked() 2434 RGE_WRITE_4(sc, RGE_MAR4, bswap32(hashes[0])); in rge_iff_locked()
|