Home
last modified time | relevance | path

Searched refs:hashes (Results 1 – 25 of 102) 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;
154 sk_BY_DIR_HASH_pop_free(ent->hashes, by_dir_hash_free); in by_dir_entry_free()
210 ent->hashes = sk_BY_DIR_HASH_new(by_dir_hash_cmp); in add_cert_dir()
212 if (ent->dir == NULL || ent->hashes == NULL) { in add_cert_dir()
278 if (type == X509_LU_CRL && ent->hashes) { in get_cert_by_subject_ex()
282 idx = sk_BY_DIR_HASH_find(ent->hashes, &htmp); in get_cert_by_subject_ex()
284 hent = sk_BY_DIR_HASH_value(ent->hashes, idx); in get_cert_by_subject_ex()
372 idx = sk_BY_DIR_HASH_find(ent->hashes, &htmp); in get_cert_by_subject_ex()
373 hent = sk_BY_DIR_HASH_value(ent->hashes, idx); in get_cert_by_subject_ex()
385 if (!sk_BY_DIR_HASH_push(ent->hashes, hent)) { in get_cert_by_subject_ex()
[all …]
/freebsd/contrib/jemalloc/src/
H A Dckh.c82 size_t hashes[2], bucket, cell; in ckh_isearch() local
86 ckh->hash(key, hashes); in ckh_isearch()
89 bucket = hashes[0] & ((ZU(1) << ckh->lg_curbuckets) - 1); in ckh_isearch()
96 bucket = hashes[1] & ((ZU(1) << ckh->lg_curbuckets) - 1); in ckh_isearch()
138 size_t hashes[2], bucket, tbucket; in ckh_evict_reloc_insert() local
168 ckh->hash(key, hashes); in ckh_evict_reloc_insert()
169 tbucket = hashes[1] & ((ZU(1) << ckh->lg_curbuckets) - 1); in ckh_evict_reloc_insert()
171 tbucket = hashes[0] & ((ZU(1) << ckh->lg_curbuckets) in ckh_evict_reloc_insert()
206 size_t hashes[2], bucket; in ckh_try_insert() local
210 ckh->hash(key, hashes); in ckh_try_insert()
[all …]
/freebsd/sys/dev/qat/qat_api/common/ctrl/
H A Dsal_crypto.c1561 CPA_BITMAP_BIT_SET(pCapInfo->hashes, CPA_CY_SYM_HASH_SHA1); in cpaCySymQueryCapabilities()
1562 CPA_BITMAP_BIT_SET(pCapInfo->hashes, CPA_CY_SYM_HASH_SHA224); in cpaCySymQueryCapabilities()
1563 CPA_BITMAP_BIT_SET(pCapInfo->hashes, CPA_CY_SYM_HASH_SHA256); in cpaCySymQueryCapabilities()
1564 CPA_BITMAP_BIT_SET(pCapInfo->hashes, CPA_CY_SYM_HASH_SHA384); in cpaCySymQueryCapabilities()
1565 CPA_BITMAP_BIT_SET(pCapInfo->hashes, CPA_CY_SYM_HASH_SHA512); in cpaCySymQueryCapabilities()
1566 CPA_BITMAP_BIT_SET(pCapInfo->hashes, CPA_CY_SYM_HASH_AES_XCBC); in cpaCySymQueryCapabilities()
1567 CPA_BITMAP_BIT_SET(pCapInfo->hashes, CPA_CY_SYM_HASH_AES_CCM); in cpaCySymQueryCapabilities()
1568 CPA_BITMAP_BIT_SET(pCapInfo->hashes, CPA_CY_SYM_HASH_AES_GCM); in cpaCySymQueryCapabilities()
1569 CPA_BITMAP_BIT_SET(pCapInfo->hashes, CPA_CY_SYM_HASH_AES_CMAC); in cpaCySymQueryCapabilities()
1570 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.c1177 uint32_t h, *hashes = arg; in ure_hash_maddr() local
1181 hashes[0] |= (1 << h); in ure_hash_maddr()
1183 hashes[1] |= (1 << (h - 32)); in ure_hash_maddr()
1196 uint32_t h, hashes[2] = { 0, 0 }; in ure_rxfilter() local
1208 hashes[0] = hashes[1] = 0xffffffff; in ure_rxfilter()
1213 if_foreach_llmaddr(ifp, ure_hash_maddr, &hashes); in ure_rxfilter()
1215 h = bswap32(hashes[0]); in ure_rxfilter()
1216 hashes[0] = bswap32(hashes[1]); in ure_rxfilter()
1217 hashes[1] = h; in ure_rxfilter()
1223 ure_write_4(sc, URE_PLA_MAR0, URE_MCU_TYPE_PLA, hashes[0]); in ure_rxfilter()
[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.h311 uint64_t hashes[2]; in hash() local
312 hash_x86_128(key, (int)len, seed, hashes); in hash()
313 r_hash[0] = (size_t)hashes[0]; in hash()
314 r_hash[1] = (size_t)hashes[1]; in hash()
/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/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/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/otus/
H A Dif_otus.c2366 uint32_t val, *hashes = arg; in otus_hash_maddr() local
2376 hashes[0] |= 1 << val; in otus_hash_maddr()
2378 hashes[1] |= 1 << (val - 32); in otus_hash_maddr()
2387 uint32_t hashes[2]; in otus_set_multi() local
2392 hashes[0] = 0xffffffff; in otus_set_multi()
2393 hashes[1] = 0xffffffff; in otus_set_multi()
2397 hashes[0] = hashes[1] = 0; in otus_set_multi()
2400 hashes); in otus_set_multi()
2407 hashes[0] |= 1 << bit; in otus_set_multi()
2409 hashes[1] |= 1 << (bit - 32); in otus_set_multi()
[all …]
/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/contrib/device-tree/Bindings/crypto/
H A Dimg-hash.txt4 SHA1, SHA224, SHA256 and MD5 hashes
/freebsd/sys/dev/re/
H A Dif_re.c656 uint32_t h, *hashes = arg; in re_hash_maddr() local
660 hashes[0] |= (1 << h); in re_hash_maddr()
662 hashes[1] |= (1 << (h - 32)); in re_hash_maddr()
674 uint32_t h, hashes[2] = { 0, 0 }; in re_set_rxmode() local
696 hashes[0] = hashes[1] = 0xffffffff; in re_set_rxmode()
700 if_foreach_llmaddr(ifp, re_hash_maddr, hashes); in re_set_rxmode()
702 if (hashes[0] != 0 || hashes[1] != 0) { in re_set_rxmode()
711 h = bswap32(hashes[0]); in re_set_rxmode()
712 hashes[0] = bswap32(hashes[1]); in re_set_rxmode()
713 hashes[1] = h; in re_set_rxmode()
[all …]

12345