Home
last modified time | relevance | path

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

12345

/freebsd/contrib/netbsd-tests/lib/libc/stdlib/
H A Dt_mi_vector_hash.c50 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/crypto/libecc/scripts/
H A Dtest_ec_utils.sh28 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 Dby_dir.c42 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()
375 idx = sk_BY_DIR_HASH_find(ent->hashes, &htmp); in get_cert_by_subject_ex()
376 hent = sk_BY_DIR_HASH_value(ent->hashes, idx); in get_cert_by_subject_ex()
387 if (!sk_BY_DIR_HASH_push(ent->hashes, hent)) { in get_cert_by_subject_ex()
[all …]
/freebsd/contrib/jemalloc/src/
H A Dckh.c19 * 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 Dsal_crypto.c1371 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/bearssl/src/x509/
H A Dx509_minimal_full.c37 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 Dssl_server_full_rsa.c73 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 Dssl_server_full_ec.c84 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 Dssl_client_full.c105 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 Dif_emac.c219 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 Dif_rue.c473 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 Dif_ure.c1188 uint32_t h, *hashes = arg; in ure_hash_maddr()
1192 hashes[0] |= (1 << h); in ure_hash_maddr()
1194 hashes[1] |= (1 << (h - 32));
1207 uint32_t h, hashes[2] = { 0, 0 }; in ure_rxfilter()
1219 hashes[0] = hashes[1] = 0xffffffff; in ure_rxfilter()
1224 if_foreach_llmaddr(ifp, ure_hash_maddr, &hashes); in ure_rxfilter()
1226 h = bswap32(hashes[0]); in ure_rxfilter()
1227 hashes[0] = bswap32(hashes[ in ure_rxfilter()
1184 uint32_t h, *hashes = arg; ure_hash_maddr() local
1203 uint32_t h, hashes[2] = { 0, 0 }; ure_rxfilter() local
[all...]
/freebsd/contrib/tcsh/
H A Dsh.hist.c437 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 Dhash.h312 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 Dif_rl.c511 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 Dif_sk.c682 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 DChangeLog3 * ntlm.c: replace hashes with keys.
100 * ntlm.c: sent lm hashes, needed for NTLM2 session
/freebsd/sys/dev/cadence/
H A Dif_cgem.c319 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/crypto/libecc/
H A Dmeson.options81 # All the hashes options
105 value: [], description: 'enable a set of hashes when override is set')
/freebsd/sys/dev/lge/
H A Dif_lge.c356 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 Dif_sge.c444 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/sys/contrib/device-tree/Bindings/crypto/
H A Dimg-hash.txt4 SHA1, SHA224, SHA256 and MD5 hashes
/freebsd/sys/dev/rge/
H A Dif_rge.c2398 uint32_t crc, *hashes = arg; in rge_hash_maddr() local
2405 hashes[0] |= (1 << crc); in rge_hash_maddr()
2407 hashes[1] |= (1 << (crc - 32)); in rge_hash_maddr()
2420 uint32_t hashes[2]; in rge_iff_locked() local
2438 hashes[0] = hashes[1] = 0xffffffff; in rge_iff_locked()
2442 memset(hashes, 0, sizeof(hashes)); in rge_iff_locked()
2443 if_foreach_llmaddr(sc->sc_ifp, rge_hash_maddr, &hashes); in rge_iff_locked()
2447 RGE_WRITE_4(sc, RGE_MAR0, bswap32(hashes[1])); in rge_iff_locked()
2448 RGE_WRITE_4(sc, RGE_MAR4, bswap32(hashes[0])); in rge_iff_locked()
/freebsd/sys/dev/vge/
H A Dif_vge.c544 uint32_t h, *hashes = arg; in vge_hash_maddr() local
548 hashes[0] |= (1 << h); in vge_hash_maddr()
550 hashes[1] |= (1 << (h - 32)); in vge_hash_maddr()
564 uint32_t hashes[2]; in vge_rxfilter() local
570 hashes[0] = 0; in vge_rxfilter()
571 hashes[1] = 0; in vge_rxfilter()
589 hashes[0] = 0xFFFFFFFF; in vge_rxfilter()
590 hashes[1] = 0xFFFFFFFF; in vge_rxfilter()
603 if_foreach_llmaddr(ifp, vge_hash_maddr, hashes); in vge_rxfilter()
607 if (hashes[0] != 0 || hashes[1] != 0) in vge_rxfilter()
[all …]
/freebsd/sys/dev/re/
H A Dif_re.c658 uint32_t h, *hashes = arg; in re_hash_maddr() local
662 hashes[0] |= (1 << h); in re_hash_maddr()
664 hashes[1] |= (1 << (h - 32)); in re_hash_maddr()
676 uint32_t h, hashes[2] = { 0, 0 }; in re_set_rxmode() local
698 hashes[0] = hashes[1] = 0xffffffff; in re_set_rxmode()
702 if_foreach_llmaddr(ifp, re_hash_maddr, hashes); in re_set_rxmode()
704 if (hashes[0] != 0 || hashes[1] != 0) { in re_set_rxmode()
713 h = bswap32(hashes[0]); in re_set_rxmode()
714 hashes[0] = bswap32(hashes[1]); in re_set_rxmode()
715 hashes[1] = h; in re_set_rxmode()
[all …]

12345