| /linux/lib/crypto/tests/ |
| H A D | hash-test-template.h | 109 u8 actual_hash[HASH_SIZE]; in test_hash_test_vectors() 116 test, actual_hash, hash_testvecs[i].digest, HASH_SIZE, in test_hash_test_vectors() 131 u8 hash[HASH_SIZE]; in test_hash_all_lens_up_to_4096() 138 HASH_UPDATE(&ctx, hash, HASH_SIZE); in test_hash_all_lens_up_to_4096() 141 KUNIT_ASSERT_MEMEQ(test, hash, hash_testvec_consolidated, HASH_SIZE); in test_hash_all_lens_up_to_4096() 153 u8 hash1[HASH_SIZE]; in test_hash_incremental_updates() 154 u8 hash2[HASH_SIZE]; in test_hash_incremental_updates() 188 test, hash1, hash2, HASH_SIZE, in test_hash_incremental_updates() 209 u8 hash[HASH_SIZE]; in test_hash_buffer_overruns() 218 HASH(test_buf, len, buf_end - HASH_SIZE); in test_hash_buffer_overruns() [all …]
|
| H A D | sha512_kunit.c | 10 #define HASH_SIZE SHA512_DIGEST_SIZE macro
|
| H A D | sha384_kunit.c | 10 #define HASH_SIZE SHA384_DIGEST_SIZE macro
|
| H A D | sha1_kunit.c | 10 #define HASH_SIZE SHA1_DIGEST_SIZE macro
|
| H A D | sha224_kunit.c | 10 #define HASH_SIZE SHA224_DIGEST_SIZE macro
|
| H A D | md5_kunit.c | 10 #define HASH_SIZE MD5_DIGEST_SIZE macro
|
| H A D | poly1305_kunit.c | 40 #define HASH_SIZE POLY1305_DIGEST_SIZE macro
|
| H A D | blake2b_kunit.c | 31 #define HASH_SIZE BLAKE2B_HASH_SIZE macro
|
| H A D | blake2s_kunit.c | 31 #define HASH_SIZE BLAKE2S_HASH_SIZE macro
|
| H A D | polyval_kunit.c | 29 #define HASH_SIZE POLYVAL_BLOCK_SIZE macro
|
| H A D | sha3_kunit.c | 11 #define HASH_SIZE SHA3_256_DIGEST_SIZE macro
|
| /linux/tools/include/linux/ |
| H A D | hashtable.h | 24 #define HASH_SIZE(name) (ARRAY_SIZE(name)) macro 25 #define HASH_BITS(name) ilog2(HASH_SIZE(name)) 49 #define hash_init(hashtable) __hash_init(hashtable, HASH_SIZE(hashtable)) 87 #define hash_empty(hashtable) __hash_empty(hashtable, HASH_SIZE(hashtable)) 106 for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\ 120 for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\
|
| /linux/include/linux/ |
| H A D | hashtable.h | 27 #define HASH_SIZE(name) (ARRAY_SIZE(name)) macro 28 #define HASH_BITS(name) ilog2(HASH_SIZE(name)) 52 #define hash_init(hashtable) __hash_init(hashtable, HASH_SIZE(hashtable)) 99 #define hash_empty(hashtable) __hash_empty(hashtable, HASH_SIZE(hashtable)) 127 for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\ 139 for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\ 153 for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\
|
| /linux/scripts/include/ |
| H A D | hashtable.h | 8 #define HASH_SIZE(name) (ARRAY_SIZE(name)) macro 16 #define hash_head(table, key) (&(table)[(key) % HASH_SIZE(table)]) 33 #define hash_init(table) __hash_init(table, HASH_SIZE(table)) 60 for (int _bkt = 0; _bkt < HASH_SIZE(table); _bkt++) \ 72 for (int _bkt = 0; _bkt < HASH_SIZE(table); _bkt++) \
|
| /linux/security/keys/encrypted-keys/ |
| H A D | encrypted.c | 49 #define HASH_SIZE SHA256_DIGEST_SIZE macro 337 if (derived_buf_len < HASH_SIZE) in get_derived_key() 338 derived_buf_len = HASH_SIZE; in get_derived_key() 470 u8 derived_key[HASH_SIZE]; in datablob_hmac_append() 482 dump_hmac(NULL, digest, HASH_SIZE); in datablob_hmac_append() 493 u8 derived_key[HASH_SIZE]; in datablob_hmac_verify() 494 u8 digest[HASH_SIZE]; in datablob_hmac_verify() 518 HASH_SIZE); in datablob_hmac_verify() 519 dump_hmac("calc", digest, HASH_SIZE); in datablob_hmac_verify() 638 + HASH_SIZE + 1); in encrypted_key_alloc() [all …]
|
| /linux/drivers/net/wireguard/ |
| H A D | peerlookup.c | 19 return &table->hashtable[hash & (HASH_SIZE(table->hashtable) - 1)]; in pubkey_bucket() 80 (HASH_SIZE(table->hashtable) - 1)]; in index_bucket()
|
| /linux/kernel/dma/ |
| H A D | debug.c | 30 #define HASH_SIZE 16384ULL macro 32 #define HASH_FN_MASK (HASH_SIZE - 1) 94 static struct hash_bucket dma_entry_hash[HASH_SIZE]; 357 int limit = min(HASH_SIZE, (index.dev_addr >> HASH_FN_SHIFT) + 1); in bucket_find_contain() 524 for (idx = 0; idx < HASH_SIZE; idx++) { in debug_dma_dump_mappings() 556 for (idx = 0; idx < HASH_SIZE; idx++) { in dump_show() 834 for (i = 0; i < HASH_SIZE; ++i) { in device_dma_allocations() 906 for (i = 0; i < HASH_SIZE; ++i) { in dma_debug_init()
|
| /linux/drivers/ptp/ |
| H A D | ptp_vclock.c | 27 &vclock_hash[vclock->clock->index % HASH_SIZE(vclock_hash)]); in ptp_vclock_hash_add() 277 unsigned int hash = vclock_index % HASH_SIZE(vclock_hash); in ptp_convert_timestamp()
|
| /linux/kernel/ |
| H A D | audit_tree.c | 210 enum {HASH_SIZE = 128}; enumerator 211 static struct list_head chunk_hash_heads[HASH_SIZE]; 224 return chunk_hash_heads + n % HASH_SIZE; in chunk_hash() 1088 for (i = 0; i < HASH_SIZE; i++) in audit_tree_init()
|
| /linux/tools/mm/ |
| H A D | page-types.c | 198 #define HASH_SIZE (1 << HASH_SHIFT) macro 199 #define HASH_MASK (HASH_SIZE - 1) 203 static unsigned long nr_pages[HASH_SIZE]; 204 static uint64_t page_flags[HASH_SIZE];
|
| /linux/Documentation/security/ |
| H A D | siphash.rst | 66 …return &table->hashtable[siphash(input, sizeof(*input), &table->key) & (HASH_SIZE(table->hashtable… 188 …return &table->hashtable[hsiphash(input, sizeof(*input), &table->key) & (HASH_SIZE(table->hashtabl…
|
| /linux/scripts/genksyms/ |
| H A D | genksyms.c | 842 nsyms, HASH_SIZE(symbol_hashtable), in main() 843 (double)nsyms / HASH_SIZE(symbol_hashtable)); in main()
|
| /linux/fs/fuse/ |
| H A D | dir.c | 36 #define HASH_SIZE (1 << HASH_BITS) macro 37 static struct dentry_bucket dentry_hash[HASH_SIZE]; 167 for (i = 0; i < HASH_SIZE; i++) { in fuse_dentry_tree_work() 216 for (i = 0; i < HASH_SIZE; i++) { in fuse_dentry_tree_init() 230 for (i = 0; i < HASH_SIZE; i++) in fuse_dentry_tree_cleanup()
|
| /linux/fs/afs/ |
| H A D | security.c | 517 for (i = 0; i < HASH_SIZE(afs_permits_cache); i++) in afs_clean_up_permit_cache()
|
| /linux/net/rxrpc/ |
| H A D | peer_object.c | 457 for (i = 0; i < HASH_SIZE(rxnet->peer_hash); i++) { in rxrpc_destroy_all_peers()
|