Skip to content

Commit 571eaed

Browse files
author
Eric Biggers
committed
lib/crypto: tests: Add KUnit tests for SHA-384 and SHA-512
Add KUnit test suites for the SHA-384 and SHA-512 library functions, including the corresponding HMAC support. The core test logic is in the previously-added hash-test-template.h. This commit just adds the actual KUnit suites, and it adds the generated test vectors to the tree so that gen-hash-testvecs.py won't have to be run at build time. Acked-by: Ard Biesheuvel <ardb@kernel.org> Link: https://lore.kernel.org/r/20250709200112.258500-4-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org>
1 parent 4dcf6ca commit 571eaed

6 files changed

Lines changed: 723 additions & 0 deletions

File tree

lib/crypto/tests/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@ config CRYPTO_LIB_SHA256_KUNIT_TEST
1212
KUnit tests for the SHA-224 and SHA-256 cryptographic hash functions
1313
and their corresponding HMACs.
1414

15+
# Option is named *_SHA512_KUNIT_TEST, though both SHA-384 and SHA-512 tests are
16+
# included, for consistency with the naming used elsewhere (e.g. CRYPTO_SHA512).
17+
config CRYPTO_LIB_SHA512_KUNIT_TEST
18+
tristate "KUnit tests for SHA-384 and SHA-512" if !KUNIT_ALL_TESTS
19+
depends on KUNIT
20+
default KUNIT_ALL_TESTS || CRYPTO_SELFTESTS
21+
select CRYPTO_LIB_BENCHMARK_VISIBLE
22+
select CRYPTO_LIB_SHA512
23+
help
24+
KUnit tests for the SHA-384 and SHA-512 cryptographic hash functions
25+
and their corresponding HMACs.
26+
1527
config CRYPTO_LIB_BENCHMARK_VISIBLE
1628
bool
1729

lib/crypto/tests/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0-or-later
22

33
obj-$(CONFIG_CRYPTO_LIB_SHA256_KUNIT_TEST) += sha224_kunit.o sha256_kunit.o
4+
obj-$(CONFIG_CRYPTO_LIB_SHA512_KUNIT_TEST) += sha384_kunit.o sha512_kunit.o

lib/crypto/tests/sha384-testvecs.h

