Home
last modified time | relevance | path

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

/linux/lib/crypto/tests/
H A Dhash-test-template.h26 u8 actual_hash[HASH_SIZE];
32 test, actual_hash, hash_testvecs[i].digest, HASH_SIZE,
49 u8 hash[HASH_SIZE];
55 HASH_UPDATE(&ctx, hash, HASH_SIZE); in rand_length()
58 KUNIT_ASSERT_MEMEQ(test, hash, hash_testvec_consolidated, HASH_SIZE); in rand_length()
73 u8 hash1[HASH_SIZE];
74 u8 hash2[HASH_SIZE]; in hash_suite_init()
108 test, hash1, hash2, HASH_SIZE, in test_hash_test_vectors()
131 u8 hash[HASH_SIZE]; in test_hash_all_lens_up_to_4096()
140 HASH(buf, len, buf_end - HASH_SIZE); in test_hash_all_lens_up_to_4096()
[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 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.c50 #define HASH_SIZE SHA256_DIGEST_SIZE
338 if (derived_buf_len < HASH_SIZE) in get_derived_key()
339 derived_buf_len = HASH_SIZE; in get_derived_key()
346 strscpy(derived_buf, "AUTH_KEY", HASH_SIZE); in get_derived_key()
348 strscpy(derived_buf, "ENC_KEY", HASH_SIZE); in get_derived_key()
471 u8 derived_key[HASH_SIZE]; in datablob_hmac_append()
483 dump_hmac(NULL, digest, HASH_SIZE); in datablob_hmac_append()
494 u8 derived_key[HASH_SIZE]; in datablob_hmac_verify()
495 u8 digest[HASH_SIZE]; in datablob_hmac_verify()
519 HASH_SIZE); in datablob_hmac_verify()
49 #define HASH_SIZE global() macro
[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/drivers/ptp/
H A Dptp_vclock.c29 &vclock_hash[vclock->clock->index % HASH_SIZE(vclock_hash)]); in ptp_vclock_hash_add()
279 unsigned int hash = vclock_index % HASH_SIZE(vclock_hash); in ptp_convert_timestamp()
/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];
619 /* search through the remaining (HASH_SIZE-1) slots */ in hash_slot()
/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/net/rxrpc/
H A Dproc.c332 if (bucket >= HASH_SIZE(rxnet->peer_hash)) { in rxrpc_peer_seq_start()
373 if (bucket >= HASH_SIZE(rxnet->peer_hash)) { in rxrpc_peer_seq_next()
H A Dpeer_object.c457 for (i = 0; i < HASH_SIZE(rxnet->peer_hash); i++) { in rxrpc_destroy_all_peers()
/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/afs/
H A Dsecurity.c517 for (i = 0; i < HASH_SIZE(afs_permits_cache); i++) in afs_clean_up_permit_cache()
/linux/drivers/net/ovpn/
H A Dpeer.c184 jhash(_key, _key_len, 0) % HASH_SIZE(*__tbl2); \
/linux/net/core/
H A Ddev.c818 unsigned int hash = napi_id % HASH_SIZE(napi_hash); in napi_by_id()
7143 &napi_hash[napi->napi_id % HASH_SIZE(napi_hash)]); in __napi_hash_add_with_id()