/third_party/openssl/crypto/siphash/ |
D | siphash.c | 80 return ctx->hash_size; in SipHash_hash_size() 83 static size_t siphash_adjust_hash_size(size_t hash_size) in siphash_adjust_hash_size() argument 85 if (hash_size == 0) in siphash_adjust_hash_size() 86 hash_size = SIPHASH_MAX_DIGEST_SIZE; in siphash_adjust_hash_size() 87 return hash_size; in siphash_adjust_hash_size() 90 int SipHash_set_hash_size(SIPHASH *ctx, size_t hash_size) in SipHash_set_hash_size() argument 92 hash_size = siphash_adjust_hash_size(hash_size); in SipHash_set_hash_size() 93 if (hash_size != SIPHASH_MIN_DIGEST_SIZE in SipHash_set_hash_size() 94 && hash_size != SIPHASH_MAX_DIGEST_SIZE) in SipHash_set_hash_size() 103 ctx->hash_size = siphash_adjust_hash_size(ctx->hash_size); in SipHash_set_hash_size() [all …]
|
/third_party/mbedtls/tests/src/drivers/ |
D | hash.c | 37 uint8_t *hash, size_t hash_size, size_t *hash_length ) in mbedtls_test_transparent_hash_compute() argument 53 hash, hash_size, hash_length ); in mbedtls_test_transparent_hash_compute() 58 hash, hash_size, hash_length ); in mbedtls_test_transparent_hash_compute() 64 (void) hash_size; in mbedtls_test_transparent_hash_compute() 170 size_t hash_size, in mbedtls_test_transparent_hash_finish() argument 186 operation, hash, hash_size, hash_length ); in mbedtls_test_transparent_hash_finish() 189 mbedtls_psa_hash_finish( operation, hash, hash_size, hash_length ); in mbedtls_test_transparent_hash_finish() 193 (void) hash_size; in mbedtls_test_transparent_hash_finish()
|
/third_party/node/deps/zlib/contrib/optimizations/ |
D | slide_hash_neon.h | 12 const uInt hash_size, in neon_slide_hash_update() argument 27 for (Posf *end = hash + hash_size; hash != end; hash += stride) { in neon_slide_hash_update() 46 const uInt hash_size) in neon_slide_hash() argument 55 const size_t size = hash_size * sizeof(head[0]); in neon_slide_hash() 59 neon_slide_hash_update(head, hash_size, w_size); in neon_slide_hash()
|
/third_party/skia/third_party/externals/zlib/contrib/optimizations/ |
D | slide_hash_neon.h | 12 const uInt hash_size, in neon_slide_hash_update() argument 27 for (Posf *end = hash + hash_size; hash != end; hash += stride) { in neon_slide_hash_update() 46 const uInt hash_size) in neon_slide_hash() argument 55 const size_t size = hash_size * sizeof(head[0]); in neon_slide_hash() 59 neon_slide_hash_update(head, hash_size, w_size); in neon_slide_hash()
|
/third_party/flutter/skia/third_party/externals/zlib/contrib/optimizations/ |
D | slide_hash_neon.h | 12 const uInt hash_size, in neon_slide_hash_update() argument 27 for (Posf *end = hash + hash_size; hash != end; hash += stride) { in neon_slide_hash_update() 46 const uInt hash_size) in neon_slide_hash() argument 55 const size_t size = hash_size * sizeof(head[0]); in neon_slide_hash() 59 neon_slide_hash_update(head, hash_size, w_size); in neon_slide_hash()
|
/third_party/e2fsprogs/e2fsck/ |
D | revoke.c | 115 int hash_size; member 218 static struct jbd2_revoke_table_s *jbd2_journal_init_revoke_table(int hash_size) in jbd2_journal_init_revoke_table() argument 221 int tmp = hash_size; in jbd2_journal_init_revoke_table() 231 table->hash_size = hash_size; in jbd2_journal_init_revoke_table() 234 kmalloc_array(hash_size, sizeof(struct list_head), GFP_KERNEL); in jbd2_journal_init_revoke_table() 241 for (tmp = 0; tmp < hash_size; tmp++) in jbd2_journal_init_revoke_table() 253 for (i = 0; i < table->hash_size; i++) { in jbd2_journal_destroy_revoke_table() 263 int jbd2_journal_init_revoke(journal_t *journal, int hash_size) in jbd2_journal_init_revoke() argument 266 J_ASSERT(is_power_of_2(hash_size)); in jbd2_journal_init_revoke() 268 journal->j_revoke_table[0] = jbd2_journal_init_revoke_table(hash_size); in jbd2_journal_init_revoke() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/ |
D | tlsv1_record.c | 46 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()
|
D | tlsv1_server.c | 85 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() 674 return 2 * (conn->rl.hash_size + conn->rl.key_material_len + in tlsv1_server_get_keyblock_size()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/ |
D | tlsv1_record.c | 46 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()
|
D | tlsv1_server.c | 85 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() 674 return 2 * (conn->rl.hash_size + conn->rl.key_material_len + in tlsv1_server_get_keyblock_size()
|
/third_party/gstreamer/gstplugins_bad/gst/dvbsubenc/libimagequant/ |
D | pam.c | 43 const unsigned int hash_size = acht->hash_size; in pam_computeacolorhash() local 73 hash = px.l % hash_size; in pam_computeacolorhash() 191 const unsigned int hash_size = in pam_allocacolorhash() local 197 hash_size * sizeof (struct acolorhist_arr_head); in pam_allocacolorhash() 207 .mempool = m,.hash_size = hash_size,.maxcolors = maxcolors,.ignorebits = in pam_allocacolorhash() 209 memset (t->buckets, 0, hash_size * sizeof (struct acolorhist_arr_head)); in pam_allocacolorhash() 244 for (j = 0, i = 0; i < acht->hash_size; ++i) { in pam_acolorhashtoacolorhist()
|
/third_party/mbedtls/library/ |
D | psa_crypto_hash.c | 321 size_t hash_size, in mbedtls_psa_hash_finish() argument 331 *hash_length = hash_size; in mbedtls_psa_hash_finish() 334 if( hash_size != 0 ) in mbedtls_psa_hash_finish() 335 memset( hash, '!', hash_size ); in mbedtls_psa_hash_finish() 337 if( hash_size < actual_hash_length ) in mbedtls_psa_hash_finish() 397 size_t hash_size, in mbedtls_psa_hash_compute() argument 404 *hash_length = hash_size; in mbedtls_psa_hash_compute() 411 status = mbedtls_psa_hash_finish( &operation, hash, hash_size, hash_length ); in mbedtls_psa_hash_compute()
|
D | psa_crypto_mac.c | 49 size_t hash_size = PSA_HASH_LENGTH( hash_alg ); in psa_hmac_setup_internal() local 65 if( block_size < hash_size ) in psa_hmac_setup_internal() 121 size_t hash_size = 0; in psa_hmac_finish_internal() local 125 status = psa_hash_finish( &hmac->hash_ctx, tmp, sizeof( tmp ), &hash_size ); in psa_hmac_finish_internal() 138 status = psa_hash_update( &hmac->hash_ctx, tmp, hash_size ); in psa_hmac_finish_internal() 142 status = psa_hash_finish( &hmac->hash_ctx, tmp, sizeof( tmp ), &hash_size ); in psa_hmac_finish_internal() 149 mbedtls_platform_zeroize( tmp, hash_size ); in psa_hmac_finish_internal()
|
D | psa_crypto_hash.h | 68 size_t hash_size, 204 size_t hash_size,
|
/third_party/mesa3d/src/gallium/auxiliary/cso_cache/ |
D | cso_cache.c | 90 int hash_size = cso_hash_size(hash); in sanitize_cb() local 91 int max_entries = (max_size > hash_size) ? max_size : hash_size; in sanitize_cb() 93 if (hash_size > max_size) in sanitize_cb() 94 to_remove += hash_size - max_size; in sanitize_cb()
|
/third_party/skia/third_party/externals/libwebp/src/utils/ |
D | color_cache_utils.c | 24 const int hash_size = 1 << hash_bits; in VP8LColorCacheInit() local 28 (uint64_t)hash_size, sizeof(*color_cache->colors_)); in VP8LColorCacheInit()
|
/third_party/flutter/skia/third_party/externals/libwebp/src/utils/ |
D | color_cache_utils.c | 24 const int hash_size = 1 << hash_bits; in VP8LColorCacheInit() local 27 cc->colors_ = (uint32_t*)WebPSafeCalloc((uint64_t)hash_size, in VP8LColorCacheInit()
|
/third_party/mbedtls/tests/include/test/drivers/ |
D | hash.h | 51 uint8_t *hash, size_t hash_size, size_t *hash_length ); 69 size_t hash_size,
|
/third_party/gettext/gettext-runtime/intl/ |
D | loadmsgcat.c | 879 domain->hash_size = W (domain->must_swap, data->hash_tab_size); in _nl_load_domain() 881 (domain->hash_size > 2 in _nl_load_domain() 959 memneed = domain->hash_size * sizeof (nls_uint32); in _nl_load_domain() 1056 mem += domain->hash_size * sizeof (nls_uint32); in _nl_load_domain() 1174 for (i = 0; i < domain->hash_size; i++) in _nl_load_domain() 1181 nls_uint32 idx = hash_val % domain->hash_size; in _nl_load_domain() 1183 1 + (hash_val % (domain->hash_size - 2)); in _nl_load_domain() 1194 if (idx >= domain->hash_size - incr) in _nl_load_domain() 1195 idx -= domain->hash_size - incr; in _nl_load_domain()
|
/third_party/pulseaudio/src/pulsecore/ |
D | database-tdb.c | 69 int hash_size, in tdb_open_cloexec() argument 84 if ((c = tdb_open(name, hash_size, tdb_flags, open_flags | O_CLOEXEC, mode))) in tdb_open_cloexec() 92 if (!(c = tdb_open(name, hash_size, tdb_flags, open_flags, mode))) in tdb_open_cloexec()
|
/third_party/e2fsprogs/lib/ext2fs/ |
D | tdb.c | 145 #define TDB_HASHTABLE_SIZE(tdb) ((tdb->header.hash_size+1)*sizeof(tdb_off_t)) 146 #define TDB_DATA_START(hash_size) TDB_HASH_TOP(hash_size-1) argument 167 #define BUCKET(hash) ((hash) % tdb->header.hash_size) 199 u32 hash_size; /* number of hash entries */ member 428 if (list < -1 || list >= (int)tdb->header.hash_size) { in _tdb_lock() 527 if (list < -1 || list >= (int)tdb->header.hash_size) { in tdb_unlock() 528 …TDB_LOG((tdb, TDB_DEBUG_ERROR, "tdb_unlock: list %d invalid (%d)\n", list, tdb->header.hash_size)); in tdb_unlock() 653 0, 4*tdb->header.hash_size)) { in _tdb_lockall() 692 0, 4*tdb->header.hash_size)) { in _tdb_unlockall() 958 for (;h < tdb->header.hash_size;h++) { in tdb_next_hash_chain() [all …]
|
/third_party/openssl/crypto/sm2/ |
D | sm2_crypt.c | 270 const int hash_size = EVP_MD_size(digest); in sm2_decrypt() local 277 if (field_size == 0 || hash_size <= 0) in sm2_decrypt() 289 if (sm2_ctext->C3->length != hash_size) { in sm2_decrypt() 319 computed_C3 = OPENSSL_zalloc(hash_size); in sm2_decrypt() 367 if (CRYPTO_memcmp(computed_C3, C3, hash_size) != 0) { in sm2_decrypt()
|
/third_party/skia/third_party/externals/spirv-tools/test/fuzzers/ |
D | random_generator.cpp | 130 size_t hash_size = static_cast<size_t>(hash_end_i64) - hash_begin; in CalculateSeed() local 131 return HashBuffer(data + hash_begin, hash_size); in CalculateSeed()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/fuzzers/ |
D | random_generator.cpp | 130 size_t hash_size = static_cast<size_t>(hash_end_i64) - hash_begin; in CalculateSeed() local 131 return HashBuffer(data + hash_begin, hash_size); in CalculateSeed()
|
/third_party/skia/third_party/externals/tint/fuzzers/ |
D | random_generator.cc | 120 auto hash_size = static_cast<size_t>(hash_end_i64) - hash_begin; in CalculateSeed() local 121 return HashBuffer(data + hash_begin, hash_size); in CalculateSeed()
|