Lines changed: 290 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,290 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
2+
/* This file was generated by: ./scripts/crypto/gen-hash-testvecs.py sha384 */
3+
4+
static const struct {
5+
size_t data_len;
6+
u8 digest[SHA384_DIGEST_SIZE];
7+
} hash_testvecs[] = {
8+
{
9+
.data_len = 0,
10+
.digest = {
11+
0x38, 0xb0, 0x60, 0xa7, 0x51, 0xac, 0x96, 0x38,
12+
0x4c, 0xd9, 0x32, 0x7e, 0xb1, 0xb1, 0xe3, 0x6a,
13+
0x21, 0xfd, 0xb7, 0x11, 0x14, 0xbe, 0x07, 0x43,
14+
0x4c, 0x0c, 0xc7, 0xbf, 0x63, 0xf6, 0xe1, 0xda,
15+
0x27, 0x4e, 0xde, 0xbf, 0xe7, 0x6f, 0x65, 0xfb,
16+
0xd5, 0x1a, 0xd2, 0xf1, 0x48, 0x98, 0xb9, 0x5b,
17+
},
18+
},
19+
{
20+
.data_len = 1,
21+
.digest = {
22+
0x07, 0x34, 0x9d, 0x74, 0x48, 0x76, 0xa5, 0x72,
23+
0x78, 0x02, 0xb8, 0x6e, 0x21, 0x59, 0xb0, 0x75,
24+
0x09, 0x68, 0x11, 0x39, 0x53, 0x61, 0xee, 0x8d,
25+
0xf2, 0x01, 0xf3, 0x90, 0x53, 0x7c, 0xd3, 0xde,
26+
0x13, 0x9f, 0xd2, 0x74, 0x28, 0xfe, 0xe1, 0xc8,
27+
0x2e, 0x95, 0xc6, 0x7d, 0x69, 0x4d, 0x04, 0xc6,
28+
},
29+
},
30+
{
31+
.data_len = 2,
32+
.digest = {
33+
0xc4, 0xef, 0x6e, 0x8c, 0x19, 0x1c, 0xaa, 0x0e,
34+
0x86, 0xf2, 0x68, 0xa1, 0xa0, 0x2d, 0x2e, 0xb2,
35+
0x84, 0xbc, 0x5d, 0x53, 0x31, 0xf8, 0x03, 0x75,
36+
0x56, 0xf4, 0x8b, 0x23, 0x1a, 0x68, 0x15, 0x9a,
37+
0x60, 0xb2, 0xec, 0x05, 0xe1, 0xd4, 0x5e, 0x9e,
38+
0xe8, 0x7c, 0x9d, 0xe4, 0x0f, 0x9c, 0x3a, 0xdd,
39+
},
40+
},
41+
{
42+
.data_len = 3,
43+
.digest = {
44+
0x29, 0xd2, 0x02, 0xa2, 0x77, 0x24, 0xc7, 0xa7,
45+
0x23, 0x0c, 0x3e, 0x30, 0x56, 0x47, 0xdb, 0x75,
46+
0xd4, 0x41, 0xf8, 0xb3, 0x8e, 0x26, 0xf6, 0x92,
47+
0xbc, 0x20, 0x2e, 0x96, 0xcc, 0x81, 0x5f, 0x32,
48+
0x82, 0x60, 0xe2, 0xcf, 0x23, 0xd7, 0x3c, 0x90,
49+
0xb2, 0x56, 0x8f, 0xb6, 0x0f, 0xf0, 0x6b, 0x80,
50+
},
51+
},
52+
{
53+
.data_len = 16,
54+
.digest = {
55+
0x21, 0x4c, 0xac, 0xfe, 0xbd, 0x40, 0x74, 0x1f,
56+
0xa2, 0x2d, 0x2f, 0x35, 0x91, 0xfd, 0xc9, 0x97,
57+
0x88, 0x12, 0x6c, 0x0c, 0x6e, 0xd8, 0x50, 0x0b,
58+
0x4b, 0x2c, 0x89, 0xa6, 0xa6, 0x4a, 0xad, 0xd7,
59+
0x72, 0x62, 0x2c, 0x62, 0x81, 0xcd, 0x24, 0x74,
60+
0xf5, 0x44, 0x05, 0xa0, 0x97, 0xea, 0xf1, 0x78,
61+
},
62+
},
63+
{
64+
.data_len = 32,
65+
.digest = {
66+
0x06, 0x8b, 0x92, 0x9f, 0x8b, 0x64, 0xb2, 0x80,
67+
0xde, 0xcc, 0xde, 0xc3, 0x2f, 0x22, 0x27, 0xe8,
68+
0x3b, 0x6e, 0x16, 0x21, 0x14, 0x81, 0xbe, 0x5b,
69+
0xa7, 0xa7, 0x14, 0x8a, 0x00, 0x8f, 0x0d, 0x38,
70+
0x11, 0x63, 0xe8, 0x3e, 0xb9, 0xf1, 0xcf, 0x87,
71+
0xb1, 0x28, 0xe5, 0xa1, 0x89, 0xa8, 0x7a, 0xde,
72+
},
73+
},
74+
{
75+
.data_len = 48,
76+
.digest = {
77+
0x9e, 0x37, 0x76, 0x62, 0x98, 0x39, 0xbe, 0xfd,
78+
0x2b, 0x91, 0x20, 0x54, 0x8f, 0x21, 0xe7, 0x30,
79+
0x0a, 0x01, 0x7a, 0x65, 0x0b, 0xc9, 0xb3, 0x89,
80+
0x3c, 0xb6, 0xd3, 0xa8, 0xff, 0xc9, 0x1b, 0x5c,
81+
0xd4, 0xac, 0xb4, 0x7e, 0xba, 0x94, 0xc3, 0x8a,
82+
0x26, 0x41, 0xf6, 0xd5, 0xed, 0x6f, 0x27, 0xa7,
83+
},
84+
},
85+
{
86+
.data_len = 49,
87+
.digest = {
88+
0x03, 0x1f, 0xef, 0x5a, 0x16, 0x28, 0x78, 0x10,
89+
0x29, 0xe8, 0xe2, 0xe4, 0x84, 0x36, 0x19, 0x10,
90+
0xaa, 0xea, 0xde, 0x06, 0x39, 0x5f, 0xb2, 0x36,
91+
0xca, 0x24, 0x4f, 0x7b, 0x66, 0xf7, 0xe7, 0x31,
92+
0xf3, 0x9b, 0x74, 0x1e, 0x17, 0x20, 0x88, 0x62,
93+
0x50, 0xeb, 0x5f, 0x9a, 0xa7, 0x2c, 0xf4, 0xc9,
94+
},
95+
},
96+
{
97+
.data_len = 63,
98+
.digest = {
99+
0x10, 0xce, 0xed, 0x26, 0xb8, 0xac, 0xc1, 0x1b,
100+
0xe6, 0xb9, 0xeb, 0x7c, 0xae, 0xcd, 0x55, 0x5a,
101+
0x20, 0x2a, 0x7b, 0x43, 0xe6, 0x3e, 0xf0, 0x3f,
102+
0xd9, 0x2f, 0x8c, 0x52, 0xe2, 0xf0, 0xb6, 0x24,
103+
0x2e, 0xa4, 0xac, 0x24, 0x3a, 0x54, 0x99, 0x71,
104+
0x65, 0xab, 0x97, 0x2d, 0xb6, 0xe6, 0x94, 0x20,
105+
},
106+
},
107+
{
108+
.data_len = 64,
109+
.digest = {
110+
0x24, 0x6d, 0x9f, 0x59, 0x42, 0x36, 0xca, 0x34,
111+
0x36, 0x41, 0xa2, 0xcd, 0x69, 0xdf, 0x3d, 0xcb,
112+
0x64, 0x94, 0x54, 0xb2, 0xed, 0xc1, 0x1c, 0x31,
113+
0xe3, 0x26, 0xcb, 0x71, 0xe6, 0x98, 0xb2, 0x56,
114+
0x74, 0x30, 0xa9, 0x15, 0x98, 0x9d, 0xb3, 0x07,
115+
0xcc, 0xa8, 0xcc, 0x6f, 0x42, 0xb0, 0x9d, 0x2b,
116+
},
117+
},
118+
{
119+
.data_len = 65,
120+
.digest = {
121+
0x85, 0x1f, 0xbc, 0x5e, 0x2a, 0x00, 0x7d, 0xc2,
122+
0x21, 0x4c, 0x28, 0x14, 0xc5, 0xd8, 0x0c, 0xe8,
123+
0x55, 0xa5, 0xa0, 0x77, 0xda, 0x8f, 0xce, 0xd4,
124+
0xf0, 0xcb, 0x30, 0xb8, 0x9c, 0x47, 0xe1, 0x33,
125+
0x92, 0x18, 0xc5, 0x1f, 0xf2, 0xef, 0xb5, 0xe5,
126+
0xbc, 0x63, 0xa6, 0xe5, 0x9a, 0xc9, 0xcc, 0xf1,
127+
},
128+
},
129+
{
130+
.data_len = 127,
131+
.digest = {
132+
0x26, 0xd2, 0x4c, 0xb6, 0xce, 0xd8, 0x22, 0x2b,
133+
0x44, 0x10, 0x6f, 0x59, 0xf7, 0x0d, 0xb9, 0x3f,
134+
0x7d, 0x29, 0x75, 0xf1, 0x71, 0xb2, 0x71, 0x23,
135+
0xef, 0x68, 0xb7, 0x25, 0xae, 0xb8, 0x45, 0xf8,
136+
0xa3, 0xb2, 0x2d, 0x7a, 0x83, 0x0a, 0x05, 0x61,
137+
0xbc, 0x73, 0xf1, 0xf9, 0xba, 0xfb, 0x3d, 0xc2,
138+
},
139+
},
140+
{
141+
.data_len = 128,
142+
.digest = {
143+
0x7c, 0xe5, 0x7f, 0x5e, 0xea, 0xd9, 0x7e, 0x54,
144+
0x14, 0x30, 0x6f, 0x37, 0x02, 0x71, 0x0f, 0xf1,
145+
0x14, 0x16, 0xfa, 0xeb, 0x6e, 0x1e, 0xf0, 0xbe,
146+
0x10, 0xed, 0x01, 0xbf, 0xa0, 0x9d, 0xcb, 0x07,
147+
0x5f, 0x8b, 0x7f, 0x44, 0xe1, 0xd9, 0x13, 0xf0,
148+
0x29, 0xa2, 0x54, 0x32, 0xd9, 0xb0, 0x69, 0x69,
149+
},
150+
},
151+
{
152+
.data_len = 129,
153+
.digest = {
154+
0xc5, 0x54, 0x1f, 0xcb, 0x9d, 0x8f, 0xdf, 0xbf,
155+
0xab, 0x55, 0x92, 0x1d, 0x3b, 0x93, 0x79, 0x26,
156+
0xdf, 0xba, 0x9a, 0x28, 0xff, 0xa0, 0x6c, 0xae,
157+
0x7b, 0x53, 0x8d, 0xfa, 0xef, 0x35, 0x88, 0x19,
158+
0x16, 0xb8, 0x72, 0x86, 0x76, 0x2a, 0xf5, 0xe6,
159+
0xec, 0xb2, 0xd7, 0xd4, 0xbe, 0x1a, 0xe4, 0x9f,
160+
},
161+
},
162+
{
163+
.data_len = 256,
164+
.digest = {
165+
0x74, 0x9d, 0x77, 0xfb, 0xe8, 0x0f, 0x0c, 0x2d,
166+
0x86, 0x0d, 0x49, 0xea, 0x2b, 0xd0, 0x13, 0xd1,
167+
0xe8, 0xb8, 0xe1, 0xa3, 0x7b, 0x48, 0xab, 0x6a,
168+
0x21, 0x2b, 0x4c, 0x48, 0x32, 0xb5, 0xdc, 0x31,
169+
0x7f, 0xd0, 0x32, 0x67, 0x9a, 0xc0, 0x85, 0x53,
170+
0xef, 0xe9, 0xfb, 0xe1, 0x8b, 0xd8, 0xcc, 0xc2,
171+
},
172+
},
173+
{
174+
.data_len = 511,
175+
.digest = {
176+
0x7b, 0xa9, 0xde, 0xa3, 0x07, 0x5c, 0x4c, 0xaa,
177+
0x31, 0xc6, 0x9e, 0x55, 0xd4, 0x3f, 0x52, 0xdd,
178+
0xde, 0x36, 0x70, 0x96, 0x59, 0x6e, 0x90, 0x78,
179+
0x4c, 0x6a, 0x27, 0xde, 0x83, 0x84, 0xc3, 0x35,
180+
0x53, 0x76, 0x1d, 0xbf, 0x83, 0x64, 0xcf, 0xf2,
181+
0xb0, 0x3e, 0x07, 0x27, 0xe4, 0x25, 0x6c, 0x56,
182+
},
183+
},
184+
{
185+
.data_len = 513,
186+
.digest = {
187+
0x53, 0x50, 0xf7, 0x3b, 0x86, 0x1d, 0x7a, 0xe2,
188+
0x5d, 0x9b, 0x71, 0xfa, 0x25, 0x23, 0x5a, 0xfe,
189+
0x8c, 0xb9, 0xac, 0x8a, 0x9d, 0x6c, 0x99, 0xbc,
190+
0x01, 0x9e, 0xa0, 0xd6, 0x3c, 0x03, 0x46, 0x21,
191+
0xb6, 0xd0, 0xb0, 0xb3, 0x23, 0x23, 0x58, 0xf1,
192+
0xea, 0x4e, 0xf2, 0x1a, 0x2f, 0x14, 0x2b, 0x5a,
193+
},
194+
},
195+
{
196+
.data_len = 1000,
197+
.digest = {
198+
0x06, 0x03, 0xb3, 0xba, 0x14, 0xe0, 0x28, 0x07,
199+
0xd5, 0x15, 0x97, 0x1f, 0x87, 0xef, 0x80, 0xba,
200+
0x48, 0x03, 0xb6, 0xc5, 0x47, 0xca, 0x8c, 0x95,
201+
0xed, 0x95, 0xfd, 0x27, 0xb6, 0x83, 0xda, 0x6d,
202+
0xa7, 0xb2, 0x1a, 0xd2, 0xb5, 0x89, 0xbb, 0xb4,
203+
0x00, 0xbc, 0x86, 0x54, 0x7d, 0x5a, 0x91, 0x63,
204+
},
205+
},
206+
{
207+
.data_len = 3333,
208+
.digest = {
209+
0xd3, 0xe0, 0x6e, 0x7d, 0x80, 0x08, 0x53, 0x07,
210+
0x8c, 0x0f, 0xc2, 0xce, 0x9f, 0x09, 0x86, 0x31,
211+
0x28, 0x24, 0x3c, 0x3e, 0x2d, 0x36, 0xb4, 0x28,
212+
0xc7, 0x1b, 0x70, 0xf9, 0x35, 0x9b, 0x10, 0xfa,
213+
0xc8, 0x5e, 0x2b, 0x32, 0x7f, 0x65, 0xd2, 0x68,
214+
0xb2, 0x84, 0x90, 0xf6, 0xc8, 0x6e, 0xb8, 0xdb,
215+
},
216+
},
217+
{
218+
.data_len = 4096,
219+
.digest = {
220+
0x39, 0xeb, 0xc4, 0xb3, 0x08, 0xe2, 0xdd, 0xf3,
221+
0x9f, 0x5e, 0x44, 0x93, 0x63, 0x8b, 0x39, 0x57,
222+
0xd7, 0xe8, 0x7e, 0x3d, 0x74, 0xf8, 0xf6, 0xab,
223+
0xfe, 0x74, 0x51, 0xe4, 0x1b, 0x4a, 0x23, 0xbc,
224+
0x69, 0xfc, 0xbb, 0xa7, 0x71, 0xa7, 0x86, 0x24,
225+
0xcc, 0x85, 0x70, 0xf2, 0x31, 0x0d, 0x47, 0xc0,
226+
},
227+
},
228+
{
229+
.data_len = 4128,
230+
.digest = {
231+
0x23, 0xc3, 0x97, 0x06, 0x79, 0xbe, 0x8a, 0xe9,
232+
0x1f, 0x1a, 0x43, 0xad, 0xe6, 0x76, 0x23, 0x13,
233+
0x64, 0xae, 0xda, 0xe7, 0x8b, 0x88, 0x96, 0xb6,
234+
0xa9, 0x1a, 0xb7, 0x80, 0x8e, 0x1c, 0x94, 0x98,
235+
0x09, 0x08, 0xdb, 0x8e, 0x4d, 0x0a, 0x09, 0x65,
236+
0xe5, 0x21, 0x1c, 0xd9, 0xab, 0x64, 0xbb, 0xea,
237+
},
238+
},
239+
{
240+
.data_len = 4160,
241+
.digest = {
242+
0x4f, 0x4a, 0x88, 0x9f, 0x40, 0x89, 0xfe, 0xb6,
243+
0xda, 0x9d, 0xcd, 0xa5, 0x27, 0xd2, 0x29, 0x71,
244+
0x58, 0x60, 0xd4, 0x55, 0xfe, 0x92, 0xcd, 0x51,
245+
0x8b, 0xec, 0x3b, 0xd3, 0xd1, 0x3e, 0x8d, 0x36,
246+
0x7b, 0xb1, 0x41, 0xef, 0xec, 0x9d, 0xdf, 0xcd,
247+
0x4e, 0xde, 0x5a, 0xe5, 0xe5, 0x16, 0x14, 0x54,
248+
},
249+
},
250+
{
251+
.data_len = 4224,
252+
.digest = {
253+
0xb5, 0xa5, 0x3e, 0x86, 0x39, 0x20, 0x49, 0x4c,
254+
0xcd, 0xb6, 0xdd, 0x03, 0xfe, 0x36, 0x6e, 0xa6,
255+
0xfc, 0xff, 0x19, 0x33, 0x0c, 0x52, 0xea, 0x37,
256+
0x94, 0xda, 0x5b, 0x27, 0xd1, 0x99, 0x5a, 0x89,
257+
0x40, 0x78, 0xfa, 0x96, 0xb9, 0x2f, 0xa0, 0x48,
258+
0xc9, 0xf8, 0x5c, 0xf0, 0x95, 0xf4, 0xea, 0x61,
259+
},
260+
},
261+
{
262+
.data_len = 16384,
263+
.digest = {
264+
0x6f, 0x48, 0x6f, 0x21, 0xb9, 0xc1, 0xcc, 0x92,
265+
0x4e, 0xed, 0x6b, 0xef, 0x51, 0x88, 0xdf, 0xfd,
266+
0xcb, 0x3d, 0x44, 0x9c, 0x37, 0x85, 0xb4, 0xc5,
267+
0xeb, 0x60, 0x55, 0x58, 0x01, 0x47, 0xbf, 0x75,
268+
0x9b, 0xa8, 0x82, 0x8c, 0xec, 0xe8, 0x0e, 0x58,
269+
0xc1, 0x26, 0xa2, 0x45, 0x87, 0x3e, 0xfb, 0x8d,
270+
},
271+
},
272+
};
273+
274+
static const u8 hash_testvec_consolidated[SHA384_DIGEST_SIZE] = {
275+
0xfc, 0xcb, 0xe6, 0x42, 0xf0, 0x9e, 0x2b, 0x77,
276+
0x7b, 0x62, 0xe8, 0x70, 0x86, 0xbf, 0xaf, 0x3c,
277+
0xbb, 0x02, 0xd9, 0x86, 0xdc, 0xba, 0xd3, 0xa4,
278+
0x0d, 0x8d, 0xb3, 0x2d, 0x0b, 0xa3, 0x84, 0x04,
279+
0x7c, 0x16, 0x37, 0xaf, 0xba, 0x1e, 0xd4, 0x2f,
280+
0x4c, 0x57, 0x55, 0x86, 0x52, 0x47, 0x9a, 0xec,
281+
};
282+
283+
static const u8 hmac_testvec_consolidated[SHA384_DIGEST_SIZE] = {
284+
0x82, 0xcf, 0x7d, 0x80, 0x71, 0xdb, 0x91, 0x09,
285+
0x67, 0xe8, 0x44, 0x4a, 0x0d, 0x03, 0xb1, 0xf9,
286+
0x62, 0xde, 0x4e, 0xbb, 0x1f, 0x41, 0xcd, 0x62,
287+
0x39, 0x6b, 0x2d, 0x44, 0x0e, 0xde, 0x98, 0x73,
288+
0xdd, 0xeb, 0x9d, 0x53, 0xfb, 0xee, 0xd1, 0xc3,
289+
0x96, 0xdb, 0xfc, 0x2a, 0x38, 0x90, 0x02, 0x53,
290+
};

