Home
last modified time | relevance | path

Searched refs:hash_size (Results 1 – 25 of 27) sorted by relevance

12

/external/e2fsprogs/e2fsck/
Drevoke.c94 int hash_size; member
117 (block << (hash_shift - 12))) & (table->hash_size - 1); in hash()
200 int journal_init_revoke(journal_t *journal, int hash_size) in journal_init_revoke() argument
211 J_ASSERT ((hash_size & (hash_size-1)) == 0); in journal_init_revoke()
213 journal->j_revoke->hash_size = hash_size; in journal_init_revoke()
216 tmp = hash_size; in journal_init_revoke()
222 kmalloc(hash_size * sizeof(struct list_head), GFP_KERNEL); in journal_init_revoke()
229 for (tmp = 0; tmp < hash_size; tmp++) in journal_init_revoke()
247 for (i=0; i<table->hash_size; i++) { in journal_destroy_revoke()
451 for (i = 0; i < revoke->hash_size; i++) { in journal_write_revoke_records()
[all …]
/external/wpa_supplicant_8/src/tls/
Dtlsv1_record.c46 rl->hash_size = MD5_MAC_LEN; in tlsv1_record_set_cipher_suite()
49 rl->hash_size = SHA1_MAC_LEN; in tlsv1_record_set_cipher_suite()
52 rl->hash_size = SHA256_MAC_LEN; in tlsv1_record_set_cipher_suite()
208 rl->hash_size); in tlsv1_record_send()
219 if (clen < rl->hash_size) { in tlsv1_record_send()
427 if (plen < rl->hash_size) { in tlsv1_record_receive()
434 plen -= rl->hash_size; in tlsv1_record_receive()
437 rl->hash_size); in tlsv1_record_receive()
458 if (hlen != rl->hash_size || in tlsv1_record_receive()
Dtlsv1_server.c85 key_block_len = 2 * (conn->rl.hash_size + conn->rl.key_material_len + in tlsv1_server_derive_keys()
100 os_memcpy(conn->rl.read_mac_secret, pos, conn->rl.hash_size); in tlsv1_server_derive_keys()
101 pos += conn->rl.hash_size; in tlsv1_server_derive_keys()
103 os_memcpy(conn->rl.write_mac_secret, pos, conn->rl.hash_size); in tlsv1_server_derive_keys()
104 pos += conn->rl.hash_size; in tlsv1_server_derive_keys()
647 return 2 * (conn->rl.hash_size + conn->rl.key_material_len + in tlsv1_server_get_keyblock_size()
Dtlsv1_client.c78 key_block_len = 2 * (conn->rl.hash_size + conn->rl.key_material_len); in tls_derive_keys()
94 os_memcpy(conn->rl.write_mac_secret, pos, conn->rl.hash_size); in tls_derive_keys()
95 pos += conn->rl.hash_size; in tls_derive_keys()
97 os_memcpy(conn->rl.read_mac_secret, pos, conn->rl.hash_size); in tls_derive_keys()
98 pos += conn->rl.hash_size; in tls_derive_keys()
751 return 2 * (conn->rl.hash_size + conn->rl.key_material_len + in tlsv1_client_get_keyblock_size()
Dtlsv1_record.h41 size_t hash_size; member
/external/vboot_reference/firmware/stub/
Dvboot_api_stub.c118 VbError_t VbExEcHashRW(int devidx, const uint8_t **hash, int *hash_size) in VbExEcHashRW() argument
123 *hash_size = sizeof(fake_hash); in VbExEcHashRW()
137 const uint8_t **hash, int *hash_size) in VbExEcGetExpectedRWHash() argument
142 *hash_size = sizeof(fake_hash); in VbExEcGetExpectedRWHash()
/external/fio/t/
Dgenzipf.c36 static unsigned long hash_size = 1 << 24; variable
196 hash_size = nranges; in main()
197 while ((hash_size >>= 1) != 0) in main()
200 hash_size = 1 << hash_bits; in main()
202 hash = malloc(hash_size * sizeof(struct flist_head)); in main()
203 for (i = 0; i < hash_size; i++) in main()
/external/mesa3d/src/gallium/auxiliary/cso_cache/
Dcso_cache.c170 int hash_size = cso_hash_size(hash); in sanitize_cb() local
171 int max_entries = (max_size > hash_size) ? max_size : hash_size; in sanitize_cb()
173 if (hash_size > max_size) in sanitize_cb()
174 to_remove += hash_size - max_size; in sanitize_cb()
Dcso_context.c215 int hash_size = cso_hash_size(hash); in sanitize_hash() local
216 int max_entries = (max_size > hash_size) ? max_size : hash_size; in sanitize_hash()
219 if (hash_size > max_size) in sanitize_hash()
220 to_remove += hash_size - max_size; in sanitize_hash()
/external/webp/src/utils/
Dcolor_cache.c23 const int hash_size = 1 << hash_bits; in VP8LColorCacheInit() local
26 cc->colors_ = (uint32_t*)WebPSafeCalloc((uint64_t)hash_size, in VP8LColorCacheInit()
/external/vboot_reference/tests/
Dvboot_api_kernel3_tests.c143 VbError_t VbExEcHashRW(int devidx, const uint8_t **hash, int *hash_size) in VbExEcHashRW() argument
146 *hash_size = mock_ec_hash_size; in VbExEcHashRW()
160 const uint8_t **hash, int *hash_size) in VbExEcGetExpectedRWHash() argument
163 *hash_size = want_ec_hash_size; in VbExEcGetExpectedRWHash()
/external/vboot_reference/firmware/2lib/
D2rsa.c247 uint32_t hash_size = vb2_digest_size(key->hash_alg); in vb2_check_padding() local
248 uint32_t pad_size = sig_size - hash_size; in vb2_check_padding()
254 if (!sig_size || !hash_size || hash_size > sig_size) in vb2_check_padding()
/external/e2fsprogs/lib/ext2fs/
Dtdb.c138 #define TDB_HASHTABLE_SIZE(tdb) ((tdb->header.hash_size+1)*sizeof(tdb_off_t))
139 #define TDB_DATA_START(hash_size) TDB_HASH_TOP(hash_size-1) argument
160 #define BUCKET(hash) ((hash) % tdb->header.hash_size)
192 u32 hash_size; /* number of hash entries */ member
419 if (list < -1 || list >= (int)tdb->header.hash_size) { in _tdb_lock()
518 if (list < -1 || list >= (int)tdb->header.hash_size) { in tdb_unlock()
519 …TDB_LOG((tdb, TDB_DEBUG_ERROR, "tdb_unlock: list %d invalid (%d)\n", list, tdb->header.hash_size)); in tdb_unlock()
644 0, 4*tdb->header.hash_size)) { in _tdb_lockall()
682 0, 4*tdb->header.hash_size)) { in _tdb_unlockall()
948 for (;h < tdb->header.hash_size;h++) { in tdb_next_hash_chain()
[all …]
Dtdb.h145 struct tdb_context *tdb_open(const char *name, int hash_size, int tdb_flags,
147 struct tdb_context *tdb_open_ex(const char *name, int hash_size, int tdb_flags,
/external/e2fsprogs/intl/
Dloadmsgcat.c1044 domain->hash_size = W (domain->must_swap, data->hash_tab_size); in _nl_load_domain()
1046 (domain->hash_size > 2 in _nl_load_domain()
1123 memneed = domain->hash_size * sizeof (nls_uint32); in _nl_load_domain()
1200 mem += domain->hash_size * sizeof (nls_uint32); in _nl_load_domain()
1318 for (i = 0; i < domain->hash_size; i++) in _nl_load_domain()
1325 nls_uint32 idx = hash_val % domain->hash_size; in _nl_load_domain()
1327 1 + (hash_val % (domain->hash_size - 2)); in _nl_load_domain()
1338 if (idx >= domain->hash_size - incr) in _nl_load_domain()
1339 idx -= domain->hash_size - incr; in _nl_load_domain()
Ddcigettext.c750 nls_uint32 idx = hash_val % domain->hash_size; in _nl_find_msg()
751 nls_uint32 incr = 1 + (hash_val % (domain->hash_size - 2)); in _nl_find_msg()
782 if (idx >= domain->hash_size - incr) in _nl_find_msg()
783 idx -= domain->hash_size - incr; in _nl_find_msg()
DgettextP.h109 nls_uint32 hash_size; member
/external/dnsmasq/src/
Dcache.c26 static int bignames_left, hash_size; variable
114 else if (new_size <= hash_size || !(new = whine_malloc(new_size * sizeof(struct crec *)))) in rehash()
121 old_size = hash_size; in rehash()
123 hash_size = new_size; in rehash()
151 return hash_table + ((val ^ (val >> 16)) & (hash_size - 1)); in hash_bucket()
307 for (i = 0; i < hash_size; i++) in cache_scan_free()
600 for (i=0; i<hash_size; i++) in cache_find_by_addr()
673 for (i=0; i<hash_size; i++) in add_hosts_entry()
876 for (i=0; i<hash_size; i++) in cache_reload()
1023 for (i=0; i<hash_size; i++) in cache_unhash_dhcp()
[all …]
/external/boringssl/src/ssl/
Dt1_enc.c521 size_t hash_size; in tls1_handshake_digest() local
529 hash_size = EVP_MD_size(md); in tls1_handshake_digest()
531 hash_size > out_len || in tls1_handshake_digest()
534 digest_len != hash_size /* internal error */) { in tls1_handshake_digest()
/external/vboot_reference/firmware/include/
Dvboot_api.h879 VbError_t VbExEcHashRW(int devidx, const uint8_t **hash, int *hash_size);
893 const uint8_t **hash, int *hash_size);
/external/zlib/src/
Ddeflate.c197 s->head[s->hash_size-1] = NIL; \
198 zmemzero((Bytef *)s->head, (unsigned)(s->hash_size-1)*sizeof(*s->head));
289 s->hash_size = 1 << s->hash_bits;
290 s->hash_mask = s->hash_size - 1;
295 s->head = (Posf *) ZALLOC(strm, s->hash_size, sizeof(Pos));
1042 ds->head = (Posf *) ZALLOC(dest, ds->hash_size, sizeof(Pos));
1054 zmemcpy((voidpf)ds->head, (voidpf)ss->head, ds->hash_size * sizeof(Pos));
1432 n = s->hash_size;
Ddeflate.h140 uInt hash_size; /* number of elements in hash table */ member
/external/pdfium/core/src/fxcodec/fx_zlib/zlib_v128/
Dfx_zlib_deflate.c197 s->head[s->hash_size-1] = NIL; \
198 zmemzero((Bytef *)s->head, (unsigned)(s->hash_size-1)*sizeof(*s->head));
288 s->hash_size = 1 << s->hash_bits; in deflateInit2_()
289 s->hash_mask = s->hash_size - 1; in deflateInit2_()
294 s->head = (Posf *) ZALLOC(strm, s->hash_size, sizeof(Pos)); in deflateInit2_()
1041 ds->head = (Posf *) ZALLOC(dest, ds->hash_size, sizeof(Pos)); in deflateCopy()
1053 zmemcpy((voidpf)ds->head, (voidpf)ss->head, ds->hash_size * sizeof(Pos)); in deflateCopy()
1431 n = s->hash_size; in fill_window()
Ddeflate.h140 uInt hash_size; /* number of elements in hash table */ member
/external/valgrind/coregrind/m_debuginfo/
Dreadpdb.c387 unsigned long hash_size; member
481 unsigned long hash_size; member
496 unsigned long hash_size; member
1182 symbols->hash_size = old->hash_size; in pdb_convert_symbols_header()

12