Searched refs:hash (Results 51 - 75 of 798) sorted by relevance

1234567891011>>

/freebsd-current/contrib/llvm-project/libcxx/modules/std/
H A Dsystem_error.inc36 // [syserr.hash], hash support
37 using std::hash;
H A Doptional.inc35 // [optional.hash], hash support
36 using std::hash;
H A Dvector.inc27 // hash support
28 using std::hash;
/freebsd-current/contrib/mtree/
H A Donly.c58 uint32_t hash; member in struct:hentry
70 uint32_t hash = 0; local
72 hash = hash * 33 + c; /* "perl": k=33, r=r+r/32 */
73 return hash + (hash >> 5);
83 if (e->hash == *h && strcmp(e->str, str) == 0)
100 e->hash = h;
/freebsd-current/sbin/hastd/
H A Dhast_checksum.c46 unsigned char *hash, size_t *hsizep)
54 bcopy(&crc, hash, sizeof(crc));
60 unsigned char *hash, size_t *hsizep)
66 SHA256_Final(hash, &ctx);
89 unsigned char hash[MAX_HASH_SIZE]; local
96 hast_crc32_checksum(*datap, *sizep, hash, &hsize);
99 hast_sha256_checksum(*datap, *sizep, hash, &hsize);
105 nv_add_uint8_array(nv, hash, hsize, "hash");
125 rhash = nv_get_uint8_array(nv, &rhsize, "hash");
45 hast_crc32_checksum(const unsigned char *data, size_t size, unsigned char *hash, size_t *hsizep) argument
59 hast_sha256_checksum(const unsigned char *data, size_t size, unsigned char *hash, size_t *hsizep) argument
[all...]
/freebsd-current/sys/kern/
H A Dvfs_hash.c38 static MALLOC_DEFINE(M_VFS_HASH, "vfs_hash", "VFS hash table");
50 rw_init(&vfs_hash_lock, "vfs hash");
65 vfs_hash_bucket(const struct mount *mp, u_int hash) argument
68 return (&vfs_hash_tbl[(hash + mp->mnt_hashseed) & vfs_hash_mask]);
72 vfs_hash_get(const struct mount *mp, u_int hash, int flags, struct thread *td, argument
81 LIST_FOREACH(vp, vfs_hash_bucket(mp, hash), v_hashlist) {
82 if (vp->v_hash != hash)
95 if (vp->v_hash != hash ||
113 vfs_hash_ref(const struct mount *mp, u_int hash, struct thread *td, argument
120 LIST_FOREACH(vp, vfs_hash_bucket(mp, hash), v_hashlis
152 vfs_hash_insert(struct vnode *vp, u_int hash, int flags, struct thread *td, struct vnode **vpp, vfs_hash_cmp_t *fn, void *arg) argument
194 vfs_hash_rehash(struct vnode *vp, u_int hash) argument
[all...]
/freebsd-current/sys/dev/drm2/ttm/
H A Dttm_object.c45 * ref_hash hash tables.
73 * @object_lock: lock that protects the object_hash hash table.
75 * @object_hash: hash table for fast lookup of object global names.
92 * @hash: Hash entry for the per-file object reference hash.
102 * This is similar to an idr object, but it also has a hash table entry
111 struct drm_hash_item hash; member in struct:ttm_ref_object
165 &base->hash,
180 (void)drm_ht_remove_item(&tdev->object_hash, &base->hash);
190 (void)drm_ht_remove_item(&tdev->object_hash, &base->hash);
228 struct drm_hash_item *hash; local
261 struct drm_hash_item *hash; local
344 struct drm_hash_item *hash; local
[all...]
/freebsd-current/crypto/openssl/crypto/lhash/
H A Dlhash.c62 ret->hash = ((h == NULL) ? (OPENSSL_LH_HASHFUNC)OPENSSL_LH_strhash : h);
109 unsigned long hash; local
117 rn = getrn(lh, data, &hash);
126 nn->hash = hash;
139 unsigned long hash; local
144 rn = getrn(lh, data, &hash);
165 unsigned long hash; local
171 rn = getrn(lh, data, &hash);
217 unsigned long hash; local
294 unsigned long hash, nn; local
[all...]
/freebsd-current/contrib/xz/src/liblzma/lz/
H A Dlz_encoder_mf.c82 /// Hash value to indicate unused element in the hash. Since we start the
93 /// \brief Normalizes hash values
95 /// The hash arrays store positions of match candidates. The positions are
100 /// the hash.
102 /// To prevent integer overflows of the offsets stored in the hash arrays,
119 // we can simply mark the hash element as empty.
120 if (mf->hash[i] <= subvalue)
121 mf->hash[i] = EMPTY_HASH_VALUE;
123 mf->hash[i] -= subvalue;
169 /// the missed bytes are added to the hash usin
[all...]
/freebsd-current/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dhash.h33 * Routines for manipulating hash tables
40 typedef struct hash hash_t;
/freebsd-current/contrib/netbsd-tests/usr.bin/nbperf/
H A Dhash_driver.c37 #include "hash.c"
49 printf("%" PRId32 "\n", hash(line, len));
/freebsd-current/sbin/dhclient/
H A Dtree.h59 struct hash_table *hash; member in struct:universe
/freebsd-current/sys/amd64/linux/
H A Dlinux_vdso.lds.s10 .hash : { *(.hash) } :text
11 .gnu.hash : { *(.gnu.hash) }
/freebsd-current/sys/amd64/linux32/
H A Dlinux32_vdso.lds.s11 .hash : { *(.hash) } :text
12 .gnu.hash : { *(.gnu.hash) }
/freebsd-current/sys/arm64/linux/
H A Dlinux_vdso.lds.s10 .hash : { *(.hash) } :text
11 .gnu.hash : { *(.gnu.hash) }
/freebsd-current/sys/opencrypto/
H A Dgmac.h41 struct gf128 hash; member in struct:aes_gmac_ctx
/freebsd-current/sys/i386/linux/
H A Dlinux_vdso.lds.s11 .hash : { *(.hash) } :text
12 .gnu.hash : { *(.gnu.hash) }
/freebsd-current/usr.sbin/certctl/
H A Dcertctl.sh81 local hash
83 if hash=$(openssl x509 -noout -subject_hash -in "$1") ; then
84 echo "$hash"
95 local checkdir hash decimal
98 hash=$2
101 while [ -e "$checkdir/$hash.$decimal" ] ; do
111 local hash certhash otherfile otherhash
115 hash=$(do_hash "$1") || return
117 for otherfile in $(find $UNTRUSTDESTDIR -name "$hash.*") ; do
120 info "Skipping untrusted certificate $hash (
[all...]
/freebsd-current/sys/contrib/openzfs/module/zfs/
H A Dlzjb.c57 int mlen, offset, hash; local
77 hash = (src[0] << 16) + (src[1] << 8) + src[2];
78 hash += hash >> 9;
79 hash += hash >> 5;
80 hp = &lempel[hash & (LEMPEL_SIZE - 1)];
/freebsd-current/sys/dev/drm2/
H A Ddrm_auth.c47 * Searches in drm_device::magiclist within all files with the same hash key
55 struct drm_hash_item *hash; local
59 if (!drm_ht_find_item(&master->magiclist, (unsigned long)magic, &hash)) {
60 pt = drm_hash_entry(hash, struct drm_magic_entry, hash_item);
75 * associated the magic number hash key in drm_device::magiclist, while holding
105 * number hash key, while holding the drm_device::struct_mutex lock.
110 struct drm_hash_item *hash; local
116 if (drm_ht_find_item(&master->magiclist, (unsigned long)magic, &hash)) {
120 pt = drm_hash_entry(hash, struct drm_magic_entry, hash_item);
121 drm_ht_remove_item(&master->magiclist, hash);
[all...]
/freebsd-current/sys/contrib/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/
H A Dbox_curve25519xsalsa20poly1305.c16 unsigned char hash[64]; local
18 crypto_hash_sha512(hash, seed, 32);
19 memcpy(sk, hash, 32);
20 sodium_memzero(hash, sizeof hash);
/freebsd-current/contrib/unbound/util/storage/
H A Dslabhash.c39 * Implementation of hash table that consists of smaller hash tables.
111 slab_idx(struct slabhash* sl, hashvalue_type hash) argument
113 return ((hash & sl->mask) >> sl->shift);
116 void slabhash_insert(struct slabhash* sl, hashvalue_type hash, argument
119 lruhash_insert(sl->array[slab_idx(sl, hash)], hash, entry, data, arg);
123 hashvalue_type hash, void* key, int wr)
125 return lruhash_lookup(sl->array[slab_idx(sl, hash)], hash, ke
122 slabhash_lookup(struct slabhash* sl, hashvalue_type hash, void* key, int wr) argument
128 slabhash_remove(struct slabhash* sl, hashvalue_type hash, void* key) argument
169 slabhash_update_space_used(struct slabhash* sl, hashvalue_type hash, void* cb_arg, int diff_size) argument
186 slabhash_gettable(struct slabhash* sl, hashvalue_type hash) argument
[all...]
/freebsd-current/contrib/wpa/hostapd/
H A Dsae_pk_gen.c28 u8 hash[SAE_MAX_HASH_LEN]; local
110 if (sae_hash(hash_len, data, data_len, hash) < 0) {
114 if (hash[0] == 0 && hash[1] == 0) {
115 if ((hash[2] & 0xf0) == 0)
119 if (hash[j])
129 wpa_snprintf_hex(hash_hex, sizeof(hash_hex), hash, hash_len) < 0)
131 fprintf(stderr, "\nFound a valid hash in %llu iterations: %s\n",
150 val20 = sae_pk_get_be19(hash + sec);
152 sae_pk_buf_shift_left_19(hash
[all...]
/freebsd-current/contrib/unbound/util/
H A Dedns.c141 uint8_t* hash)
143 v4?siphash(in, 20, secret, hash, 8):siphash(in, 32, secret, hash, 8);
144 return hash;
151 uint8_t hash[8]; local
157 (void)edns_cookie_server_hash(buf, secret, v4, hash);
158 memcpy(buf + 16, hash, 8);
166 uint8_t hash[8]; local
185 if(memcmp(edns_cookie_server_hash(hash_input, secret, v4, hash),
140 edns_cookie_server_hash(const uint8_t* in, const uint8_t* secret, int v4, uint8_t* hash) argument
/freebsd-current/contrib/lib9p/
H A Dhashtable.c74 ht_find(struct ht *h, uint32_t hash) argument
79 result = ht_find_locked(h, hash);
85 ht_find_locked(struct ht *h, uint32_t hash) argument
90 entry = &h->ht_entries[hash % h->ht_nentries];
93 if (item->hti_hash == hash)
101 ht_add(struct ht *h, uint32_t hash, void *value) argument
107 entry = &h->ht_entries[hash % h->ht_nentries];
110 if (item->hti_hash == hash) {
118 item->hti_hash = hash;
127 ht_remove(struct ht *h, uint32_t hash) argument
138 ht_remove_locked(struct ht *h, uint32_t hash) argument
[all...]

Completed in 281 milliseconds

1234567891011>>