lib/crypto/tests/sha384_kunit.c

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
2+
/*
3+
* Copyright 2025 Google LLC
4+
*/
5+
#include <crypto/sha2.h>
6+
#include "sha384-testvecs.h"
7+
8+
#define HASH sha384
9+
#define HASH_CTX sha384_ctx
10+
#define HASH_SIZE SHA384_DIGEST_SIZE
11+
#define HASH_INIT sha384_init
12+
#define HASH_UPDATE sha384_update
13+
#define HASH_FINAL sha384_final
14+
#define HMAC_KEY hmac_sha384_key
15+
#define HMAC_CTX hmac_sha384_ctx
16+
#define HMAC_PREPAREKEY hmac_sha384_preparekey
17+
#define HMAC_INIT hmac_sha384_init
18+
#define HMAC_UPDATE hmac_sha384_update
19+
#define HMAC_FINAL hmac_sha384_final
20+
#define HMAC hmac_sha384
21+
#define HMAC_USINGRAWKEY hmac_sha384_usingrawkey
22+
#include "hash-test-template.h"
23+
24+
static struct kunit_case hash_test_cases[] = {
25+
HASH_KUNIT_CASES,
26+
KUNIT_CASE(benchmark_hash),
27+
{},
28+
};
29+
30+
static struct kunit_suite hash_test_suite = {
31+
.name = "sha384",
32+
.test_cases = hash_test_cases,
33+
.suite_init = hash_suite_init,
34+
.suite_exit = hash_suite_exit,
35+
};
36+
kunit_test_suite(hash_test_suite);
37+
38+
MODULE_DESCRIPTION("KUnit tests and benchmark for SHA-384 and HMAC-SHA384");
39+
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)