Home
last modified time | relevance | path

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

1234

/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/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()
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()
213 bucket = hashes[0] & ((ZU(1) << ckh->lg_curbuckets) - 1); 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()
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()
1573 CPA_BITMAP_BIT_SET(pCapInfo->hashes, CPA_CY_SYM_HASH_MD5); in cpaCySymQueryCapabilities()
1575 CPA_BITMAP_BIT_SET(pCapInfo->hashes, in cpaCySymQueryCapabilities()
1588 CPA_BITMAP_BIT_SET(pCapInfo->hashes, CPA_CY_SYM_HASH_POLY); 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.c474 uint32_t *hashes = arg; in rue_hash_maddr() local
479 hashes[0] |= (1 << h); in rue_hash_maddr()
481 hashes[1] |= (1 << (h - 32)); in rue_hash_maddr()
495 uint32_t hashes[2] = { 0, 0 }; in rue_setmulti() local
516 mcnt = if_foreach_llmaddr(ifp, rue_hash_maddr, &hashes); in rue_setmulti()
526 rue_csr_write_4(sc, RUE_MAR0, hashes[0]); in rue_setmulti()
527 rue_csr_write_4(sc, RUE_MAR4, hashes[1]); in rue_setmulti()
H A Dif_ure.c1175 uint32_t h, *hashes = arg; in ure_hash_maddr() local
1179 hashes[0] |= (1 << h); in ure_hash_maddr()
1181 hashes[1] |= (1 << (h - 32)); in ure_hash_maddr()
1194 uint32_t h, hashes[2] = { 0, 0 }; in ure_rxfilter() local
1206 hashes[0] = hashes[1] = 0xffffffff; in ure_rxfilter()
1211 if_foreach_llmaddr(ifp, ure_hash_maddr, &hashes); in ure_rxfilter()
1213 h = bswap32(hashes[0]); in ure_rxfilter()
1214 hashes[0] = bswap32(hashes[1]); in ure_rxfilter()
1215 hashes[1] = h; in ure_rxfilter()
1221 ure_write_4(sc, URE_PLA_MAR0, URE_MCU_TYPE_PLA, hashes[0]); in ure_rxfilter()
[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/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/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/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/sk/
H A Dif_sk.c680 uint32_t hashes[2]; member
701 ctx->hashes[0] |= (1 << h); in sk_add_maddr_genesis()
703 ctx->hashes[1] |= (1 << (h - 32)); in sk_add_maddr_genesis()
732 ctx.hashes[0] = 0xFFFFFFFF; in sk_rxfilter_genesis()
733 ctx.hashes[1] = 0xFFFFFFFF; in sk_rxfilter_genesis()
746 uint32_t crc, *hashes = arg; in sk_hash_maddr_yukon() local
752 hashes[crc >> 5] |= 1 << (crc & 0x1f); in sk_hash_maddr_yukon()
761 uint32_t hashes[2] = { 0, 0 }, mode; in sk_rxfilter_yukon() local
771 hashes[0] = 0xFFFFFFFF; in sk_rxfilter_yukon()
772 hashes[1] = 0xFFFFFFFF; in sk_rxfilter_yukon()
[all …]
/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/
H A D.git-blame-ignore-revs1 # List of hashes of non-functional changes to be ignored by git-blame.
/freebsd/sys/contrib/device-tree/Bindings/crypto/
H A Dimg-hash.txt4 SHA1, SHA224, SHA256 and MD5 hashes
/freebsd/sys/dev/otus/
H A Dif_otus.c2364 uint32_t val, *hashes = arg; in otus_hash_maddr() local
2374 hashes[0] |= 1 << val; in otus_hash_maddr()
2376 hashes[1] |= 1 << (val - 32); in otus_hash_maddr()
2385 uint32_t hashes[2]; in otus_set_multi() local
2390 hashes[0] = 0xffffffff; in otus_set_multi()
2391 hashes[1] = 0xffffffff; in otus_set_multi()
2395 hashes[0] = hashes[1] = 0; in otus_set_multi()
2398 hashes); in otus_set_multi()
2405 hashes[0] |= 1 << bit; in otus_set_multi()
2407 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()
607 if (hashes[0] != 0 || hashes[1] != 0) in vge_rxfilter()
609 CSR_WRITE_4(sc, VGE_MAR0, hashes[0]); in vge_rxfilter()
[all …]
/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()
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()
720 hashes[0] = 0xffffffff; in re_set_rxmode()
[all …]
/freebsd/contrib/pam_modules/pam_passwdqc/
H A DPLATFORMS28 not-so-weak passwords with the obsolete "traditional" crypt(3) hashes

1234