Lines Matching refs:HASH_SIZE
111 u8 actual_hash[HASH_SIZE]; in test_hash_test_vectors()
118 test, actual_hash, hash_testvecs[i].digest, HASH_SIZE, in test_hash_test_vectors()
133 u8 hash[HASH_SIZE]; in test_hash_all_lens_up_to_4096()
140 HASH_UPDATE(&ctx, hash, HASH_SIZE); in test_hash_all_lens_up_to_4096()
143 KUNIT_ASSERT_MEMEQ(test, hash, hash_testvec_consolidated, HASH_SIZE); in test_hash_all_lens_up_to_4096()
155 u8 hash1[HASH_SIZE]; in test_hash_incremental_updates()
156 u8 hash2[HASH_SIZE]; in test_hash_incremental_updates()
190 test, hash1, hash2, HASH_SIZE, in test_hash_incremental_updates()
211 u8 hash[HASH_SIZE]; in test_hash_buffer_overruns()
220 HASH(test_buf, len, buf_end - HASH_SIZE); in test_hash_buffer_overruns()
223 HASH_FINAL(&ctx, buf_end - HASH_SIZE); in test_hash_buffer_overruns()
238 const size_t max_tested_len = TEST_BUF_LEN - HASH_SIZE; in test_hash_overlaps()
240 u8 hash[HASH_SIZE]; in test_hash_overlaps()
246 size_t offset = HASH_SIZE + rand_offset(max_tested_len - len); in test_hash_overlaps()
249 &test_buf[offset + len - HASH_SIZE]; in test_hash_overlaps()
254 test, hash, ovl_hash, HASH_SIZE, in test_hash_overlaps()
264 test, hash, ovl_hash, HASH_SIZE, in test_hash_overlaps()
275 test, hash, ovl_hash, HASH_SIZE, in test_hash_overlaps()
287 u8 hash1[128 + HASH_SIZE]; in test_hash_alignment_consistency()
288 u8 hash2[128 + HASH_SIZE]; in test_hash_alignment_consistency()
302 test, &hash1[hash_offs1], &hash2[hash_offs2], HASH_SIZE, in test_hash_alignment_consistency()
439 u8 expected_hashes[IRQ_TEST_NUM_BUFFERS][HASH_SIZE];
452 u8 actual_hash[HASH_SIZE]; in hash_irq_test1_func()
455 return memcmp(actual_hash, state->expected_hashes[i], HASH_SIZE) == 0; in hash_irq_test1_func()
484 u8 expected_hash[HASH_SIZE];
521 u8 actual_hash[HASH_SIZE]; in hash_irq_test2_func()
526 if (memcmp(actual_hash, state->expected_hash, HASH_SIZE) != 0) in hash_irq_test2_func()
607 u8 mac[HASH_SIZE]; in test_hmac()
608 u8 mac2[HASH_SIZE]; in test_hmac()
631 HMAC_UPDATE(&ctx, mac, HASH_SIZE); in test_hmac()
637 test, mac, mac2, HASH_SIZE, in test_hmac()
641 KUNIT_EXPECT_MEMEQ_MSG(test, mac, hmac_testvec_consolidated, HASH_SIZE, in test_hmac()
658 u8 hash[HASH_SIZE]; in benchmark_hash()