Searched refs:hash (Results 26 - 50 of 781) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/gperf/lib/
H A Dhash.cc6 #include <hash.h>
9 Some useful hash function.
10 It's not a particularly good hash function (<< 5 would be better than << 4),
/freebsd-11-stable/contrib/groff/src/include/
H A Dindex.h42 unsigned hash(const char *s, int len);
/freebsd-11-stable/sys/dev/drm/
H A Ddrm_auth.c52 int hash = drm_hash_magic(magic); local
56 for (pt = dev->magiclist[hash].head; pt; pt = pt->next) {
66 * Inserts the given magic number into the hash table of used magic number
72 int hash; local
79 hash = drm_hash_magic(magic);
87 if (dev->magiclist[hash].tail) {
88 dev->magiclist[hash].tail->next = entry;
89 dev->magiclist[hash].tail = entry;
91 dev->magiclist[hash].head = entry;
92 dev->magiclist[hash]
106 int hash; local
[all...]
/freebsd-11-stable/contrib/subversion/subversion/libsvn_diff/
H A Dtoken.c37 * Prime number to use as the size of the hash table. This number was
48 apr_uint32_t hash; member in struct:svn_diff__node_t
87 apr_uint32_t hash, void *token)
97 node_ref = &tree->root[hash % SVN_DIFF__HASH_SIZE];
103 rv = hash - parent->hash;
135 new_node->hash = hash;
164 apr_uint32_t hash; local
170 hash
84 tree_insert_token(svn_diff__node_t **node, svn_diff__tree_t *tree, void *diff_baton, const svn_diff_fns2_t *vtable, apr_uint32_t hash, void *token) argument
[all...]
/freebsd-11-stable/contrib/subversion/subversion/include/
H A Dsvn_hash.h24 * @brief Dumping and reading hash tables to/from files.
64 * The conventional terminator for hash dumps.
71 * Read a hash table from @a stream, storing the resultants names and
72 * values in @a hash. Use a @a pool for all allocations. @a hash will
74 * If @a terminator is NULL, expect the hash to be terminated by the
75 * end of the stream; otherwise, expect the hash to be terminated by a
82 svn_hash_read2(apr_hash_t *hash,
88 * Dump @a hash to @a stream. Use @a pool for all allocations. @a
89 * hash ha
[all...]
/freebsd-11-stable/contrib/wpa/src/crypto/
H A Dsha1-tprf.c34 u8 hash[SHA1_MAC_LEN]; local
40 addr[0] = hash;
57 if (hmac_sha1_vector(key, key_len, 5, addr, len, hash))
60 os_memcpy(&buf[pos], hash, SHA1_MAC_LEN);
63 os_memcpy(&buf[pos], hash, plen);
69 forced_memzero(hash, SHA1_MAC_LEN);
H A Dsha256-prf.c60 u8 hash[SHA256_MAC_LEN]; local
87 hash) < 0)
89 os_memcpy(&buf[pos], hash, plen);
105 forced_memzero(hash, sizeof(hash));
H A Dsha512-prf.c60 u8 hash[SHA512_MAC_LEN]; local
87 hash) < 0)
89 os_memcpy(&buf[pos], hash, plen);
105 forced_memzero(hash, sizeof(hash));
H A Dsha384-prf.c60 u8 hash[SHA384_MAC_LEN]; local
87 hash) < 0)
89 os_memcpy(&buf[pos], hash, plen);
105 forced_memzero(hash, sizeof(hash));
/freebsd-11-stable/contrib/libstdc++/include/tr1/
H A Dfunctional_hash.h45 // Definition of default hash function std::tr1::hash<>. The types for
46 // which std::tr1::hash<T> is defined is in clause 6.3.3. of the PDTR.
48 struct hash;
52 struct hash<_Tp> \
77 struct hash<_Tp*> struct in namespace:std
86 // (used by the next specializations of std::tr1::hash<>)
93 hash(const char* __first, std::size_t __length) function in struct:std::_Fnv_hash
106 hash(const char* __first, std::size_t __length) function in struct:std::_Fnv_hash
122 hash(cons function in struct:std::_Fnv_hash
139 struct hash<std::string> struct in namespace:std
149 struct hash<std::wstring> struct in namespace:std
162 struct hash<float> struct in namespace:std
179 struct hash<double> struct in namespace:std
198 struct hash<long double> struct in namespace:std
[all...]
/freebsd-11-stable/contrib/subversion/subversion/libsvn_subr/
H A Dhash.c2 * hash.c : dumping and reading hash tables to/from files.
57 * The format of a dumped hash table is:
96 /*** Dumping and loading hash files. */
117 /* Check for the end of the hash. */
132 _("Serialized hash missing terminator"));
141 _("Serialized hash malformed key length"));
154 _("Serialized hash malformed key data"));
166 _("Serialized hash malformed value length"));
178 _("Serialized hash malforme
218 hash_read(apr_hash_t *hash, svn_stream_t *stream, const char *terminator, svn_boolean_t incremental, apr_pool_t *pool) argument
256 hash_write(apr_hash_t *hash, apr_hash_t *oldhash, svn_stream_t *stream, const char *terminator, apr_pool_t *pool) argument
326 svn_hash_read2(apr_hash_t *hash, svn_stream_t *stream, const char *terminator, apr_pool_t *pool) argument
333 svn_hash_read_incremental(apr_hash_t *hash, svn_stream_t *stream, const char *terminator, apr_pool_t *pool) argument
343 svn_hash_write2(apr_hash_t *hash, svn_stream_t *stream, const char *terminator, apr_pool_t *pool) argument
351 svn_hash_write_incremental(apr_hash_t *hash, apr_hash_t *oldhash, svn_stream_t *stream, const char *terminator, apr_pool_t *pool) argument
361 svn_hash_write(apr_hash_t *hash, apr_file_t *destfile, apr_pool_t *pool) argument
371 svn_hash_read(apr_hash_t *hash, apr_file_t *srcfile, apr_pool_t *pool) argument
531 svn_hash_keys(apr_array_header_t **array, apr_hash_t *hash, apr_pool_t *pool) argument
554 apr_hash_t *hash = svn_hash__make(pool); local
584 svn_hash__get_cstring(apr_hash_t *hash, const char *key, const char *default_value) argument
599 svn_hash__get_bool(apr_hash_t *hash, const char *key, svn_boolean_t default_value) argument
631 unsigned int hash = 0; local
[all...]
/freebsd-11-stable/sys/fs/ext2fs/
H A Dext2_hash.c105 ext2_half_md4(uint32_t hash[4], uint32_t data[8]) argument
107 uint32_t a = hash[0], b = hash[1], c = hash[2], d = hash[3];
139 hash[0] += a;
140 hash[1] += b;
141 hash[2] += c;
142 hash[3] += d;
149 ext2_tea(uint32_t hash[ argument
246 uint32_t hash[4]; local
[all...]
/freebsd-11-stable/contrib/wpa/src/eap_common/
H A Deap_peap_common.c21 u8 hash[SHA1_MAC_LEN]; local
27 addr[0] = hash;
72 if (hmac_sha1_vector(key, key_len, 5, addr, len, hash) < 0)
75 os_memcpy(&buf[pos], hash, SHA1_MAC_LEN);
78 os_memcpy(&buf[pos], hash, plen);
H A Deap_pwd_common.c31 void eap_pwd_h_update(struct crypto_hash *hash, const u8 *data, size_t len) argument
33 crypto_hash_update(hash, data, len);
37 void eap_pwd_h_final(struct crypto_hash *hash, u8 *digest) argument
40 crypto_hash_finish(hash, digest, &len);
48 struct crypto_hash *hash; local
59 hash = crypto_hash_init(CRYPTO_HASH_ALG_HMAC_SHA256,
61 if (hash == NULL)
64 crypto_hash_update(hash, digest, SHA256_MAC_LEN);
65 crypto_hash_update(hash, (u8 *) &i, sizeof(u16));
66 crypto_hash_update(hash, labe
131 struct crypto_hash *hash; local
310 struct crypto_hash *hash; local
[all...]
/freebsd-11-stable/contrib/binutils/opcodes/
H A Dcgen-dis.c54 /* Add an instruction to the hash chain. */
59 unsigned int hash)
70 for (current_buf = htable[hash]; current_buf != NULL;
83 htable[hash] = hentbuf;
88 /* Subroutine of build_dis_hash_table to add INSNS to the hash table.
93 HTABLE points to the hash table.
94 HENTBUF is a pointer to sufficiently large buffer of hash entries.
113 unsigned int hash; local
122 to hash on, so set both up. */
129 hash
56 add_insn_to_hash_chain(CGEN_INSN_LIST *hentbuf, const CGEN_INSN *insn, CGEN_INSN_LIST **htable, unsigned int hash) argument
151 unsigned int hash; local
233 unsigned int hash; local
[all...]
/freebsd-11-stable/sys/net/
H A Dtoeplitz.c41 uint32_t hash = 0, v; local
50 hash ^= v;
57 return (hash);
/freebsd-11-stable/contrib/libstdc++/include/ext/pb_ds/detail/gp_hash_table_map_/
H A Dresize_no_store_hash_fn_imps.hpp45 * hash value is not stored.
55 size_type hash = ranged_probe_fn_base::operator()(r_key); local
59 const size_type pos = ranged_probe_fn_base::operator()(r_key, hash, i);
/freebsd-11-stable/sbin/hastd/
H A Dhast_checksum.c55 unsigned char *hash, size_t *hsizep)
61 bcopy(&crc, hash, sizeof(crc));
68 unsigned char *hash, size_t *hsizep)
74 SHA256_Final(hash, &ctx);
98 unsigned char hash[MAX_HASH_SIZE]; local
105 hast_crc32_checksum(*datap, *sizep, hash, &hsize);
109 hast_sha256_checksum(*datap, *sizep, hash, &hsize);
116 nv_add_uint8_array(nv, hash, hsize, "hash");
136 rhash = nv_get_uint8_array(nv, &rhsize, "hash");
54 hast_crc32_checksum(const unsigned char *data, size_t size, unsigned char *hash, size_t *hsizep) argument
67 hast_sha256_checksum(const unsigned char *data, size_t size, unsigned char *hash, size_t *hsizep) argument
[all...]
/freebsd-11-stable/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-11-stable/crypto/openssl/crypto/lhash/
H A Dlhash.c60 * Code for dynamic hash table routines
145 ret->hash = ((h == NULL) ? (LHASH_HASH_FN_TYPE)lh_strhash : h);
198 unsigned long hash; local
207 rn = getrn(lh, data, &hash);
217 nn->hash = hash;
234 unsigned long hash; local
239 rn = getrn(lh, data, &hash);
262 unsigned long hash; local
267 rn = getrn(lh, data, &hash);
326 unsigned long hash; local
412 unsigned long hash, nn; local
[all...]
/freebsd-11-stable/crypto/openssl/engines/ccgost/
H A Dgostsum.c20 int get_line(FILE *f, char *hash, char *filename);
99 "%s: GOST hash sum check failed for '%s'\n",
107 "%s: %d of %d file(f) failed GOST hash sum check\n",
166 int get_line(FILE *f, char *hash, char *filename) argument
169 if (fread(hash, 1, 64, f) < 64)
171 hash[64] = 0;
173 if (hash[i] < '0' || (hash[i] > '9' && hash[i] < 'A')
174 || (hash[
[all...]
/freebsd-11-stable/sys/dev/drm2/ttm/
H A Dttm_object.c47 * ref_hash hash tables.
75 * @object_lock: lock that protects the object_hash hash table.
77 * @object_hash: hash table for fast lookup of object global names.
94 * @hash: Hash entry for the per-file object reference hash.
104 * This is similar to an idr object, but it also has a hash table entry
113 struct drm_hash_item hash; member in struct:ttm_ref_object
167 &base->hash,
182 (void)drm_ht_remove_item(&tdev->object_hash, &base->hash);
192 (void)drm_ht_remove_item(&tdev->object_hash, &base->hash);
230 struct drm_hash_item *hash; local
263 struct drm_hash_item *hash; local
346 struct drm_hash_item *hash; local
[all...]
/freebsd-11-stable/contrib/xz/src/liblzma/lz/
H A Dlz_encoder_mf.c83 /// Hash value to indicate unused element in the hash. Since we start the
94 /// \brief Normalizes hash values
96 /// The hash arrays store positions of match candidates. The positions are
101 /// the hash.
103 /// To prevent integer overflows of the offsets stored in the hash arrays,
120 // we can simply mark the hash element as empty.
121 if (mf->hash[i] <= subvalue)
122 mf->hash[i] = EMPTY_HASH_VALUE;
124 mf->hash[i] -= subvalue;
170 /// the missed bytes are added to the hash usin
[all...]
/freebsd-11-stable/contrib/netbsd-tests/usr.bin/nbperf/
H A Dhash_driver.c37 #include "hash.c"
49 printf("%" PRId32 "\n", hash(line, len));
/freebsd-11-stable/contrib/libstdc++/include/ext/pb_ds/detail/hash_fn/
H A Dsample_ranged_probe_fn.hpp79 operator()(const_key_reference r_key, size_t hash, size_type i) const;

Completed in 235 milliseconds

1234567891011>>