| /linux/lib/crypto/tests/ |
| H A D | hash-test-template.h | 26 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 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 | 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 | 50 #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 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/drivers/ptp/ |
| H A D | ptp_vclock.c | 29 &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 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]; 619 /* search through the remaining (HASH_SIZE-1) slots */ in hash_slot()
|
| /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/net/rxrpc/ |
| H A D | proc.c | 332 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 D | peer_object.c | 457 for (i = 0; i < HASH_SIZE(rxnet->peer_hash); i++) { in rxrpc_destroy_all_peers()
|
| /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/afs/ |
| H A D | security.c | 517 for (i = 0; i < HASH_SIZE(afs_permits_cache); i++) in afs_clean_up_permit_cache()
|
| /linux/drivers/net/ovpn/ |
| H A D | peer.c | 184 jhash(_key, _key_len, 0) % HASH_SIZE(*__tbl2); \
|
| /linux/net/core/ |
| H A D | dev.c | 818 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()
|