Home
last modified time | relevance | path

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

12

/linux/lib/crypto/tests/
H A Dhash-test-template.h109 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 Dsha512_kunit.c10 #define HASH_SIZE SHA512_DIGEST_SIZE macro
H A Dsha384_kunit.c10 #define HASH_SIZE SHA384_DIGEST_SIZE macro
H A Dsha1_kunit.c10 #define HASH_SIZE SHA1_DIGEST_SIZE macro
H A Dsha224_kunit.c10 #define HASH_SIZE SHA224_DIGEST_SIZE macro
H A Dmd5_kunit.c10 #define HASH_SIZE MD5_DIGEST_SIZE macro
H A Dpoly1305_kunit.c40 #define HASH_SIZE POLY1305_DIGEST_SIZE macro
H A Dblake2b_kunit.c31 #define HASH_SIZE BLAKE2B_HASH_SIZE macro
H A Dblake2s_kunit.c31 #define HASH_SIZE BLAKE2S_HASH_SIZE macro
H A Dpolyval_kunit.c29 #define HASH_SIZE POLYVAL_BLOCK_SIZE macro
H A Dsha3_kunit.c11 #define HASH_SIZE SHA3_256_DIGEST_SIZE macro
/linux/tools/include/linux/
H A Dhashtable.h24 #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 Dhashtable.h27 #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 Dhashtable.h8 #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 Dencrypted.c49 #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 Dpeerlookup.c19 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 Ddebug.c30 #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 Dptp_vclock.c27 &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 Daudit_tree.c210 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 Dpage-types.c198 #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 Dsiphash.rst66 …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 Dgenksyms.c842 nsyms, HASH_SIZE(symbol_hashtable), in main()
843 (double)nsyms / HASH_SIZE(symbol_hashtable)); in main()
/linux/fs/fuse/
H A Ddir.c36 #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 Dsecurity.c517 for (i = 0; i < HASH_SIZE(afs_permits_cache); i++) in afs_clean_up_permit_cache()
/linux/net/rxrpc/
H A Dpeer_object.c457 for (i = 0; i < HASH_SIZE(rxnet->peer_hash); i++) { in rxrpc_destroy_all_peers()

12