Home
last modified time | relevance | path

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

/linux/lib/crypto/tests/
H A Dpoly1305_kunit.c116 u8 expected_mac[POLY1305_DIGEST_SIZE]; in test_poly1305_reduction_edge_cases() local
130 expected_mac[0] = 5 - i; in test_poly1305_reduction_edge_cases()
131 memset(&expected_mac[1], 0, POLY1305_DIGEST_SIZE - 1); in test_poly1305_reduction_edge_cases()
133 expected_mac[0] = -i; in test_poly1305_reduction_edge_cases()
134 memset(&expected_mac[1], 0xff, in test_poly1305_reduction_edge_cases()
140 KUNIT_ASSERT_MEMEQ(test, actual_mac, expected_mac, in test_poly1305_reduction_edge_cases()
183 u8 expected_mac[POLY1305_DIGEST_SIZE]; in test_poly1305_split_update_carry() local
194 expected_mac[0] = 3 * (nblocks / 2) - (nblocks % 2); in test_poly1305_split_update_carry()
195 memset(&expected_mac[1], nblocks == 1 ? 0xff : 0, in test_poly1305_split_update_carry()
212 test, actual_mac, expected_mac, in test_poly1305_split_update_carry()