xref: /linux/lib/crypto/fips-sha.h (revision fc8c78bce3335860ff4ae9fcfd3b2eb1f674efbb)
1*60e9a0f5SEric Biggers /* SPDX-License-Identifier: GPL-2.0-or-later */
2*60e9a0f5SEric Biggers /* This file was generated by: gen-fips-testvecs.py */
3*60e9a0f5SEric Biggers /* clang-format off */
4*60e9a0f5SEric Biggers 
5*60e9a0f5SEric Biggers #include <linux/fips.h>
6*60e9a0f5SEric Biggers 
7*60e9a0f5SEric Biggers static const u8 fips_test_data[] __initconst __maybe_unused = {
8*60e9a0f5SEric Biggers 	0x66, 0x69, 0x70, 0x73, 0x20, 0x74, 0x65, 0x73,
9*60e9a0f5SEric Biggers 	0x74, 0x20, 0x64, 0x61, 0x74, 0x61, 0x00, 0x00,
10*60e9a0f5SEric Biggers };
11*60e9a0f5SEric Biggers 
12*60e9a0f5SEric Biggers static const u8 fips_test_key[] __initconst __maybe_unused = {
13*60e9a0f5SEric Biggers 	0x66, 0x69, 0x70, 0x73, 0x20, 0x74, 0x65, 0x73,
14*60e9a0f5SEric Biggers 	0x74, 0x20, 0x6b, 0x65, 0x79, 0x00, 0x00, 0x00,
15*60e9a0f5SEric Biggers };
16*60e9a0f5SEric Biggers 
17*60e9a0f5SEric Biggers static const u8 fips_test_hmac_sha1_value[] __initconst __maybe_unused = {
18*60e9a0f5SEric Biggers 	0x29, 0xa9, 0x88, 0xb8, 0x5c, 0xb4, 0xaf, 0x4b,
19*60e9a0f5SEric Biggers 	0x97, 0x2a, 0xee, 0x87, 0x5b, 0x0a, 0x02, 0x55,
20*60e9a0f5SEric Biggers 	0x99, 0xbf, 0x86, 0x78,
21*60e9a0f5SEric Biggers };
22*60e9a0f5SEric Biggers 
23*60e9a0f5SEric Biggers static const u8 fips_test_hmac_sha256_value[] __initconst __maybe_unused = {
24*60e9a0f5SEric Biggers 	0x59, 0x25, 0x85, 0xcc, 0x40, 0xe9, 0x64, 0x2f,
25*60e9a0f5SEric Biggers 	0xe9, 0xbf, 0x82, 0xb7, 0xd3, 0x15, 0x3d, 0x43,
26*60e9a0f5SEric Biggers 	0x22, 0x0b, 0x4c, 0x00, 0x90, 0x14, 0x25, 0xcf,
27*60e9a0f5SEric Biggers 	0x9e, 0x13, 0x2b, 0xc2, 0x30, 0xe6, 0xe8, 0x93,
28*60e9a0f5SEric Biggers };
29*60e9a0f5SEric Biggers 
30*60e9a0f5SEric Biggers static const u8 fips_test_hmac_sha512_value[] __initconst __maybe_unused = {
31*60e9a0f5SEric Biggers 	0x6b, 0xea, 0x5d, 0x27, 0x49, 0x5b, 0x3f, 0xea,
32*60e9a0f5SEric Biggers 	0xde, 0x2d, 0xfa, 0x32, 0x75, 0xdb, 0x77, 0xc8,
33*60e9a0f5SEric Biggers 	0x26, 0xe9, 0x4e, 0x95, 0x4d, 0xad, 0x88, 0x02,
34*60e9a0f5SEric Biggers 	0x87, 0xf9, 0x52, 0x0a, 0xd1, 0x92, 0x80, 0x1d,
35*60e9a0f5SEric Biggers 	0x92, 0x7e, 0x3c, 0xbd, 0xb1, 0x3c, 0x49, 0x98,
36*60e9a0f5SEric Biggers 	0x44, 0x9c, 0x8f, 0xee, 0x3f, 0x02, 0x71, 0x51,
37*60e9a0f5SEric Biggers 	0x57, 0x0b, 0x15, 0x38, 0x95, 0xd8, 0xa3, 0x81,
38*60e9a0f5SEric Biggers 	0xba, 0xb3, 0x15, 0x37, 0x5c, 0x6d, 0x57, 0x2b,
39*60e9a0f5SEric Biggers };
40*60e9a0f5SEric Biggers 
41*60e9a0f5SEric Biggers static const u8 fips_test_sha3_256_value[] __initconst __maybe_unused = {
42*60e9a0f5SEric Biggers 	0x77, 0xc4, 0x8b, 0x69, 0x70, 0x5f, 0x0a, 0xb1,
43*60e9a0f5SEric Biggers 	0xb1, 0xa5, 0x82, 0x0a, 0x22, 0x2b, 0x49, 0x31,
44*60e9a0f5SEric Biggers 	0xba, 0x9b, 0xb6, 0xaa, 0x32, 0xa7, 0x97, 0x00,
45*60e9a0f5SEric Biggers 	0x98, 0xdb, 0xff, 0xe7, 0xc6, 0xde, 0xb5, 0x82,
46*60e9a0f5SEric Biggers };
47