Home
last modified time | relevance | path

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

123456789

/netbsd-src/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()
/netbsd-src/lib/libc/cdb/
H A Dcdbw.c131 uint32_t hashes[3]; member
247 uint32_t hashes[3]; in cdbw_put_key() local
256 mi_vector_hash(key, keylen, 0, hashes); in cdbw_put_key()
258 head = cdbw->hash + (hashes[0] & (cdbw->hash_size - 1)); in cdbw_put_key()
262 if (key_hash->hashes[0] != hashes[0]) in cdbw_put_key()
264 if (key_hash->hashes[1] != hashes[1]) in cdbw_put_key()
266 if (key_hash->hashes[2] != hashes[2]) in cdbw_put_key()
281 key_hash->hashes[0] = hashes[0]; in cdbw_put_key()
282 key_hash->hashes[1] = hashes[1]; in cdbw_put_key()
283 key_hash->hashes[2] = hashes[2]; in cdbw_put_key()
[all …]
/netbsd-src/common/lib/libc/cdb/
H A Dcdbr.c279 uint32_t hashes[3], idx; in cdbr_find() local
286 mi_vector_hash(key, key_len, cdbr->seed, hashes); in cdbr_find()
288 hashes[0] = fast_remainder32(hashes[0], cdbr->entries_index, in cdbr_find()
291 hashes[1] = fast_remainder32(hashes[1], cdbr->entries_index, in cdbr_find()
294 hashes[2] = fast_remainder32(hashes[2], cdbr->entries_index, in cdbr_find()
298 idx = get_uintX(cdbr->hash_base, hashes[0], cdbr->index_size); in cdbr_find()
299 idx += get_uintX(cdbr->hash_base, hashes[1], cdbr->index_size); in cdbr_find()
300 idx += get_uintX(cdbr->hash_base, hashes[2], cdbr->index_size); in cdbr_find()
/netbsd-src/crypto/external/bsd/openssl/dist/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 …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/x509/
H A Dby_dir.c33 STACK_OF(BY_DIR_HASH) *hashes;
139 sk_BY_DIR_HASH_pop_free(ent->hashes, by_dir_hash_free); in by_dir_entry_free()
195 ent->hashes = sk_BY_DIR_HASH_new(by_dir_hash_cmp); in add_cert_dir()
197 if (ent->dir == NULL || ent->hashes == NULL) { in add_cert_dir()
262 if (type == X509_LU_CRL && ent->hashes) { in get_cert_by_subject()
265 idx = sk_BY_DIR_HASH_find(ent->hashes, &htmp); in get_cert_by_subject()
267 hent = sk_BY_DIR_HASH_value(ent->hashes, idx); in get_cert_by_subject()
349 idx = sk_BY_DIR_HASH_find(ent->hashes, &htmp); in get_cert_by_subject()
350 hent = sk_BY_DIR_HASH_value(ent->hashes, idx); in get_cert_by_subject()
362 if (!sk_BY_DIR_HASH_push(ent->hashes, hent)) { in get_cert_by_subject()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dtree-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()
410 cache->hashes.create (165); in streamer_tree_cache_create()
432 c->hashes.release (); in streamer_tree_cache_delete()
H A Dtree-streamer.h54 vec<hashval_t> hashes; member
106 return cache->hashes[ix]; in streamer_tree_cache_get_hash()
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dtree-streamer.cc117 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()
411 cache->hashes.create (165); in streamer_tree_cache_create()
433 c->hashes.release (); in streamer_tree_cache_delete()
H A Dtree-streamer.h54 vec<hashval_t> hashes; member
104 return cache->hashes[ix]; in streamer_tree_cache_get_hash()
/netbsd-src/common/lib/libc/stdlib/
H A Dmi_vector_hash.c85 uint32_t hashes[3]) in __weak_alias()
179 hashes[0] = a; in __weak_alias()
180 hashes[1] = b; in __weak_alias()
181 hashes[2] = c; in __weak_alias()
/netbsd-src/usr.bin/cksum/
H A Dcksum.c120 } hashes[] = { variable
177 for (hash = hashes; hash->hashname != NULL; hash++) in main()
201 while (hashes[i].hashname != NULL) { in main()
202 if (!strcasecmp(hashes[i].hashname, optarg)) { in main()
203 hash = &hashes[i]; in main()
347 for (nhash = hashes ; in main()
/netbsd-src/usr.sbin/syslogd/
H A Dsign.c321 STAILQ_INIT(&(x)->hashes); \ in sign_sg_init()
467 if (!STAILQ_EMPTY(&sg->hashes)) { in sign_global_free()
523 && STAILQ_EMPTY(&sg->hashes))) in sign_send_certificate_block()
643 STAILQ_FOREACH(qentry, &sg->hashes, entries) in sign_send_signature_block()
667 qentry = STAILQ_FIRST(&sg->hashes); in sign_send_signature_block()
705 qentry = STAILQ_FIRST(&sg->hashes); in sign_send_signature_block()
709 STAILQ_REMOVE(&sg->hashes, old_qentry, in sign_send_signature_block()
722 sign_free_string_queue(&sg->hashes); in sign_free_hashes()
773 if ((qentry = STAILQ_LAST(&sg->hashes, string_queue, entries)) in sign_append_hash()
783 STAILQ_INSERT_TAIL(&sg->hashes, qentry, entries); in sign_append_hash()
/netbsd-src/sys/dev/usb/
H A Dif_udav.c565 uint8_t hashes[8]; in udav_uno_mcast() local
588 memset(hashes, 0x00, sizeof(hashes)); in udav_uno_mcast()
589 hashes[7] |= 0x80; /* broadcast address */ in udav_uno_mcast()
590 udav_csr_write(un, UDAV_MAR, hashes, sizeof(hashes)); in udav_uno_mcast()
606 hashes[h>>3] |= 1 << (h & 0x7); in udav_uno_mcast()
616 udav_csr_write(un, UDAV_MAR, hashes, sizeof(hashes)); in udav_uno_mcast()
/netbsd-src/crypto/external/bsd/netpgp/dist/src/lib/
H A Dpacket-parse.c1425 for (n = 0, hp = stream->hashes; n < stream->hashc; n++, hp++) { in parse_hash_find()
2184 hash = realloc(stream->hashes, in parse_hash_init()
2185 (stream->hashc + 1) * sizeof(*stream->hashes)); in parse_hash_init()
2191 stream->hashes = hash; in parse_hash_init()
2193 hash = &stream->hashes[stream->hashc++]; in parse_hash_init()
2278 stream->hashes[n].hash.add(&stream->hashes[n].hash, data, (unsigned)length); in parse_hash_data()
2483 pgp_hash_t hashes[(PGP_MAX_KEY_SIZE + PGP_MIN_HASH_SIZE - 1) / PGP_MIN_HASH_SIZE]; in parse_seckey() local
2543 pgp_hash_any(&hashes[n], in parse_seckey()
2545 if (!hashes[n].init(&hashes[n])) { in parse_seckey()
2552 hashes[n].add(&hashes[n], in parse_seckey()
[all …]
/netbsd-src/external/bsd/openldap/dist/servers/slapd/
H A Dpasswd.c64 char **hashes, idNul; in passwd_extop() local
267 hashes = default_passwd_hash; in passwd_extop()
270 hashes = (char **)defhash; in passwd_extop()
274 for ( i=0; hashes[i]; i++ ) { in passwd_extop()
275 slap_passwd_hash_type( &qpw->rs_new, &hash, hashes[i], &rs->sr_text ); in passwd_extop()
293 if ( hashes[i] ) { in passwd_extop()
/netbsd-src/sys/arch/arm/ep93xx/
H A Depe.c701 uint32_t h, nma = 0, hashes[2] = { 0, 0 }; in epe_setaddr() local
728 hashes[0] = 0xffffffffUL; in epe_setaddr()
729 hashes[1] = 0xffffffffUL; in epe_setaddr()
748 hashes[ h / 32 ] |= (1 << (h % 32)); in epe_setaddr()
769 if (hashes[0] != 0 && hashes[1] != 0) { in epe_setaddr()
771 EPE_WRITE(HashTbl, hashes[0]); in epe_setaddr()
772 EPE_WRITE(HashTbl + 4, hashes[1]); in epe_setaddr()
/netbsd-src/external/bsd/openldap/dist/servers/slapd/pwmods/
H A DREADME.argon256 # This hashes the string 'secret', with a random salt
65 -- Test hashes:
67 Test hashes can be generated with argon2:
/netbsd-src/usr.bin/nbperf/
H A Dgraph2.c179 uint32_t hashes[NBPERF_MAX_HASH_SIZE]; in SIZED2() local
196 nbperf->keys[i], nbperf->keylens[i], hashes); in SIZED2()
199 e->vertices[j] = hashes[j] % graph->v; in SIZED2()
H A Dnbperf.c81 uint32_t *hashes) in mi_vector_hash_compute() argument
83 mi_vector_hash(key, keylen, nbperf->seed[0], hashes); in mi_vector_hash_compute()
/netbsd-src/sys/dev/cadence/
H A Dif_cemac.c1097 uint32_t h, nma = 0, hashes[2] = { 0, 0 };
1131 hashes[0] = 0xffffffffUL;
1132 hashes[1] = 0xffffffffUL;
1151 hashes[h / 32] |= (1 << (h % 32));
1153 hashes[0] = 0xffffffffUL;
1154 hashes[1] = 0xffffffffUL;
1205 CEMAC_GEM_WRITE(HSH, hashes[0]);
1206 CEMAC_GEM_WRITE(HSL, hashes[1]);
976 uint32_t h, nma = 0, hashes[2] = { 0, 0 }; cemac_setaddr() local
/netbsd-src/sys/arch/arm/at91/
H A Dat91emac.c766 uint32_t h, nma = 0, hashes[2] = { 0, 0 }; in emac_setaddr() local
798 hashes[0] = 0xffffffffUL; in emac_setaddr()
799 hashes[1] = 0xffffffffUL; in emac_setaddr()
818 hashes[ h / 32 ] |= (1 << (h % 32)); in emac_setaddr()
868 EMAC_WRITE(ETH_HSH, hashes[0]); in emac_setaddr()
869 EMAC_WRITE(ETH_HSL, hashes[1]); in emac_setaddr()
/netbsd-src/sys/dev/ic/
H A Drtl81x9.c528 uint32_t hashes[2] = { 0, 0 }; in rtk_setmulti() local
563 hashes[0] |= __BIT(h); in rtk_setmulti()
565 hashes[1] |= __BIT(h - 32); in rtk_setmulti()
587 CSR_WRITE_4(sc, RTK_MAR0, bswap32(hashes[1])); in rtk_setmulti()
588 CSR_WRITE_4(sc, RTK_MAR4, bswap32(hashes[0])); in rtk_setmulti()
590 CSR_WRITE_4(sc, RTK_MAR0, hashes[0]); in rtk_setmulti()
591 CSR_WRITE_4(sc, RTK_MAR4, hashes[1]); in rtk_setmulti()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/ntlm/
H A DChangeLog3 * ntlm.c: replace hashes with keys.
100 * ntlm.c: sent lm hashes, needed for NTLM2 session
/netbsd-src/crypto/dist/ipsec-tools/src/racoon/rfc/
H A Ddraft-ietf-ipsec-nat-t-ike-00.txt135 hashes of IP address and port of both source and destination addresses
136 from each end to another. When both ends calculate those hashes and get
137 same result they know there is no NAT between. If the hashes do not
143 route the packet out), he can include multiple local hashes to the
145 and only if none of the hashes match.
147 The hashes are sent as a series of NAT-D (NAT discovery) payloads. Each
148 payload contains one hash, so in case of multiple hashes, multiple NAT-D
/netbsd-src/lib/libc/
H A Dshlib_version10 # - Crypto hashes have name overlap with libcrypto, rename them
11 # - obsolete crypto hashes should be booted out of libc

123456789