Lines Matching +full:self +full:- +full:test

1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
2 /* Copyright (C) 2016-2022 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
4 * Test cases for siphash.c
6 * SipHash: a fast short-input PRF
9 * This implementation is specifically for SipHash2-4 for a secure PRF
10 * and HalfSipHash1-3/SipHash1-3 for an insecure PRF only suitable for
16 #include <kunit/test.h>
23 /* Test vectors taken from reference source available at:
114 KUNIT_EXPECT_EQ_MSG(test, hash, vector, fmt)
116 static void siphash_test(struct kunit *test) in siphash_test() argument
127 "siphash self-test aligned %u: FAIL", i + 1); in siphash_test()
130 "siphash self-test unaligned %u: FAIL", i + 1); in siphash_test()
133 "hsiphash self-test aligned %u: FAIL", i + 1); in siphash_test()
136 "hsiphash self-test unaligned %u: FAIL", i + 1); in siphash_test()
140 "siphash self-test 1u64: FAIL"); in siphash_test()
144 "siphash self-test 2u64: FAIL"); in siphash_test()
148 "siphash self-test 3u64: FAIL"); in siphash_test()
153 "siphash self-test 4u64: FAIL"); in siphash_test()
156 "siphash self-test 1u32: FAIL"); in siphash_test()
159 "siphash self-test 2u32: FAIL"); in siphash_test()
163 "siphash self-test 3u32: FAIL"); in siphash_test()
167 "siphash self-test 4u32: FAIL"); in siphash_test()
170 "hsiphash self-test 1u32: FAIL"); in siphash_test()
173 "hsiphash self-test 2u32: FAIL"); in siphash_test()
177 "hsiphash self-test 3u32: FAIL"); in siphash_test()
181 "hsiphash self-test 4u32: FAIL"); in siphash_test()
197 MODULE_DESCRIPTION("Test cases for siphash.c");