Lines Matching refs:key
98 static uint8_t key[HASHTEST_ITERATIONS][MAX_KEYSIZE]; in run_hash_func_perf_test() local
104 key[i][j] = (uint8_t) rte_rand(); in run_hash_func_perf_test()
109 f(key[i], key_len, init_val); in run_hash_func_perf_test()
149 uint8_t key[64]; in verify_precalculated_hash_func_tests() local
153 key[i] = (uint8_t) i; in verify_precalculated_hash_func_tests()
157 hash = rte_jhash(key, hashtest_key_lens[i], in verify_precalculated_hash_func_tests()
167 hash = rte_hash_crc(key, hashtest_key_lens[i], in verify_precalculated_hash_func_tests()
189 uint8_t key[64]; in verify_jhash_32bits() local
193 key[i] = rand() & 0xff; in verify_jhash_32bits()
199 hash = rte_jhash(key, hashtest_key_lens[i], in verify_jhash_32bits()
202 hash32 = rte_jhash_32b((const unaligned_uint32_t *)key, in verify_jhash_32bits()
226 uint32_t key[3]; in verify_jhash_words() local
230 key[i] = rand(); in verify_jhash_words()
233 hash = rte_jhash(key, 4, 0); in verify_jhash_words()
234 hash_words = rte_jhash_1word(key[0], 0); in verify_jhash_words()
242 hash = rte_jhash(key, 8, 0); in verify_jhash_words()
243 hash_words = rte_jhash_2words(key[0], key[1], 0); in verify_jhash_words()
251 hash = rte_jhash(key, 12, 0); in verify_jhash_words()
252 hash_words = rte_jhash_3words(key[0], key[1], key[2], 0); in verify_jhash_words()