xref: /linux/lib/crypto/fips-aes.h (revision e967fa98f7618e98b50b3d49a1768deba8981a98)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /* This file was generated by: gen-fips-testvecs.py */
3 /* clang-format off */
4 
5 #include <linux/fips.h>
6 
7 static const u8 fips_test_data[] __initconst __maybe_unused = {
8 	0x66, 0x69, 0x70, 0x73, 0x20, 0x74, 0x65, 0x73,
9 	0x74, 0x20, 0x64, 0x61, 0x74, 0x61, 0x00, 0x00,
10 };
11 
12 static const u8 fips_test_iv[] __initconst __maybe_unused = {
13 	0x66, 0x69, 0x70, 0x73, 0x20, 0x74, 0x65, 0x73,
14 	0x74, 0x20, 0x69, 0x76, 0x00, 0x00, 0x00, 0x00,
15 };
16 
17 static const u8 fips_test_key[] __initconst __maybe_unused = {
18 	0x66, 0x69, 0x70, 0x73, 0x20, 0x74, 0x65, 0x73,
19 	0x74, 0x20, 0x6b, 0x65, 0x79, 0x00, 0x00, 0x00,
20 };
21 
22 static const u8 fips_test_xts_key[] __initconst __maybe_unused = {
23 	0x6b, 0x65, 0x79, 0x31, 0x00, 0x00, 0x00, 0x00,
24 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
25 	0x6b, 0x65, 0x79, 0x32, 0x00, 0x00, 0x00, 0x00,
26 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
27 };
28 
29 static const u8 fips_test_aes_cmac_value[] __initconst __maybe_unused = {
30 	0xc5, 0x88, 0x28, 0x55, 0xd7, 0x2c, 0x00, 0xb6,
31 	0x6a, 0xa7, 0xfc, 0x82, 0x90, 0x81, 0xcf, 0x18,
32 };
33 
34 static const u8 fips_test_aes_ecb_ctext[] __initconst __maybe_unused = {
35 	0x47, 0x76, 0x48, 0xaf, 0x1b, 0xd8, 0x4c, 0xe6,
36 	0xb5, 0xa7, 0x20, 0x8d, 0x64, 0x88, 0xbc, 0x3f,
37 };
38 
39 static const u8 fips_test_aes_cbc_ctext[] __initconst __maybe_unused = {
40 	0xc8, 0x7d, 0x7c, 0x25, 0xba, 0x15, 0xf7, 0xe1,
41 	0x08, 0xa0, 0xd0, 0x7a, 0x20, 0x37, 0xaf, 0x5e,
42 };
43 
44 static const u8 fips_test_aes_cbc_cts_ctext[] __initconst __maybe_unused = {
45 	0x36, 0x8e, 0x37, 0xb4, 0x78, 0xe2, 0x88, 0x59,
46 	0xd5, 0xe8, 0x17, 0x65, 0x5c, 0xa1, 0x25, 0xe6,
47 	0xc8, 0x7d, 0x7c, 0x25, 0xba, 0x15, 0xf7, 0xe1,
48 	0x08, 0xa0, 0xd0, 0x7a, 0x20, 0x37, 0xaf, 0x5e,
49 };
50 
51 static const u8 fips_test_aes_ctr_ctext[] __initconst __maybe_unused = {
52 	0x95, 0xf4, 0xf4, 0x7a, 0xc8, 0xa2, 0x53, 0x73,
53 	0x53, 0x8f, 0x95, 0xfc, 0x18, 0xfe, 0x58, 0x2f,
54 };
55 
56 static const u8 fips_test_aes_xts_ctext[] __initconst __maybe_unused = {
57 	0xd4, 0x51, 0x7f, 0x01, 0x14, 0x91, 0x16, 0x29,
58 	0x26, 0xbe, 0xec, 0x9b, 0x90, 0xed, 0x59, 0x30,
59 };
60