1*8f599c8aSmlelstv /* $NetBSD: t_cgd_aes.c,v 1.8 2020/08/15 10:03:10 mlelstv Exp $ */
2838eb243Salnsn /*-
3838eb243Salnsn * Copyright (c) 2016 The NetBSD Foundation, Inc.
4838eb243Salnsn * Copyright (c) 2007 The Institute of Electrical and Electronics Engineers, Inc
5838eb243Salnsn * All rights reserved.
6838eb243Salnsn *
7838eb243Salnsn * This code is derived from software contributed to The NetBSD Foundation
8838eb243Salnsn * by Alexander Nasonov.
9838eb243Salnsn *
10838eb243Salnsn * Redistribution and use in source and binary forms, with or without
11838eb243Salnsn * modification, are permitted provided that the following conditions
12838eb243Salnsn * are met:
13838eb243Salnsn *
14838eb243Salnsn * 1. Redistributions of source code must retain the above copyright
15838eb243Salnsn * notice, this list of conditions and the following disclaimer.
16838eb243Salnsn * 2. Redistributions in binary form must reproduce the above copyright
17838eb243Salnsn * notice, this list of conditions and the following disclaimer in
18838eb243Salnsn * the documentation and/or other materials provided with the
19838eb243Salnsn * distribution.
20838eb243Salnsn *
21838eb243Salnsn * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22838eb243Salnsn * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23838eb243Salnsn * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24838eb243Salnsn * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25838eb243Salnsn * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26838eb243Salnsn * INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING,
27838eb243Salnsn * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28838eb243Salnsn * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
29838eb243Salnsn * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30838eb243Salnsn * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
31838eb243Salnsn * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32838eb243Salnsn * SUCH DAMAGE.
33838eb243Salnsn */
34838eb243Salnsn
35838eb243Salnsn #include <sys/types.h>
36838eb243Salnsn #include <sys/ioctl.h>
37838eb243Salnsn #include <sys/sysctl.h>
38838eb243Salnsn
39838eb243Salnsn #include <atf-c.h>
40838eb243Salnsn #include <fcntl.h>
41838eb243Salnsn #include <stdio.h>
42838eb243Salnsn #include <stdlib.h>
43838eb243Salnsn #include <string.h>
44838eb243Salnsn #include <unistd.h>
45838eb243Salnsn #include <util.h>
46838eb243Salnsn
47838eb243Salnsn #include <dev/cgdvar.h>
48838eb243Salnsn
49838eb243Salnsn #include <rump/rump.h>
50838eb243Salnsn #include <rump/rump_syscalls.h>
51838eb243Salnsn
52c54cb811Schristos #include "h_macros.h"
53838eb243Salnsn
54838eb243Salnsn #define SECSIZE 512
55838eb243Salnsn
56838eb243Salnsn struct testvec {
57838eb243Salnsn unsigned int blkno;
58838eb243Salnsn const uint8_t *ptxt; /* PlainText */
59838eb243Salnsn const uint8_t *ctxt; /* CipherText */
60838eb243Salnsn };
61838eb243Salnsn
62838eb243Salnsn /*
63911f4379Salnsn * 128 bits CBC key, NUL terminated.
64911f4379Salnsn */
65911f4379Salnsn static const char aes_cbc_128_key[17] = {
66911f4379Salnsn 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, /* 01234567 */
67911f4379Salnsn 0x38, 0x39, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, /* 89ABCDEF */
68911f4379Salnsn 0
69911f4379Salnsn };
70911f4379Salnsn
71911f4379Salnsn /*
72911f4379Salnsn * 192 bits CBC key, NUL terminated.
73911f4379Salnsn */
74911f4379Salnsn static const char aes_cbc_192_key[25] = {
75911f4379Salnsn 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, /* ABCDEFGH */
76911f4379Salnsn 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x50, /* IJKLMNOP */
77911f4379Salnsn 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, /* QRSTUVWX */
78911f4379Salnsn 0
79911f4379Salnsn };
80911f4379Salnsn
81911f4379Salnsn /*
82911f4379Salnsn * 256 bits CBC key, NUL terminated.
83911f4379Salnsn */
84911f4379Salnsn static const char aes_cbc_256_key[33] = {
85911f4379Salnsn 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, /* 01234567 */
86911f4379Salnsn 0x38, 0x39, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, /* 89ABCDEF */
87911f4379Salnsn 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, /* 01234567 */
88911f4379Salnsn 0x38, 0x39, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, /* 89abcdef */
89911f4379Salnsn 0
90911f4379Salnsn };
91911f4379Salnsn
92*8f599c8aSmlelstv static const uint8_t aes_cbc_ptxt[SECSIZE] __aligned(4) =
93911f4379Salnsn " abcdefghijklmnop"
94911f4379Salnsn " abcdefghijklmnop"
95911f4379Salnsn " abcdefghijklmnop"
96911f4379Salnsn " abcdefghijklmnop"
97911f4379Salnsn " abcdefghijklmnop"
98911f4379Salnsn " abcdefghijklmnop"
99911f4379Salnsn " abcdefghijklmnop"
100911f4379Salnsn " abcdefghijklmnop"
101911f4379Salnsn " abcdefghijklmnop"
102911f4379Salnsn " abcdefghijklmnop"
103911f4379Salnsn " abcdefghijklmnop"
104911f4379Salnsn " abcdefghijklmnop"
105911f4379Salnsn " abcdefghijklmnop"
106911f4379Salnsn " abcdefghijklmnop"
107911f4379Salnsn " abcdefghijklmnop"
108911f4379Salnsn " abcdefghijklmnop";
109911f4379Salnsn
110911f4379Salnsn /*
111911f4379Salnsn * IV method encblkno1, blkno 0.
112911f4379Salnsn */
113911f4379Salnsn static const uint8_t aes_cbc_128_encblkno1_vec0_ctxt[SECSIZE] = {
114911f4379Salnsn 0x1e, 0x95, 0x12, 0x15, 0xf6, 0xe0, 0xa7, 0x56,
115911f4379Salnsn 0x95, 0xa0, 0xa7, 0x35, 0x77, 0xf4, 0xdd, 0xdc,
116911f4379Salnsn 0x37, 0xc0, 0x28, 0x20, 0x00, 0x79, 0xa0, 0x35,
117911f4379Salnsn 0xe0, 0x83, 0x23, 0x95, 0x4e, 0xea, 0x8d, 0xa2,
118911f4379Salnsn 0x11, 0xbf, 0x9a, 0xd5, 0x21, 0x1e, 0x15, 0xb9,
119911f4379Salnsn 0xd1, 0x2e, 0xd2, 0xd9, 0xa5, 0xcc, 0x26, 0x75,
120911f4379Salnsn 0xba, 0x3e, 0x30, 0x11, 0xb2, 0x40, 0xdd, 0x1d,
121911f4379Salnsn 0x07, 0x3b, 0xe6, 0x00, 0xa7, 0x31, 0x9e, 0x58,
122911f4379Salnsn 0x41, 0xf3, 0x02, 0xf5, 0xad, 0x35, 0x79, 0x9a,
123911f4379Salnsn 0x9e, 0x03, 0xc8, 0x7a, 0x9d, 0x1d, 0x58, 0x9f,
124911f4379Salnsn 0x98, 0x67, 0xe2, 0x49, 0x81, 0x0c, 0x23, 0x90,
125911f4379Salnsn 0xd8, 0xc6, 0xf0, 0xc5, 0x73, 0x46, 0xd5, 0x14,
126911f4379Salnsn 0x1d, 0x78, 0x24, 0x7c, 0x9f, 0x5c, 0x8c, 0xe6,
127911f4379Salnsn 0x5d, 0x85, 0x7a, 0x5f, 0x76, 0xcc, 0xd8, 0xe9,
128911f4379Salnsn 0x03, 0xff, 0xfd, 0xd4, 0x12, 0x3f, 0xcb, 0xb0,
129911f4379Salnsn 0xfe, 0xfd, 0x86, 0x00, 0x0c, 0xe3, 0xdd, 0xa6,
130911f4379Salnsn 0x89, 0x92, 0xfe, 0xc8, 0x07, 0x5a, 0x94, 0x55,
131911f4379Salnsn 0x75, 0xae, 0x68, 0x47, 0xba, 0x84, 0x75, 0x58,
132911f4379Salnsn 0x33, 0x30, 0x2c, 0x16, 0x5b, 0xe9, 0x3f, 0x2a,
133911f4379Salnsn 0x09, 0xf9, 0x69, 0x23, 0x77, 0xd7, 0x2b, 0x95,
134911f4379Salnsn 0x4b, 0x78, 0x59, 0xcc, 0xfa, 0xf5, 0x79, 0xd2,
135911f4379Salnsn 0x05, 0x87, 0x66, 0x57, 0x93, 0xbf, 0x05, 0x90,
136911f4379Salnsn 0x4d, 0x6d, 0xd2, 0x72, 0x92, 0x24, 0xec, 0x14,
137911f4379Salnsn 0xe7, 0xbf, 0x82, 0x57, 0xbb, 0x14, 0x51, 0xe6,
138911f4379Salnsn 0xce, 0x3f, 0xa1, 0xfc, 0x63, 0x75, 0xee, 0xde,
139911f4379Salnsn 0xf9, 0x31, 0xd3, 0xa0, 0x07, 0xcd, 0x4d, 0x8f,
140911f4379Salnsn 0x83, 0x7d, 0x65, 0xe1, 0xc6, 0x60, 0x9e, 0x5c,
141911f4379Salnsn 0x51, 0x76, 0xfa, 0x64, 0xdf, 0xdc, 0xaf, 0x38,
142911f4379Salnsn 0xee, 0xe9, 0x8f, 0x4b, 0xa0, 0x3a, 0x21, 0xdf,
143911f4379Salnsn 0x58, 0x3b, 0x73, 0xf5, 0x30, 0xbb, 0x29, 0xe0,
144911f4379Salnsn 0xff, 0x60, 0xf0, 0x05, 0x5e, 0x37, 0xbc, 0x78,
145911f4379Salnsn 0x95, 0x3f, 0xa8, 0xd4, 0xb4, 0x82, 0x0d, 0xe1,
146911f4379Salnsn 0x10, 0xe3, 0xa7, 0x61, 0x37, 0x58, 0x28, 0x14,
147911f4379Salnsn 0x22, 0x57, 0x32, 0x28, 0x80, 0x98, 0x3e, 0x5f,
148911f4379Salnsn 0x71, 0xcf, 0x34, 0xb8, 0x6d, 0x6b, 0xc0, 0x23,
149911f4379Salnsn 0xc1, 0x9e, 0x58, 0x4f, 0xd5, 0xa4, 0x14, 0x03,
150911f4379Salnsn 0x2a, 0xed, 0xc4, 0xa7, 0x77, 0x7c, 0x4f, 0x94,
151911f4379Salnsn 0x91, 0x1d, 0x47, 0x34, 0x82, 0xe8, 0x9d, 0x32,
152911f4379Salnsn 0x5c, 0xc7, 0x38, 0xe9, 0x92, 0xcd, 0x35, 0xfd,
153911f4379Salnsn 0x1c, 0xcc, 0x3c, 0x28, 0x75, 0x6f, 0xff, 0xd5,
154911f4379Salnsn 0xe8, 0xbf, 0x90, 0x92, 0x34, 0x13, 0x11, 0x89,
155911f4379Salnsn 0xe0, 0xa2, 0x25, 0xeb, 0x82, 0x63, 0x31, 0x80,
156911f4379Salnsn 0x50, 0x6c, 0x99, 0xaa, 0x97, 0x0e, 0x59, 0x45,
157911f4379Salnsn 0x64, 0xb8, 0x77, 0x78, 0x6b, 0x24, 0xac, 0xc0,
158911f4379Salnsn 0xc9, 0xa9, 0xbc, 0x13, 0xd1, 0x5e, 0x50, 0x9a,
159911f4379Salnsn 0x91, 0x1a, 0x08, 0xf7, 0xc5, 0x18, 0x9f, 0x87,
160911f4379Salnsn 0x97, 0x9c, 0x0a, 0x27, 0xf1, 0x66, 0xf8, 0x09,
161911f4379Salnsn 0x52, 0x09, 0x41, 0x07, 0xc1, 0xa1, 0x91, 0xa4,
162911f4379Salnsn 0x59, 0x09, 0x75, 0x57, 0x5b, 0x53, 0x79, 0x58,
163911f4379Salnsn 0xa2, 0x9e, 0x49, 0xa2, 0x5e, 0xf7, 0x28, 0x1c,
164911f4379Salnsn 0x43, 0xa6, 0xcb, 0x88, 0x46, 0x84, 0xc9, 0x7f,
165911f4379Salnsn 0x84, 0xdb, 0x45, 0x0c, 0xb3, 0x7f, 0x01, 0x40,
166911f4379Salnsn 0x71, 0x3e, 0x48, 0x12, 0x1f, 0xbc, 0x1e, 0xdf,
167911f4379Salnsn 0x41, 0x50, 0xb2, 0x11, 0x67, 0x83, 0x19, 0x04,
168911f4379Salnsn 0x0e, 0x21, 0xd5, 0xf2, 0x54, 0x99, 0xfb, 0x47,
169911f4379Salnsn 0xf2, 0x5e, 0x02, 0x4b, 0x61, 0x6d, 0xef, 0x78,
170911f4379Salnsn 0x29, 0xe4, 0x3a, 0x56, 0x14, 0x20, 0x6f, 0x70,
171911f4379Salnsn 0x82, 0xea, 0x5d, 0xbc, 0x48, 0x89, 0x34, 0x69,
172911f4379Salnsn 0xdb, 0x4a, 0x06, 0xa7, 0xd6, 0xc7, 0xb7, 0x06,
173911f4379Salnsn 0x8e, 0x64, 0x21, 0x3e, 0xa6, 0x32, 0x61, 0x59,
174911f4379Salnsn 0x03, 0xea, 0xc3, 0x71, 0xf0, 0x26, 0x02, 0xe0,
175911f4379Salnsn 0x71, 0x95, 0x38, 0x11, 0x32, 0xe6, 0x3b, 0x25,
176911f4379Salnsn 0x53, 0x14, 0x24, 0x34, 0xe8, 0x8c, 0xa8, 0xef,
177911f4379Salnsn 0x52, 0xfe, 0x06, 0x2c, 0x20, 0x88, 0x4f, 0xa6,
178911f4379Salnsn };
179911f4379Salnsn
180911f4379Salnsn /*
181911f4379Salnsn * IV method encblkno1, blkno 1.
182911f4379Salnsn */
183911f4379Salnsn static const uint8_t aes_cbc_128_encblkno1_vec1_ctxt[SECSIZE] = {
184911f4379Salnsn 0x2f, 0x69, 0x3e, 0x95, 0x87, 0x91, 0x99, 0xd4,
185911f4379Salnsn 0xd9, 0x5d, 0xf2, 0x52, 0x32, 0x54, 0x2a, 0x80,
186911f4379Salnsn 0xa0, 0x77, 0x6e, 0x73, 0x15, 0xb4, 0xc9, 0x13,
187911f4379Salnsn 0x85, 0xed, 0x79, 0x9b, 0x84, 0x0a, 0x7e, 0xdb,
188911f4379Salnsn 0xee, 0x09, 0x78, 0x11, 0x28, 0xd5, 0x26, 0xec,
189911f4379Salnsn 0x1d, 0x52, 0xba, 0x33, 0x26, 0xeb, 0x91, 0xc6,
190911f4379Salnsn 0x4b, 0xf0, 0x38, 0xdf, 0x9f, 0x9d, 0x6c, 0xd8,
191911f4379Salnsn 0x49, 0x83, 0x88, 0xbe, 0x62, 0x2d, 0x5e, 0x88,
192911f4379Salnsn 0xc0, 0x35, 0xe4, 0xc3, 0xc9, 0x9f, 0x62, 0x59,
193911f4379Salnsn 0x16, 0xa7, 0x2e, 0xc0, 0xda, 0x3c, 0x2e, 0x10,
194911f4379Salnsn 0x53, 0xf0, 0x84, 0x27, 0x38, 0xd0, 0xf4, 0xb5,
195911f4379Salnsn 0x7c, 0x4a, 0x63, 0x04, 0x51, 0x22, 0xae, 0xf3,
196911f4379Salnsn 0xe7, 0x97, 0x53, 0xee, 0xe6, 0xaf, 0xc3, 0x49,
197911f4379Salnsn 0x3a, 0x5a, 0x74, 0x83, 0x18, 0xa3, 0x6b, 0xf3,
198911f4379Salnsn 0x6a, 0x3b, 0xe2, 0x1b, 0xd4, 0x64, 0x41, 0xdf,
199911f4379Salnsn 0xd1, 0xd2, 0xdd, 0x22, 0xa8, 0x66, 0xbd, 0x8e,
200911f4379Salnsn 0xc4, 0x9a, 0x6d, 0x15, 0x38, 0x5b, 0x50, 0x9a,
201911f4379Salnsn 0x65, 0x48, 0x97, 0xf1, 0x04, 0x85, 0x8b, 0x5c,
202911f4379Salnsn 0x44, 0x32, 0x15, 0xea, 0x28, 0x5f, 0x98, 0x53,
203911f4379Salnsn 0xb4, 0x80, 0xd0, 0x2c, 0x59, 0x04, 0x08, 0xaf,
204911f4379Salnsn 0xa4, 0xb7, 0x49, 0xd1, 0x98, 0x87, 0xb9, 0xb6,
205911f4379Salnsn 0x3d, 0x89, 0xd1, 0xbe, 0xf4, 0x89, 0xec, 0xf9,
206911f4379Salnsn 0x2d, 0xc7, 0xc6, 0xe9, 0xe6, 0xfa, 0x1e, 0x67,
207911f4379Salnsn 0x68, 0xe7, 0xb7, 0x91, 0x55, 0x77, 0xf3, 0x27,
208911f4379Salnsn 0x38, 0x23, 0xcf, 0x2e, 0x3e, 0x8b, 0xfd, 0xb3,
209911f4379Salnsn 0x90, 0xd8, 0x6b, 0x1e, 0x93, 0x8f, 0xb6, 0xc1,
210911f4379Salnsn 0x27, 0xc2, 0xb7, 0x76, 0x10, 0x69, 0xe8, 0x7f,
211911f4379Salnsn 0xfc, 0x03, 0x59, 0xa4, 0xd3, 0x7f, 0x2f, 0x03,
212911f4379Salnsn 0x1c, 0x21, 0x6d, 0x2e, 0xae, 0xba, 0xa2, 0x04,
213911f4379Salnsn 0x67, 0xe9, 0x33, 0xc9, 0x3a, 0x96, 0xb6, 0x7c,
214911f4379Salnsn 0xf6, 0x21, 0x6b, 0x34, 0x9a, 0x5b, 0xa0, 0x8b,
215911f4379Salnsn 0x51, 0xf0, 0xd4, 0x3a, 0xa3, 0xcb, 0x22, 0xfb,
216911f4379Salnsn 0x8a, 0x56, 0xab, 0x9a, 0x15, 0x75, 0x07, 0x87,
217911f4379Salnsn 0x32, 0xa7, 0x15, 0xc7, 0xd9, 0x40, 0x95, 0xe5,
218911f4379Salnsn 0xfb, 0xb0, 0xc5, 0xb1, 0x60, 0xf8, 0xcc, 0x8b,
219911f4379Salnsn 0x30, 0x20, 0xd9, 0x84, 0x6f, 0xa2, 0xcb, 0x72,
220911f4379Salnsn 0xf5, 0xa5, 0x2c, 0xa3, 0xc6, 0x1c, 0xd2, 0x74,
221911f4379Salnsn 0x01, 0x74, 0xdd, 0xb4, 0x68, 0x3b, 0x3b, 0x3e,
222911f4379Salnsn 0x4f, 0xb5, 0x67, 0x9a, 0x9c, 0x37, 0x3d, 0xbf,
223911f4379Salnsn 0xd3, 0xab, 0xd7, 0x70, 0x03, 0x28, 0x5c, 0x3b,
224911f4379Salnsn 0xb7, 0x08, 0x38, 0x3d, 0x69, 0xa9, 0xcb, 0x63,
225911f4379Salnsn 0x04, 0x95, 0x8a, 0x16, 0x4c, 0xff, 0x9f, 0x0c,
226911f4379Salnsn 0xe2, 0x51, 0x95, 0x44, 0x52, 0x3b, 0x59, 0x9d,
227911f4379Salnsn 0x0b, 0x77, 0xa0, 0x39, 0x40, 0xea, 0x33, 0x25,
228911f4379Salnsn 0xc8, 0xc5, 0x90, 0x47, 0x23, 0xe3, 0x03, 0x8c,
229911f4379Salnsn 0x6a, 0xe0, 0x4f, 0x76, 0xe7, 0x72, 0x82, 0xcc,
230911f4379Salnsn 0xb2, 0xfd, 0xfb, 0x82, 0x1a, 0x28, 0x30, 0x89,
231911f4379Salnsn 0x0e, 0x25, 0xa7, 0x63, 0x85, 0x2e, 0x9b, 0xa6,
232911f4379Salnsn 0x0b, 0xa0, 0xb5, 0x34, 0xa2, 0x2e, 0x7f, 0xd4,
233911f4379Salnsn 0xe5, 0xd6, 0x95, 0xe8, 0x09, 0x3d, 0x4d, 0xdf,
234911f4379Salnsn 0xd9, 0xc0, 0x63, 0x17, 0xa5, 0x9c, 0xf6, 0xa3,
235911f4379Salnsn 0x59, 0x17, 0xc0, 0xf8, 0xa2, 0x11, 0x14, 0x88,
236911f4379Salnsn 0xf0, 0x1e, 0x4a, 0x4b, 0x13, 0xf6, 0xd6, 0x09,
237911f4379Salnsn 0xac, 0xf8, 0x39, 0x5d, 0x4c, 0x68, 0x69, 0x99,
238911f4379Salnsn 0x08, 0xd4, 0xf5, 0x39, 0x6d, 0x78, 0xde, 0xb5,
239911f4379Salnsn 0x6f, 0x34, 0xc4, 0x28, 0x73, 0x6c, 0x29, 0xa1,
240911f4379Salnsn 0xef, 0xfe, 0xed, 0x56, 0xb2, 0x70, 0x7b, 0xd5,
241911f4379Salnsn 0x5b, 0xd1, 0x09, 0x6a, 0x9a, 0x59, 0xe9, 0x79,
242911f4379Salnsn 0xe9, 0xee, 0xa4, 0x03, 0xc1, 0x67, 0xce, 0x62,
243911f4379Salnsn 0xf6, 0x4f, 0x04, 0xa5, 0x04, 0x71, 0x13, 0xeb,
244911f4379Salnsn 0x3d, 0x0a, 0x65, 0x2f, 0x57, 0xb0, 0xc0, 0xa4,
245911f4379Salnsn 0xf2, 0x8d, 0x78, 0x90, 0xeb, 0xc9, 0x5e, 0x8b,
246911f4379Salnsn 0xd8, 0xfb, 0xbc, 0x74, 0x1a, 0x70, 0x94, 0x2c,
247911f4379Salnsn 0xeb, 0xf2, 0x5e, 0x6d, 0xbb, 0x96, 0x7a, 0x2c,
248911f4379Salnsn };
249911f4379Salnsn
250911f4379Salnsn /*
251911f4379Salnsn * IV method encblkno1, blkno 2.
252911f4379Salnsn */
253911f4379Salnsn static const uint8_t aes_cbc_128_encblkno1_vec2_ctxt[SECSIZE] = {
254911f4379Salnsn 0xbc, 0x49, 0x35, 0x2c, 0xe3, 0x10, 0x12, 0x65,
255911f4379Salnsn 0x7a, 0xf4, 0xde, 0xd3, 0xf8, 0xe1, 0x49, 0x97,
256911f4379Salnsn 0x0a, 0x07, 0x93, 0x6c, 0xf8, 0x0e, 0xb7, 0xdf,
257911f4379Salnsn 0x53, 0xba, 0x1e, 0x8e, 0x14, 0xbd, 0xf6, 0x81,
258911f4379Salnsn 0xd6, 0xf6, 0x3d, 0xb2, 0xe7, 0x6a, 0x9d, 0x50,
259911f4379Salnsn 0x68, 0xc2, 0x75, 0x8e, 0xfb, 0x44, 0xfa, 0xc8,
260911f4379Salnsn 0x9f, 0x30, 0x15, 0xd5, 0xbe, 0xce, 0x04, 0xc1,
261911f4379Salnsn 0x99, 0xde, 0x3d, 0x2b, 0xc1, 0xc4, 0x8a, 0xb1,
262911f4379Salnsn 0xc5, 0x54, 0x47, 0x52, 0xf6, 0x38, 0x11, 0xcb,
263911f4379Salnsn 0x11, 0xf6, 0xb7, 0xbd, 0x4d, 0x24, 0xa1, 0xac,
264911f4379Salnsn 0x04, 0x17, 0x7e, 0x3c, 0xbc, 0x3b, 0xa0, 0x8d,
265911f4379Salnsn 0xfb, 0x22, 0x82, 0x56, 0xa2, 0xbe, 0xfe, 0xe7,
266911f4379Salnsn 0xde, 0xa4, 0xe9, 0xeb, 0xa0, 0x7a, 0x45, 0xc9,
267911f4379Salnsn 0x18, 0x0b, 0x14, 0xd5, 0xff, 0x4c, 0xe5, 0x86,
268911f4379Salnsn 0xac, 0xac, 0xaa, 0xb4, 0x70, 0x0c, 0x4a, 0x20,
269911f4379Salnsn 0xb6, 0xd8, 0x2d, 0xac, 0x09, 0xd8, 0xf6, 0x24,
270911f4379Salnsn 0xdf, 0xa5, 0x62, 0xef, 0x8c, 0x01, 0xa8, 0x1d,
271911f4379Salnsn 0x8f, 0x52, 0xee, 0xa6, 0x2f, 0x9b, 0x81, 0x18,
272911f4379Salnsn 0x0e, 0x6b, 0xa3, 0xe5, 0x67, 0xb3, 0xd5, 0x30,
273911f4379Salnsn 0xb1, 0x9f, 0x87, 0x05, 0xd0, 0x52, 0x62, 0x6f,
274911f4379Salnsn 0xb9, 0x3b, 0xbc, 0x0c, 0x0c, 0xcb, 0x73, 0x55,
275911f4379Salnsn 0x23, 0x83, 0x14, 0x78, 0x05, 0x5b, 0x05, 0xf5,
276911f4379Salnsn 0x3e, 0xa7, 0xf3, 0x4d, 0x0d, 0x34, 0x6f, 0xe0,
277911f4379Salnsn 0x58, 0x52, 0x0a, 0x82, 0xa7, 0x49, 0x8a, 0xd2,
278911f4379Salnsn 0x23, 0xb1, 0xc5, 0x0d, 0xa7, 0x0f, 0x56, 0xfc,
279911f4379Salnsn 0x7e, 0xf6, 0x19, 0x4b, 0xe7, 0x63, 0x72, 0x4c,
280911f4379Salnsn 0xb8, 0x5c, 0x80, 0x54, 0xf5, 0x1f, 0xb0, 0x29,
281911f4379Salnsn 0x40, 0x88, 0x75, 0x54, 0x42, 0xca, 0x2c, 0xc3,
282911f4379Salnsn 0xcf, 0xd7, 0xc1, 0xb2, 0xd6, 0x90, 0x70, 0x5e,
283911f4379Salnsn 0xf5, 0x58, 0x70, 0xe0, 0xff, 0x5a, 0xf5, 0xee,
284911f4379Salnsn 0x32, 0x4f, 0x61, 0x1c, 0xf6, 0xbf, 0xd5, 0x7c,
285911f4379Salnsn 0x73, 0xb9, 0x1d, 0x30, 0xc2, 0xfb, 0x2f, 0x9a,
286911f4379Salnsn 0xf7, 0x57, 0x2e, 0x87, 0x7d, 0xcb, 0xdd, 0x7e,
287911f4379Salnsn 0xda, 0xec, 0x47, 0x1a, 0x0e, 0x70, 0x2d, 0x6e,
288911f4379Salnsn 0x18, 0x2b, 0x89, 0xc1, 0x85, 0x58, 0x6d, 0x4b,
289911f4379Salnsn 0x45, 0x11, 0xcf, 0x82, 0x9f, 0x31, 0xd0, 0x42,
290911f4379Salnsn 0x11, 0xca, 0xa8, 0x52, 0x66, 0xf7, 0xf1, 0x1d,
291911f4379Salnsn 0x86, 0xe3, 0xb4, 0x41, 0xcb, 0x92, 0xb1, 0x9f,
292911f4379Salnsn 0x8d, 0x8e, 0x08, 0xe9, 0xc4, 0x66, 0xce, 0x9d,
293911f4379Salnsn 0xae, 0x91, 0xaf, 0xe6, 0xa6, 0x2e, 0x06, 0x3a,
294911f4379Salnsn 0xf5, 0x27, 0x48, 0xe4, 0x31, 0x0f, 0xc5, 0xdf,
295911f4379Salnsn 0x29, 0x56, 0xed, 0x62, 0xf3, 0xef, 0xca, 0xa6,
296911f4379Salnsn 0x58, 0xd1, 0x84, 0x99, 0xd3, 0x34, 0x67, 0x92,
297911f4379Salnsn 0x6a, 0xb2, 0xd1, 0xd1, 0x50, 0x1f, 0xe9, 0xd8,
298911f4379Salnsn 0x3c, 0xbe, 0x12, 0x97, 0x7c, 0x4f, 0xc0, 0xbe,
299911f4379Salnsn 0x91, 0x32, 0x15, 0xd5, 0xf2, 0x5e, 0xe6, 0x13,
300911f4379Salnsn 0x86, 0xfa, 0xc6, 0xde, 0xd8, 0xe1, 0x70, 0xb4,
301911f4379Salnsn 0xf7, 0x5b, 0x9f, 0x79, 0x55, 0x22, 0x7a, 0xe1,
302911f4379Salnsn 0x54, 0x40, 0x39, 0x11, 0xe1, 0x78, 0x01, 0x01,
303911f4379Salnsn 0xc0, 0x44, 0xeb, 0x92, 0xb9, 0x01, 0xdd, 0x56,
304911f4379Salnsn 0xb9, 0x7e, 0xa0, 0x50, 0x41, 0x58, 0xb2, 0x13,
305911f4379Salnsn 0x12, 0x44, 0xd2, 0x39, 0xf2, 0x76, 0x3c, 0x53,
306911f4379Salnsn 0x36, 0xfe, 0x17, 0x74, 0x91, 0x8d, 0xbe, 0xc5,
307911f4379Salnsn 0x40, 0xf7, 0xa2, 0xe9, 0x65, 0xd9, 0xdf, 0x80,
308911f4379Salnsn 0x7b, 0xd9, 0xc3, 0x1f, 0xb4, 0xfc, 0x9f, 0x8d,
309911f4379Salnsn 0x7a, 0x4e, 0x1e, 0x32, 0x6d, 0xb1, 0x82, 0x1e,
310911f4379Salnsn 0x0c, 0xb6, 0x0b, 0xe6, 0x15, 0x82, 0x5c, 0xcc,
311911f4379Salnsn 0xc8, 0x4a, 0x73, 0x56, 0x9d, 0x11, 0xfa, 0xcd,
312911f4379Salnsn 0x21, 0x95, 0x23, 0x71, 0xe8, 0xfe, 0x06, 0x43,
313911f4379Salnsn 0xf6, 0x17, 0x51, 0x28, 0x0d, 0xfb, 0x0a, 0x49,
314911f4379Salnsn 0x1b, 0x35, 0x1e, 0x4a, 0x38, 0x08, 0x6b, 0xcd,
315911f4379Salnsn 0x67, 0x21, 0x94, 0x09, 0x28, 0xca, 0x0a, 0x18,
316911f4379Salnsn 0xdf, 0x6c, 0x86, 0x47, 0x10, 0x29, 0x81, 0x9a,
317911f4379Salnsn 0x73, 0xba, 0x78, 0xbd, 0xc0, 0x61, 0xee, 0x23,
318911f4379Salnsn };
319911f4379Salnsn
320911f4379Salnsn /*
321911f4379Salnsn * IV method encblkno1, blkno 3.
322911f4379Salnsn */
323911f4379Salnsn static const uint8_t aes_cbc_128_encblkno1_vec3_ctxt[SECSIZE] = {
324911f4379Salnsn 0x29, 0x9f, 0xb1, 0x0f, 0x7d, 0xb4, 0xd9, 0xbb,
325911f4379Salnsn 0xf9, 0x06, 0x60, 0xdc, 0xb9, 0xeb, 0x73, 0x6e,
326911f4379Salnsn 0xfe, 0xdb, 0x99, 0x29, 0xe8, 0x42, 0x46, 0xe7,
327911f4379Salnsn 0x49, 0xcf, 0x90, 0x2d, 0x08, 0xd7, 0xd5, 0xbf,
328911f4379Salnsn 0x0f, 0x4f, 0x66, 0xce, 0xcd, 0xb1, 0x8a, 0xc7,
329911f4379Salnsn 0x47, 0xc9, 0x8e, 0xe3, 0x9f, 0x80, 0x79, 0xc6,
330911f4379Salnsn 0xa8, 0xe5, 0x20, 0x66, 0x58, 0xde, 0xab, 0x87,
331911f4379Salnsn 0x5e, 0x7e, 0xcd, 0x55, 0x81, 0x09, 0x40, 0xd9,
332911f4379Salnsn 0x8b, 0x7e, 0xd3, 0xf9, 0x16, 0x55, 0x72, 0x7d,
333911f4379Salnsn 0xe8, 0x36, 0x76, 0x06, 0x77, 0x47, 0xa5, 0xdc,
334911f4379Salnsn 0x80, 0x33, 0x7d, 0x88, 0x5f, 0x56, 0x48, 0x0f,
335911f4379Salnsn 0x66, 0xb5, 0x91, 0x9d, 0xf8, 0xdb, 0x83, 0x0d,
336911f4379Salnsn 0xd4, 0xc6, 0x13, 0xfc, 0xd4, 0xe5, 0x34, 0x81,
337911f4379Salnsn 0x70, 0x4d, 0x96, 0x82, 0x5d, 0xb2, 0x36, 0x37,
338911f4379Salnsn 0xdf, 0xd2, 0x5e, 0x31, 0xf0, 0x9d, 0x6d, 0xb7,
339911f4379Salnsn 0xf9, 0x2d, 0xcb, 0x77, 0xb8, 0x59, 0xa0, 0xbb,
340911f4379Salnsn 0x4f, 0x8d, 0xa0, 0xd1, 0x49, 0x17, 0x93, 0x3c,
341911f4379Salnsn 0xf0, 0x4e, 0x72, 0xdd, 0x99, 0x9a, 0x87, 0xf1,
342911f4379Salnsn 0x01, 0x89, 0xdf, 0xef, 0xed, 0x04, 0x86, 0x3d,
343911f4379Salnsn 0x9b, 0xab, 0x6c, 0xa7, 0xef, 0x1b, 0xbb, 0x24,
344911f4379Salnsn 0xbc, 0x65, 0x01, 0x06, 0x12, 0x3f, 0x7e, 0x9f,
345911f4379Salnsn 0x83, 0xf3, 0xd4, 0x43, 0x18, 0x03, 0xa3, 0x07,
346911f4379Salnsn 0xbc, 0x85, 0xe8, 0xdb, 0x6c, 0x8f, 0xaf, 0x70,
347911f4379Salnsn 0x71, 0x5d, 0xbc, 0x6d, 0x14, 0x05, 0xdf, 0xce,
348911f4379Salnsn 0x9f, 0xe2, 0xa3, 0x51, 0x66, 0x92, 0x52, 0x19,
349911f4379Salnsn 0x98, 0xbd, 0xb2, 0x68, 0x79, 0xf4, 0x5d, 0x71,
350911f4379Salnsn 0xcb, 0xa0, 0x1b, 0x77, 0x34, 0x46, 0x69, 0x3c,
351911f4379Salnsn 0xa4, 0x0f, 0x72, 0xf5, 0x73, 0xf6, 0xa0, 0xe9,
352911f4379Salnsn 0x72, 0xef, 0xa1, 0xcc, 0x43, 0xfc, 0xb7, 0xf3,
353911f4379Salnsn 0x59, 0xeb, 0x40, 0x61, 0x02, 0x26, 0x9b, 0x71,
354911f4379Salnsn 0x57, 0x17, 0x36, 0xac, 0xc8, 0xd5, 0x9d, 0xcb,
355911f4379Salnsn 0x4d, 0x4f, 0xf7, 0xc1, 0x58, 0xce, 0xbf, 0x73,
356911f4379Salnsn 0xe7, 0xd0, 0x58, 0x0d, 0x08, 0x01, 0x8f, 0x68,
357911f4379Salnsn 0x1b, 0x3f, 0x3a, 0x7b, 0xdb, 0x9e, 0xa7, 0x33,
358911f4379Salnsn 0x59, 0x91, 0xa8, 0xe3, 0x58, 0x22, 0x3f, 0x97,
359911f4379Salnsn 0xe1, 0xdb, 0xd6, 0x99, 0x0e, 0xdd, 0x76, 0xcd,
360911f4379Salnsn 0x4d, 0x02, 0x28, 0x43, 0x8a, 0xdd, 0x10, 0xad,
361911f4379Salnsn 0x55, 0xe0, 0x62, 0xf7, 0x44, 0xbc, 0x3f, 0x99,
362911f4379Salnsn 0x3c, 0x09, 0x25, 0xfb, 0xfd, 0x1e, 0x4c, 0x45,
363911f4379Salnsn 0x0e, 0x6e, 0x75, 0x15, 0x48, 0x19, 0x08, 0xc3,
364911f4379Salnsn 0x2b, 0x81, 0x60, 0x5f, 0x19, 0x09, 0x74, 0x0a,
365911f4379Salnsn 0xbd, 0x0d, 0x8d, 0x94, 0x55, 0x04, 0x2b, 0x8e,
366911f4379Salnsn 0x0d, 0x10, 0x60, 0x64, 0x0d, 0x7f, 0x63, 0x2e,
367911f4379Salnsn 0x89, 0x0b, 0xfc, 0x1c, 0xbc, 0xf3, 0x66, 0xc5,
368911f4379Salnsn 0x80, 0x93, 0x3a, 0x74, 0x15, 0x11, 0xd5, 0xba,
369911f4379Salnsn 0xbc, 0x06, 0x3f, 0x85, 0xcc, 0x6c, 0xd3, 0xf2,
370911f4379Salnsn 0x74, 0xc6, 0x10, 0x15, 0x0a, 0x02, 0x66, 0xa4,
371911f4379Salnsn 0xa8, 0x93, 0x0b, 0x5c, 0xe7, 0x13, 0x96, 0x90,
372911f4379Salnsn 0xdd, 0xe3, 0x25, 0x22, 0x46, 0x7b, 0x49, 0xde,
373911f4379Salnsn 0x72, 0x55, 0xf3, 0x30, 0x62, 0x5f, 0x7a, 0x2a,
374911f4379Salnsn 0x37, 0x88, 0xea, 0x57, 0x99, 0x64, 0x50, 0x2d,
375911f4379Salnsn 0xd3, 0x6a, 0x09, 0x4b, 0xd6, 0x61, 0xf2, 0x22,
376911f4379Salnsn 0x53, 0x36, 0xf7, 0x42, 0x21, 0xde, 0xda, 0xcb,
377911f4379Salnsn 0x8b, 0x6f, 0xf3, 0x4e, 0x2c, 0x16, 0xfb, 0xfc,
378911f4379Salnsn 0x13, 0xa7, 0xd1, 0xd8, 0xfd, 0x16, 0x39, 0x20,
379911f4379Salnsn 0xe0, 0xb2, 0xb4, 0xd5, 0x40, 0x93, 0x30, 0xf3,
380911f4379Salnsn 0xab, 0x88, 0xe3, 0xfb, 0xbe, 0xb8, 0x02, 0x3a,
381911f4379Salnsn 0x78, 0x2d, 0x56, 0x4b, 0x92, 0x5b, 0x0a, 0x8d,
382911f4379Salnsn 0x18, 0xa4, 0x5b, 0x11, 0x60, 0x0b, 0x45, 0xad,
383911f4379Salnsn 0x0b, 0x64, 0x96, 0x7d, 0x84, 0xf2, 0x20, 0xa8,
384911f4379Salnsn 0x95, 0x78, 0xb3, 0xb5, 0x98, 0x1f, 0xa7, 0x3e,
385911f4379Salnsn 0x30, 0x77, 0x43, 0xd2, 0x8c, 0x20, 0xc5, 0x5e,
386911f4379Salnsn 0x76, 0xcd, 0x2c, 0x7c, 0xfa, 0x34, 0x36, 0xda,
387911f4379Salnsn 0x39, 0x00, 0x2e, 0x69, 0x4a, 0xb3, 0x0f, 0x6f,
388911f4379Salnsn };
389911f4379Salnsn
390911f4379Salnsn const struct testvec aes_cbc_128_1_vectors[] = {
391911f4379Salnsn {
392911f4379Salnsn .blkno = 0,
393911f4379Salnsn .ptxt = aes_cbc_ptxt,
394911f4379Salnsn .ctxt = aes_cbc_128_encblkno1_vec0_ctxt,
395911f4379Salnsn },
396911f4379Salnsn {
397911f4379Salnsn .blkno = 1,
398911f4379Salnsn .ptxt = aes_cbc_ptxt,
399911f4379Salnsn .ctxt = aes_cbc_128_encblkno1_vec1_ctxt,
400911f4379Salnsn },
401911f4379Salnsn {
402911f4379Salnsn .blkno = 2,
403911f4379Salnsn .ptxt = aes_cbc_ptxt,
404911f4379Salnsn .ctxt = aes_cbc_128_encblkno1_vec2_ctxt,
405911f4379Salnsn },
406911f4379Salnsn {
407911f4379Salnsn .blkno = 3,
408911f4379Salnsn .ptxt = aes_cbc_ptxt,
409911f4379Salnsn .ctxt = aes_cbc_128_encblkno1_vec3_ctxt,
410911f4379Salnsn },
411911f4379Salnsn };
412911f4379Salnsn
413911f4379Salnsn /*
414911f4379Salnsn * IV method encblkno8, blkno 0.
415911f4379Salnsn */
416911f4379Salnsn static const uint8_t aes_cbc_128_encblkno8_vec0_ctxt[SECSIZE] = {
417911f4379Salnsn 0xa6, 0x64, 0xef, 0x0f, 0xc4, 0x45, 0xcc, 0x5e,
418911f4379Salnsn 0xf8, 0x27, 0x42, 0x5e, 0xbd, 0x93, 0x99, 0xcd,
419911f4379Salnsn 0x79, 0xa8, 0x7d, 0x72, 0xc4, 0x02, 0x99, 0xa6,
420911f4379Salnsn 0xe4, 0x69, 0x57, 0x82, 0xdf, 0x32, 0x4e, 0x67,
421911f4379Salnsn 0x2a, 0xd9, 0x58, 0x8c, 0x9f, 0xfc, 0x4d, 0xcf,
422911f4379Salnsn 0x7b, 0xa4, 0xa1, 0xfa, 0xd9, 0x4d, 0xb5, 0x67,
423911f4379Salnsn 0x06, 0x4a, 0x9e, 0x6d, 0xe8, 0xaa, 0xdd, 0xae,
424911f4379Salnsn 0x8c, 0xda, 0xcf, 0x26, 0xd5, 0x94, 0x8d, 0x12,
425911f4379Salnsn 0xf8, 0xdd, 0x21, 0x4c, 0xcb, 0xc8, 0x5d, 0xd1,
426911f4379Salnsn 0x6a, 0x89, 0x37, 0xd0, 0x32, 0xe4, 0x87, 0xbc,
427911f4379Salnsn 0x5d, 0xef, 0xca, 0x38, 0xd5, 0x08, 0xfb, 0xcf,
428911f4379Salnsn 0xb7, 0x8d, 0x65, 0x52, 0x13, 0xea, 0x2d, 0x30,
429911f4379Salnsn 0xd3, 0x9a, 0xe8, 0x9c, 0x76, 0x25, 0x44, 0x2a,
430911f4379Salnsn 0xf1, 0xe1, 0xbb, 0xcd, 0xbc, 0x9c, 0xf5, 0xa3,
431911f4379Salnsn 0xfb, 0x23, 0x53, 0x95, 0x61, 0xea, 0x46, 0x97,
432911f4379Salnsn 0xf6, 0xbf, 0xdf, 0xf9, 0xb7, 0x94, 0x73, 0xa8,
433911f4379Salnsn 0xc1, 0xaa, 0x64, 0xfb, 0x66, 0x26, 0x0f, 0x4c,
434911f4379Salnsn 0xee, 0x3c, 0xb6, 0x3f, 0x13, 0x88, 0xaa, 0x7d,
435911f4379Salnsn 0x91, 0x01, 0x1a, 0x95, 0x3b, 0xb5, 0x7e, 0x1f,
436911f4379Salnsn 0xc1, 0x84, 0xa6, 0x83, 0x99, 0xe6, 0xaf, 0x21,
437911f4379Salnsn 0x33, 0xff, 0x2e, 0xc9, 0xfe, 0xf2, 0xa1, 0x37,
438911f4379Salnsn 0xed, 0x91, 0x73, 0x70, 0x4f, 0xb4, 0x69, 0x69,
439911f4379Salnsn 0x98, 0x1d, 0x6d, 0xd4, 0xa4, 0xac, 0x73, 0x61,
440911f4379Salnsn 0x04, 0xf5, 0x13, 0x50, 0x2a, 0xa9, 0xf7, 0x61,
441911f4379Salnsn 0x78, 0xf5, 0x87, 0x26, 0xc5, 0x4a, 0x30, 0xbb,
442911f4379Salnsn 0x94, 0x55, 0x51, 0xb4, 0xa0, 0x83, 0x30, 0xe6,
443911f4379Salnsn 0xf7, 0xc7, 0x89, 0x61, 0x73, 0xd9, 0xbd, 0xe1,
444911f4379Salnsn 0x4e, 0x14, 0x8a, 0x02, 0x3d, 0x7a, 0x58, 0x92,
445911f4379Salnsn 0x41, 0xe7, 0x90, 0x8d, 0xd7, 0x67, 0x62, 0xf8,
446911f4379Salnsn 0x99, 0xa7, 0x9d, 0x55, 0xec, 0x18, 0x6b, 0x42,
447911f4379Salnsn 0xaf, 0x27, 0x97, 0xe5, 0x51, 0xa9, 0x10, 0x27,
448911f4379Salnsn 0x5e, 0x3f, 0xac, 0xda, 0xd3, 0xb5, 0x2b, 0x43,
449911f4379Salnsn 0x2e, 0x10, 0xdc, 0xd9, 0xe2, 0x2f, 0x4f, 0xfe,
450911f4379Salnsn 0xf3, 0x0d, 0x06, 0x76, 0xf9, 0x25, 0xcd, 0x26,
451911f4379Salnsn 0xef, 0x8e, 0x9b, 0xc2, 0xb3, 0x20, 0x2b, 0x00,
452911f4379Salnsn 0xb6, 0xe6, 0x2e, 0xf7, 0x17, 0xc7, 0xa8, 0x3c,
453911f4379Salnsn 0x00, 0xfc, 0x78, 0x8d, 0x10, 0x38, 0xd1, 0x11,
454911f4379Salnsn 0x94, 0xed, 0xb4, 0x22, 0x13, 0xcb, 0x52, 0x0f,
455911f4379Salnsn 0x0f, 0xd7, 0x33, 0x3b, 0xbd, 0x01, 0x04, 0x56,
456911f4379Salnsn 0xfa, 0x2c, 0xaa, 0xaf, 0x2b, 0x93, 0xde, 0xf4,
457911f4379Salnsn 0x31, 0x36, 0x13, 0x71, 0xef, 0x7a, 0xf0, 0xae,
458911f4379Salnsn 0xbd, 0xa7, 0x4a, 0x57, 0xa5, 0xc5, 0xf3, 0x5c,
459911f4379Salnsn 0x08, 0x2b, 0xe7, 0x12, 0x42, 0x4b, 0x4b, 0x12,
460911f4379Salnsn 0x49, 0x3a, 0x2e, 0x26, 0x67, 0x67, 0xa1, 0xd5,
461911f4379Salnsn 0x59, 0xa6, 0x18, 0x96, 0x22, 0x2b, 0xeb, 0x56,
462911f4379Salnsn 0x1e, 0x0a, 0x08, 0x75, 0xb4, 0x2b, 0x5c, 0x0a,
463911f4379Salnsn 0x4e, 0x9d, 0x17, 0xd4, 0x0c, 0xfe, 0x46, 0x60,
464911f4379Salnsn 0x6d, 0xfa, 0xc0, 0xb9, 0x5e, 0x1f, 0x88, 0x0e,
465911f4379Salnsn 0x08, 0x2c, 0xf3, 0xb4, 0x3a, 0x15, 0xc5, 0xf9,
466911f4379Salnsn 0x5b, 0x85, 0x92, 0x94, 0xa8, 0x8f, 0x2c, 0x3a,
467911f4379Salnsn 0x7e, 0x22, 0x86, 0x88, 0x51, 0x03, 0xee, 0xf9,
468911f4379Salnsn 0x2e, 0x83, 0xce, 0x39, 0x0c, 0x76, 0x64, 0xe5,
469911f4379Salnsn 0x5a, 0x88, 0xef, 0xc5, 0x06, 0xb2, 0xe4, 0x13,
470911f4379Salnsn 0x82, 0xc9, 0xee, 0xba, 0x6d, 0x56, 0xa8, 0x87,
471911f4379Salnsn 0x51, 0x69, 0x3b, 0x86, 0x29, 0x8e, 0xe8, 0xb4,
472911f4379Salnsn 0x44, 0x42, 0x07, 0x5b, 0xff, 0x0e, 0x1e, 0x9f,
473911f4379Salnsn 0x42, 0xb1, 0xc8, 0x5f, 0xab, 0x3b, 0xc7, 0xba,
474911f4379Salnsn 0x75, 0x20, 0xe6, 0x9f, 0x93, 0xb5, 0xcf, 0x8f,
475911f4379Salnsn 0x7c, 0x1c, 0xf3, 0xdb, 0x6a, 0xf4, 0xde, 0x00,
476911f4379Salnsn 0xe9, 0xaf, 0xd5, 0xf4, 0x36, 0x98, 0x14, 0x2d,
477911f4379Salnsn 0x53, 0x20, 0x74, 0xab, 0x0c, 0xf6, 0xcd, 0x15,
478911f4379Salnsn 0x32, 0xa6, 0x01, 0x8d, 0x24, 0x1b, 0x4b, 0x1f,
479911f4379Salnsn 0xa3, 0xfc, 0x38, 0x82, 0x3a, 0xa1, 0xb5, 0x52,
480911f4379Salnsn 0x53, 0xc7, 0x2b, 0x30, 0x7c, 0x65, 0xb9, 0x7d,
481911f4379Salnsn };
482911f4379Salnsn
483911f4379Salnsn /*
484911f4379Salnsn * IV method encblkno8, blkno 1.
485911f4379Salnsn */
486911f4379Salnsn static const uint8_t aes_cbc_128_encblkno8_vec1_ctxt[SECSIZE] = {
487911f4379Salnsn 0x63, 0x45, 0x16, 0x0c, 0xe4, 0x4f, 0x51, 0xde,
488911f4379Salnsn 0x74, 0xf8, 0x7b, 0xf5, 0x05, 0x17, 0x13, 0x1e,
489911f4379Salnsn 0xa5, 0x3d, 0x84, 0xfa, 0x35, 0x5a, 0x2d, 0x3c,
490911f4379Salnsn 0xb7, 0x61, 0x68, 0xff, 0xcd, 0x33, 0x1f, 0x0b,
491911f4379Salnsn 0x53, 0x79, 0xf2, 0x2f, 0xbc, 0x8d, 0xac, 0xb9,
492911f4379Salnsn 0xf9, 0xb7, 0x9c, 0x0a, 0x9d, 0xa1, 0x4d, 0x78,
493911f4379Salnsn 0x9e, 0x4e, 0xfa, 0xe8, 0xc8, 0x46, 0x4b, 0x99,
494911f4379Salnsn 0x91, 0x7e, 0x33, 0x6e, 0x18, 0x24, 0x01, 0xc3,
495911f4379Salnsn 0x9f, 0x8c, 0x43, 0xb5, 0x15, 0x7e, 0xdd, 0xf9,
496911f4379Salnsn 0x1b, 0xb0, 0xf2, 0xc3, 0x97, 0x1f, 0x7c, 0x3f,
497911f4379Salnsn 0x43, 0x4c, 0x9f, 0x93, 0x29, 0x83, 0x8f, 0xad,
498911f4379Salnsn 0xd1, 0x5e, 0x92, 0x1a, 0x17, 0xd1, 0xa0, 0x05,
499911f4379Salnsn 0x6e, 0x62, 0x59, 0x80, 0x50, 0x6d, 0xe3, 0x28,
500911f4379Salnsn 0x9a, 0x43, 0xdc, 0x81, 0x4f, 0x49, 0xc4, 0x98,
501911f4379Salnsn 0xcd, 0x6d, 0x28, 0xb4, 0x86, 0xe4, 0x83, 0x45,
502911f4379Salnsn 0xd4, 0x43, 0x52, 0x8a, 0xd6, 0xc8, 0x1c, 0x90,
503911f4379Salnsn 0xeb, 0xf0, 0xe7, 0x76, 0xb4, 0x43, 0x9b, 0x56,
504911f4379Salnsn 0x48, 0x73, 0xdd, 0x01, 0x50, 0x1c, 0x61, 0xfc,
505911f4379Salnsn 0x22, 0xac, 0xf4, 0x27, 0x94, 0x02, 0x54, 0xd3,
506911f4379Salnsn 0x7d, 0x25, 0xf6, 0x14, 0x29, 0xbb, 0x2b, 0x22,
507911f4379Salnsn 0xc8, 0xe8, 0x7f, 0xa1, 0xfe, 0x19, 0x79, 0x97,
508911f4379Salnsn 0xb6, 0xa6, 0xba, 0x5b, 0x89, 0xdf, 0x73, 0x6d,
509911f4379Salnsn 0x79, 0x38, 0x5b, 0xf8, 0x89, 0xa2, 0x95, 0x1d,
510911f4379Salnsn 0xda, 0x38, 0x17, 0x4b, 0x01, 0xf1, 0x7d, 0x0a,
511911f4379Salnsn 0xa2, 0x8f, 0x5a, 0x02, 0x51, 0xb0, 0x88, 0x10,
512911f4379Salnsn 0x16, 0xc8, 0x82, 0xb9, 0x06, 0x9f, 0x01, 0x94,
513911f4379Salnsn 0xf9, 0xe0, 0x2e, 0x86, 0x8a, 0xb1, 0x7f, 0x74,
514911f4379Salnsn 0x22, 0xce, 0xee, 0xa6, 0x66, 0xee, 0xe2, 0x1d,
515911f4379Salnsn 0x98, 0x1b, 0x46, 0x22, 0x7e, 0x89, 0x0c, 0xc4,
516911f4379Salnsn 0x91, 0xfb, 0xe4, 0xd7, 0x36, 0x2a, 0xa9, 0x53,
517911f4379Salnsn 0xe9, 0xaf, 0x6c, 0xc1, 0xdd, 0x69, 0x4f, 0xde,
518911f4379Salnsn 0xd8, 0xd0, 0x7f, 0xc9, 0xf4, 0x8f, 0x84, 0xfe,
519911f4379Salnsn 0x0f, 0x16, 0x36, 0x90, 0x09, 0xd6, 0x0f, 0xbc,
520911f4379Salnsn 0x85, 0xad, 0xe9, 0xc3, 0xa1, 0x8d, 0x14, 0x5c,
521911f4379Salnsn 0x40, 0x7d, 0x0f, 0x22, 0xfe, 0x5e, 0xaf, 0xd9,
522911f4379Salnsn 0x0f, 0xe5, 0x2e, 0xa6, 0x04, 0xda, 0x35, 0x90,
523911f4379Salnsn 0x7f, 0x9a, 0x1f, 0xb8, 0x34, 0x1c, 0xd0, 0xf5,
524911f4379Salnsn 0x5c, 0x29, 0xce, 0xbe, 0x57, 0xd8, 0x55, 0x15,
525911f4379Salnsn 0x2d, 0x4c, 0x3c, 0x16, 0x93, 0x96, 0x3c, 0xf3,
526911f4379Salnsn 0xa8, 0x2f, 0x09, 0xb3, 0x8b, 0xe3, 0xce, 0xf7,
527911f4379Salnsn 0x3e, 0x8e, 0xcf, 0x47, 0xe2, 0xf2, 0xad, 0x06,
528911f4379Salnsn 0x00, 0x9a, 0x3a, 0x55, 0xf5, 0x9e, 0xbf, 0x5a,
529911f4379Salnsn 0x2e, 0x5a, 0x6c, 0x2b, 0x8f, 0x33, 0x71, 0x2c,
530911f4379Salnsn 0x56, 0x43, 0xd1, 0x8b, 0xd2, 0x98, 0x14, 0xb7,
531911f4379Salnsn 0x5a, 0xdc, 0x8b, 0xbc, 0xfe, 0x50, 0x99, 0x84,
532911f4379Salnsn 0x48, 0x5f, 0xcd, 0xed, 0xce, 0x61, 0x6f, 0xa6,
533911f4379Salnsn 0x83, 0xa3, 0x34, 0xbe, 0xf2, 0x66, 0xf3, 0x09,
534911f4379Salnsn 0xf3, 0xd3, 0x97, 0xd4, 0xee, 0x66, 0x9a, 0x81,
535911f4379Salnsn 0x62, 0x84, 0x85, 0x7f, 0x79, 0x18, 0xd2, 0x82,
536911f4379Salnsn 0xd6, 0x96, 0x09, 0x61, 0x1e, 0x53, 0x97, 0x80,
537911f4379Salnsn 0x0a, 0x81, 0x4b, 0x93, 0xf0, 0x03, 0x65, 0x18,
538911f4379Salnsn 0x93, 0x5b, 0x60, 0x2f, 0xb5, 0xfe, 0x82, 0xaf,
539911f4379Salnsn 0x85, 0xb7, 0x79, 0x7c, 0xee, 0xad, 0xea, 0xfa,
540911f4379Salnsn 0x9b, 0xad, 0xca, 0x38, 0x21, 0x3d, 0x46, 0x8a,
541911f4379Salnsn 0x5b, 0xa7, 0x55, 0x3d, 0x88, 0x4a, 0x52, 0xdb,
542911f4379Salnsn 0xf2, 0x07, 0xed, 0xd6, 0x3c, 0x9f, 0x1b, 0x42,
543911f4379Salnsn 0xb4, 0x14, 0x12, 0xb7, 0x00, 0xfc, 0x6a, 0x79,
544911f4379Salnsn 0x61, 0x0b, 0x43, 0xaa, 0x44, 0x48, 0x30, 0x15,
545911f4379Salnsn 0x48, 0x76, 0x27, 0x32, 0x7a, 0x2e, 0x25, 0x6a,
546911f4379Salnsn 0x8c, 0x8c, 0x64, 0x67, 0x86, 0x54, 0x4a, 0x93,
547911f4379Salnsn 0x14, 0xfe, 0x81, 0xf5, 0xcf, 0x98, 0x92, 0xd3,
548911f4379Salnsn 0x92, 0xf5, 0x6a, 0x74, 0x28, 0x10, 0x6b, 0xd4,
549911f4379Salnsn 0x1d, 0x64, 0x7e, 0x05, 0x32, 0xba, 0xf7, 0x4c,
550911f4379Salnsn 0xe9, 0xa8, 0xa9, 0xc5, 0x35, 0x34, 0x26, 0x41,
551911f4379Salnsn };
552911f4379Salnsn
553911f4379Salnsn /*
554911f4379Salnsn * IV method encblkno8, blkno 2.
555911f4379Salnsn */
556911f4379Salnsn static const uint8_t aes_cbc_128_encblkno8_vec2_ctxt[SECSIZE] = {
557911f4379Salnsn 0x64, 0x7b, 0x62, 0x7a, 0xa6, 0xa9, 0xb3, 0x47,
558911f4379Salnsn 0xbc, 0x03, 0x14, 0x3d, 0x9b, 0x56, 0xfc, 0x13,
559911f4379Salnsn 0x08, 0x32, 0x81, 0xe3, 0x57, 0x3c, 0x0d, 0xbb,
560911f4379Salnsn 0x85, 0x44, 0x47, 0x12, 0xc4, 0x80, 0x35, 0x37,
561911f4379Salnsn 0xe1, 0xb4, 0x3f, 0x35, 0x98, 0x7c, 0xb0, 0x3b,
562911f4379Salnsn 0x85, 0xab, 0x3d, 0x0b, 0xd3, 0x6f, 0xf9, 0x92,
563911f4379Salnsn 0x00, 0x6b, 0x18, 0xe7, 0x31, 0x8b, 0x77, 0x4c,
564911f4379Salnsn 0xd0, 0x7b, 0x1d, 0xfc, 0x95, 0xe6, 0x02, 0x01,
565911f4379Salnsn 0x9c, 0x17, 0x4d, 0x9b, 0x3a, 0x1d, 0x12, 0x23,
566911f4379Salnsn 0xd4, 0x24, 0xf8, 0x47, 0x5e, 0x2d, 0xfd, 0xc8,
567911f4379Salnsn 0x74, 0x28, 0xb4, 0x3a, 0x99, 0x6b, 0xcc, 0xba,
568911f4379Salnsn 0xe5, 0x51, 0x0b, 0xab, 0x4d, 0x63, 0xfc, 0x6d,
569911f4379Salnsn 0x2d, 0xd9, 0x2b, 0x4f, 0xa4, 0x26, 0xc7, 0x8d,
570911f4379Salnsn 0x9d, 0x12, 0x7f, 0xc7, 0x6b, 0x15, 0x8b, 0x4a,
571911f4379Salnsn 0x41, 0xf8, 0x50, 0x32, 0x76, 0x10, 0xca, 0x8e,
572911f4379Salnsn 0xfe, 0x08, 0x7d, 0x9a, 0xb5, 0x1a, 0xdb, 0x10,
573911f4379Salnsn 0xb3, 0x6a, 0x5f, 0xd9, 0x0a, 0x5f, 0x31, 0x19,
574911f4379Salnsn 0x3e, 0xa9, 0xa1, 0x72, 0x1f, 0x6c, 0x97, 0x20,
575911f4379Salnsn 0xd4, 0xab, 0xb8, 0xad, 0xf7, 0x70, 0x12, 0xd0,
576911f4379Salnsn 0x8f, 0x70, 0x24, 0x58, 0x2e, 0x99, 0xcd, 0xd4,
577911f4379Salnsn 0xf4, 0xcd, 0xef, 0x93, 0xfb, 0x4f, 0x9a, 0x40,
578911f4379Salnsn 0x46, 0x92, 0x6b, 0xd0, 0x25, 0x24, 0xec, 0x4d,
579911f4379Salnsn 0x4c, 0x42, 0x50, 0x61, 0xb6, 0x21, 0xa6, 0x2e,
580911f4379Salnsn 0xc1, 0x42, 0x9e, 0x86, 0x9f, 0x57, 0x2a, 0x2c,
581911f4379Salnsn 0x82, 0xbd, 0xc2, 0x25, 0xb6, 0x9f, 0x2d, 0x9f,
582911f4379Salnsn 0xba, 0xe0, 0xa6, 0x06, 0x04, 0x08, 0xc5, 0x1d,
583911f4379Salnsn 0x8c, 0x0f, 0xbf, 0x21, 0x85, 0x6d, 0x61, 0x4d,
584911f4379Salnsn 0x93, 0xc0, 0xa2, 0x8b, 0xca, 0x07, 0xd0, 0x88,
585911f4379Salnsn 0x74, 0xf9, 0x42, 0x92, 0xd5, 0x0d, 0x0c, 0x34,
586911f4379Salnsn 0xa6, 0xa5, 0x86, 0x51, 0xcf, 0x40, 0x36, 0x66,
587911f4379Salnsn 0x35, 0x9f, 0xa8, 0x95, 0x0b, 0xfb, 0x0c, 0xe8,
588911f4379Salnsn 0xdc, 0x12, 0x78, 0x4c, 0x52, 0xf4, 0xfc, 0x4a,
589911f4379Salnsn 0x77, 0xdd, 0x77, 0x34, 0xf7, 0x35, 0x94, 0x7a,
590911f4379Salnsn 0x31, 0x16, 0x86, 0x44, 0x50, 0x30, 0x1c, 0x6d,
591911f4379Salnsn 0x9f, 0x66, 0x49, 0xb5, 0xe6, 0x71, 0x00, 0x83,
592911f4379Salnsn 0xd1, 0xa0, 0x01, 0xff, 0xc3, 0x27, 0xaa, 0x9a,
593911f4379Salnsn 0xdb, 0xad, 0x24, 0xdb, 0xbd, 0xde, 0xfd, 0xa6,
594911f4379Salnsn 0xaa, 0x87, 0x98, 0x98, 0xde, 0x90, 0xd5, 0x40,
595911f4379Salnsn 0x20, 0x8f, 0xe9, 0xdd, 0xa8, 0xec, 0xd3, 0x18,
596911f4379Salnsn 0x20, 0x85, 0x5e, 0xd5, 0xe7, 0x50, 0x58, 0x15,
597911f4379Salnsn 0x69, 0x03, 0xa5, 0xe8, 0xa9, 0x7a, 0x0f, 0xd1,
598911f4379Salnsn 0x7d, 0x22, 0x8a, 0xe0, 0xc6, 0x17, 0x33, 0x00,
599911f4379Salnsn 0x57, 0xcb, 0xf6, 0x8d, 0xf0, 0xc1, 0x7b, 0xb5,
600911f4379Salnsn 0x96, 0x0f, 0x08, 0x84, 0x5b, 0x7e, 0xa6, 0x1e,
601911f4379Salnsn 0xd8, 0x5e, 0x0c, 0xca, 0x30, 0x4b, 0xe0, 0x87,
602911f4379Salnsn 0x2f, 0xbc, 0x07, 0x83, 0x35, 0x76, 0x36, 0x17,
603911f4379Salnsn 0xcf, 0xdb, 0x27, 0x53, 0x43, 0xf5, 0x07, 0xd0,
604911f4379Salnsn 0x91, 0x83, 0xa1, 0xaa, 0x8d, 0xdb, 0x00, 0x2b,
605911f4379Salnsn 0xd1, 0x88, 0xe5, 0x59, 0x47, 0x17, 0xf0, 0xe8,
606911f4379Salnsn 0xce, 0x3b, 0xa0, 0x73, 0x1f, 0x22, 0x9b, 0x1b,
607911f4379Salnsn 0x59, 0x02, 0xe6, 0xaf, 0x3f, 0xdd, 0xfe, 0xba,
608911f4379Salnsn 0xc3, 0x6b, 0xe5, 0x82, 0x02, 0x92, 0x0c, 0x5e,
609911f4379Salnsn 0x5a, 0x87, 0x88, 0x91, 0x00, 0xb5, 0x30, 0x37,
610911f4379Salnsn 0xf5, 0xc6, 0xdf, 0x0a, 0x7f, 0x03, 0x1c, 0x1f,
611911f4379Salnsn 0x20, 0xf1, 0xd4, 0x5f, 0x94, 0xc3, 0x6f, 0x21,
612911f4379Salnsn 0x5e, 0xf2, 0x77, 0x5a, 0x42, 0xfd, 0xd3, 0xc4,
613911f4379Salnsn 0x31, 0xaf, 0xd6, 0x6c, 0x6c, 0xde, 0x8c, 0x50,
614911f4379Salnsn 0x01, 0x8f, 0x57, 0x90, 0x88, 0x43, 0xf9, 0x44,
615911f4379Salnsn 0x09, 0x4d, 0x27, 0x58, 0x9f, 0xae, 0x50, 0x28,
616911f4379Salnsn 0x12, 0x47, 0x20, 0x79, 0x2b, 0xe4, 0x02, 0x97,
617911f4379Salnsn 0xcd, 0xab, 0x53, 0x28, 0x8f, 0x8f, 0xe3, 0x3b,
618911f4379Salnsn 0xd6, 0xc9, 0xc8, 0xff, 0xbf, 0x18, 0x3b, 0x75,
619911f4379Salnsn 0xdb, 0xcf, 0x07, 0x8c, 0xfe, 0x58, 0xee, 0x75,
620911f4379Salnsn 0x01, 0x98, 0x98, 0xe4, 0x60, 0xfe, 0xe6, 0x7f,
621911f4379Salnsn };
622911f4379Salnsn
623911f4379Salnsn /*
624911f4379Salnsn * IV method encblkno8, blkno 3.
625911f4379Salnsn */
626911f4379Salnsn static const uint8_t aes_cbc_128_encblkno8_vec3_ctxt[SECSIZE] = {
627911f4379Salnsn 0x98, 0xae, 0x82, 0x1d, 0x76, 0x3a, 0xfe, 0x80,
628911f4379Salnsn 0x04, 0xa3, 0x43, 0xf0, 0x06, 0x45, 0x83, 0xb7,
629911f4379Salnsn 0xe2, 0xb5, 0x73, 0x46, 0x78, 0x01, 0x2f, 0xd6,
630911f4379Salnsn 0x0d, 0x49, 0x64, 0x4c, 0xeb, 0x8d, 0xdc, 0xa9,
631911f4379Salnsn 0xdc, 0xea, 0x22, 0x25, 0xd4, 0x8f, 0xba, 0x9f,
632911f4379Salnsn 0xd4, 0x7a, 0x3c, 0x9e, 0xd0, 0xd9, 0xcd, 0xa4,
633911f4379Salnsn 0x12, 0xdf, 0x8f, 0x50, 0x24, 0x18, 0xa2, 0x0b,
634911f4379Salnsn 0xd9, 0x7f, 0xda, 0x78, 0xd6, 0x11, 0xf3, 0x99,
635911f4379Salnsn 0xc4, 0xec, 0x95, 0xe2, 0x85, 0xe1, 0xa0, 0x0d,
636911f4379Salnsn 0x07, 0x22, 0x56, 0xaf, 0x2f, 0xf5, 0x7d, 0x63,
637911f4379Salnsn 0xf2, 0x90, 0x6c, 0x26, 0x4f, 0xa5, 0x47, 0xcd,
638911f4379Salnsn 0x66, 0x2d, 0x4c, 0x4d, 0x94, 0x6a, 0x3c, 0x98,
639911f4379Salnsn 0xe4, 0x5e, 0x3b, 0x42, 0x3a, 0x93, 0x02, 0xd0,
640911f4379Salnsn 0x90, 0xc7, 0xcd, 0x87, 0x0e, 0x84, 0x82, 0xf5,
641911f4379Salnsn 0x77, 0x7b, 0x29, 0xe4, 0xea, 0x5b, 0x60, 0x50,
642911f4379Salnsn 0xf7, 0x60, 0x8d, 0xf7, 0xd8, 0xd7, 0x7d, 0x99,
643911f4379Salnsn 0x8a, 0xdc, 0xe2, 0xb9, 0x40, 0xac, 0x4b, 0x9f,
644911f4379Salnsn 0x55, 0x30, 0xcb, 0x5a, 0x73, 0x64, 0xf2, 0xca,
645911f4379Salnsn 0x76, 0x88, 0xf7, 0x55, 0xb5, 0x33, 0xc0, 0x44,
646911f4379Salnsn 0xdf, 0x42, 0xee, 0xc9, 0xc5, 0x2a, 0x47, 0x18,
647911f4379Salnsn 0x8b, 0x74, 0xb9, 0x4f, 0x2c, 0xd8, 0x7a, 0xd1,
648911f4379Salnsn 0x12, 0x19, 0xf9, 0x21, 0x8d, 0x21, 0x7e, 0x2a,
649911f4379Salnsn 0xcf, 0xd5, 0xbb, 0x69, 0xaa, 0x20, 0x25, 0xe0,
650911f4379Salnsn 0xf5, 0x3b, 0x33, 0x77, 0x63, 0xb2, 0x05, 0x5c,
651911f4379Salnsn 0x10, 0x9c, 0x61, 0x48, 0xf5, 0xe6, 0x04, 0xd3,
652911f4379Salnsn 0xc8, 0xb4, 0xf6, 0xcf, 0x22, 0x1c, 0xf6, 0xbb,
653911f4379Salnsn 0x4b, 0xd7, 0x5d, 0x23, 0xfa, 0x0e, 0xc0, 0xac,
654911f4379Salnsn 0x27, 0x38, 0x95, 0xd0, 0xdd, 0x83, 0xad, 0x9e,
655911f4379Salnsn 0xcf, 0xde, 0x99, 0xe7, 0x04, 0xb7, 0x23, 0x9f,
656911f4379Salnsn 0x46, 0x91, 0xb8, 0xcb, 0x18, 0xd0, 0xc5, 0xf8,
657911f4379Salnsn 0xec, 0xfc, 0x33, 0xb7, 0xbe, 0x2d, 0xe9, 0x3a,
658911f4379Salnsn 0x7f, 0x83, 0x5e, 0x44, 0x0f, 0x12, 0x6d, 0x05,
659911f4379Salnsn 0xaa, 0xfb, 0x80, 0x7a, 0xf6, 0xdb, 0x25, 0xc6,
660911f4379Salnsn 0x51, 0xf3, 0x5d, 0xf3, 0xa9, 0xb8, 0x34, 0x88,
661911f4379Salnsn 0x88, 0x25, 0xd5, 0xa3, 0xe5, 0x8e, 0xb2, 0xc7,
662911f4379Salnsn 0xdc, 0xd5, 0x2e, 0x99, 0xb9, 0xc5, 0x1d, 0x91,
663911f4379Salnsn 0x49, 0x7b, 0xa3, 0x5e, 0x4b, 0xaf, 0x29, 0x7b,
664911f4379Salnsn 0x37, 0xb5, 0x39, 0x2c, 0xdf, 0x3b, 0xb1, 0xd8,
665911f4379Salnsn 0xba, 0x14, 0xc9, 0xd3, 0x6d, 0x67, 0x6a, 0x80,
666911f4379Salnsn 0x89, 0x6f, 0x11, 0xc8, 0xbc, 0xd6, 0xc7, 0xab,
667911f4379Salnsn 0x42, 0x1f, 0xf4, 0xa2, 0xc0, 0x9c, 0x2d, 0xca,
668911f4379Salnsn 0x5f, 0xe6, 0x65, 0xfa, 0x28, 0x49, 0x99, 0xa3,
669911f4379Salnsn 0x0b, 0x7b, 0x7d, 0x39, 0xaa, 0xa6, 0xd8, 0x0a,
670911f4379Salnsn 0xfd, 0xde, 0x31, 0x86, 0x15, 0x95, 0x1e, 0x5c,
671911f4379Salnsn 0x05, 0x4e, 0x3c, 0x18, 0xee, 0xa9, 0x56, 0x9c,
672911f4379Salnsn 0x3c, 0xc3, 0x67, 0x84, 0x57, 0x77, 0x8d, 0xff,
673911f4379Salnsn 0xea, 0x34, 0x3c, 0xf9, 0x58, 0xb8, 0xdc, 0x4e,
674911f4379Salnsn 0xa1, 0x92, 0x2d, 0x9a, 0x91, 0x61, 0x23, 0x6a,
675911f4379Salnsn 0xd9, 0xb7, 0x41, 0xc5, 0x0d, 0xb6, 0x57, 0x58,
676911f4379Salnsn 0x42, 0x39, 0x4a, 0x86, 0x7e, 0x9d, 0xeb, 0x7d,
677911f4379Salnsn 0xa8, 0x14, 0x1a, 0x5c, 0xa1, 0x54, 0x34, 0xb6,
678911f4379Salnsn 0xb6, 0xbc, 0x1f, 0xf5, 0xe2, 0xb5, 0xe4, 0xa8,
679911f4379Salnsn 0x42, 0xe3, 0x3d, 0x06, 0x6b, 0x50, 0xbb, 0xa1,
680911f4379Salnsn 0x6b, 0x63, 0xe5, 0x60, 0x28, 0x07, 0x49, 0x06,
681911f4379Salnsn 0x61, 0x0e, 0xa3, 0x6c, 0xc3, 0xc8, 0x3e, 0x5a,
682911f4379Salnsn 0x9c, 0xa5, 0xb3, 0x9b, 0x8d, 0x46, 0xb9, 0xf5,
683911f4379Salnsn 0x4a, 0x4d, 0xbe, 0xc0, 0xc1, 0x24, 0x92, 0x09,
684911f4379Salnsn 0x7c, 0x9a, 0x21, 0x2c, 0x08, 0x8a, 0x0d, 0xfc,
685911f4379Salnsn 0xff, 0xda, 0xdc, 0xf1, 0x45, 0x66, 0xf9, 0xcd,
686911f4379Salnsn 0x64, 0x7c, 0x2f, 0x0e, 0x95, 0x5e, 0xec, 0x92,
687911f4379Salnsn 0xd1, 0x03, 0x03, 0xa0, 0xcc, 0x73, 0x92, 0x15,
688911f4379Salnsn 0x74, 0x42, 0x54, 0x48, 0x77, 0xbe, 0x96, 0xfb,
689911f4379Salnsn 0x1f, 0x0c, 0x7a, 0x25, 0x67, 0x6b, 0x85, 0x71,
690911f4379Salnsn 0x06, 0x15, 0xd3, 0x11, 0xfe, 0xf7, 0xa9, 0xb1,
691911f4379Salnsn };
692911f4379Salnsn
693911f4379Salnsn const struct testvec aes_cbc_128_8_vectors[] = {
694911f4379Salnsn {
695911f4379Salnsn .blkno = 0,
696911f4379Salnsn .ptxt = aes_cbc_ptxt,
697911f4379Salnsn .ctxt = aes_cbc_128_encblkno8_vec0_ctxt,
698911f4379Salnsn },
699911f4379Salnsn {
700911f4379Salnsn .blkno = 1,
701911f4379Salnsn .ptxt = aes_cbc_ptxt,
702911f4379Salnsn .ctxt = aes_cbc_128_encblkno8_vec1_ctxt,
703911f4379Salnsn },
704911f4379Salnsn {
705911f4379Salnsn .blkno = 2,
706911f4379Salnsn .ptxt = aes_cbc_ptxt,
707911f4379Salnsn .ctxt = aes_cbc_128_encblkno8_vec2_ctxt,
708911f4379Salnsn },
709911f4379Salnsn {
710911f4379Salnsn .blkno = 3,
711911f4379Salnsn .ptxt = aes_cbc_ptxt,
712911f4379Salnsn .ctxt = aes_cbc_128_encblkno8_vec3_ctxt,
713911f4379Salnsn },
714911f4379Salnsn };
715911f4379Salnsn
716911f4379Salnsn /*
717911f4379Salnsn * IV method encblkno1, blkno 0.
718911f4379Salnsn */
719911f4379Salnsn static const uint8_t aes_cbc_192_encblkno1_vec0_ctxt[SECSIZE] = {
720911f4379Salnsn 0x7c, 0xc4, 0xec, 0x89, 0x7c, 0x13, 0xac, 0x99,
721911f4379Salnsn 0x49, 0xa9, 0x96, 0xe7, 0xb1, 0x1a, 0xd6, 0xb0,
722911f4379Salnsn 0xeb, 0x89, 0x27, 0x0f, 0x8b, 0x1b, 0xab, 0x8e,
723911f4379Salnsn 0x2c, 0xd4, 0x00, 0x66, 0x12, 0x3a, 0x9a, 0x03,
724911f4379Salnsn 0xc4, 0x49, 0xa4, 0xf0, 0xc1, 0x90, 0xf9, 0x38,
725911f4379Salnsn 0xb2, 0x5c, 0xa5, 0x0d, 0x1b, 0x60, 0x94, 0xf6,
726911f4379Salnsn 0x31, 0x4a, 0x72, 0xdb, 0xfc, 0xe1, 0x3c, 0xd6,
727911f4379Salnsn 0x9d, 0x03, 0x07, 0x45, 0xdb, 0xad, 0xdb, 0xb3,
728911f4379Salnsn 0x86, 0xfa, 0xce, 0x2c, 0xeb, 0xa2, 0xac, 0x05,
729911f4379Salnsn 0xd9, 0x52, 0xb8, 0xae, 0xa9, 0x91, 0x86, 0x4b,
730911f4379Salnsn 0xbb, 0xf8, 0x03, 0xb0, 0x6c, 0x40, 0xcc, 0xbf,
731911f4379Salnsn 0xa3, 0x76, 0x60, 0xf7, 0x29, 0x03, 0xe6, 0x44,
732911f4379Salnsn 0xcc, 0x2a, 0xe7, 0x74, 0x8e, 0x62, 0xfe, 0x99,
733911f4379Salnsn 0x6a, 0x6d, 0x04, 0x1b, 0xe7, 0xf7, 0x9f, 0x13,
734911f4379Salnsn 0xa7, 0x1d, 0x93, 0x0e, 0x8f, 0xe0, 0x77, 0x9b,
735911f4379Salnsn 0xe3, 0x91, 0x67, 0x12, 0x33, 0x12, 0x42, 0x55,
736911f4379Salnsn 0x28, 0x04, 0x2d, 0x01, 0x2b, 0xd2, 0xda, 0xbe,
737911f4379Salnsn 0x7c, 0x83, 0xf2, 0x87, 0x71, 0x67, 0xaf, 0x6b,
738911f4379Salnsn 0x50, 0x6c, 0x8c, 0x9f, 0x48, 0xee, 0x90, 0x0c,
739911f4379Salnsn 0x9a, 0x9e, 0x40, 0xa8, 0x13, 0x2f, 0x58, 0xfb,
740911f4379Salnsn 0xdc, 0xb1, 0xda, 0xff, 0x06, 0x9c, 0xeb, 0x5e,
741911f4379Salnsn 0x0f, 0xaf, 0xc0, 0x9a, 0x47, 0x88, 0x25, 0xfd,
742911f4379Salnsn 0x19, 0x5e, 0xd4, 0xe0, 0x7f, 0xe0, 0x71, 0x7a,
743911f4379Salnsn 0x60, 0x54, 0xe7, 0x0d, 0xfe, 0x11, 0x9d, 0x77,
744911f4379Salnsn 0xbd, 0x9b, 0xd0, 0xf8, 0x77, 0xe4, 0x5b, 0x88,
745911f4379Salnsn 0x90, 0x12, 0x29, 0x88, 0xb6, 0xd9, 0x1e, 0x6c,
746911f4379Salnsn 0xbf, 0xa4, 0x18, 0xe1, 0xe0, 0x5e, 0xed, 0x48,
747911f4379Salnsn 0x9b, 0x05, 0x13, 0x37, 0x0f, 0x41, 0x54, 0xc8,
748911f4379Salnsn 0xe4, 0x25, 0x0e, 0x82, 0x5f, 0x81, 0xba, 0x5d,
749911f4379Salnsn 0x79, 0x8f, 0x9c, 0x17, 0x4b, 0x59, 0xf4, 0x5d,
750911f4379Salnsn 0xd6, 0x83, 0xfd, 0x44, 0xd0, 0xe1, 0x89, 0x09,
751911f4379Salnsn 0xf9, 0xe2, 0xb6, 0x9c, 0x1c, 0xbd, 0x13, 0xaa,
752911f4379Salnsn 0xa0, 0x43, 0xaa, 0xaf, 0x6d, 0x65, 0x73, 0xba,
753911f4379Salnsn 0x3a, 0x55, 0x69, 0x51, 0xb9, 0x52, 0x09, 0xaa,
754911f4379Salnsn 0x9f, 0x91, 0x3c, 0x65, 0xe2, 0x81, 0xdb, 0xe8,
755911f4379Salnsn 0x5a, 0xe3, 0x74, 0x11, 0x7b, 0xec, 0x2f, 0x18,
756911f4379Salnsn 0x8d, 0x4c, 0x8f, 0xf2, 0x06, 0x3d, 0x22, 0xc6,
757911f4379Salnsn 0x43, 0xef, 0x42, 0x7d, 0xe1, 0xe7, 0xde, 0x4c,
758911f4379Salnsn 0x58, 0xad, 0x40, 0xbb, 0x8b, 0xce, 0x1f, 0x57,
759911f4379Salnsn 0x8e, 0x6a, 0x27, 0x43, 0x46, 0x7f, 0x94, 0xe5,
760911f4379Salnsn 0x45, 0x67, 0x12, 0xc8, 0x99, 0x85, 0x08, 0x2a,
761911f4379Salnsn 0x37, 0x40, 0x0b, 0xb5, 0xd9, 0xa3, 0xf7, 0xc8,
762911f4379Salnsn 0x87, 0xb1, 0xe6, 0x87, 0x2f, 0x86, 0xd8, 0x9c,
763911f4379Salnsn 0x7b, 0xec, 0xcf, 0xa4, 0xe5, 0xd5, 0x50, 0x3f,
764911f4379Salnsn 0xdf, 0xc9, 0xb7, 0x29, 0x97, 0xd6, 0x33, 0xba,
765911f4379Salnsn 0xf0, 0x72, 0xf0, 0x76, 0x12, 0xd3, 0x99, 0x4f,
766911f4379Salnsn 0x1b, 0x36, 0xda, 0xa1, 0x83, 0xfe, 0xf5, 0x94,
767911f4379Salnsn 0x9e, 0x61, 0x82, 0x62, 0xe0, 0x08, 0x3a, 0xbd,
768911f4379Salnsn 0xba, 0x8b, 0x3d, 0xd6, 0xbd, 0x16, 0x5f, 0xd7,
769911f4379Salnsn 0x1d, 0x6c, 0x0e, 0x92, 0x89, 0x8c, 0x38, 0x62,
770911f4379Salnsn 0x80, 0xee, 0x7e, 0x63, 0x82, 0x88, 0x0b, 0xbf,
771911f4379Salnsn 0xdd, 0x9f, 0xbc, 0xba, 0xa7, 0x5a, 0xc6, 0x0d,
772911f4379Salnsn 0x87, 0x59, 0xbf, 0x0a, 0x85, 0x06, 0xa3, 0xb4,
773911f4379Salnsn 0x66, 0x63, 0xda, 0x12, 0x29, 0x5f, 0x2e, 0x4d,
774911f4379Salnsn 0x60, 0xfd, 0x85, 0x76, 0xaf, 0xf7, 0x87, 0xed,
775911f4379Salnsn 0x1f, 0x46, 0xc2, 0xd6, 0x6c, 0x98, 0x6b, 0x4b,
776911f4379Salnsn 0x60, 0x04, 0xed, 0x89, 0x3b, 0x85, 0x6c, 0xe9,
777911f4379Salnsn 0x46, 0xd9, 0xfa, 0x35, 0x61, 0xe8, 0x0c, 0x84,
778911f4379Salnsn 0x1b, 0x93, 0xc0, 0xfe, 0x5d, 0x29, 0x14, 0xe1,
779911f4379Salnsn 0x1c, 0x66, 0x73, 0xc8, 0x0b, 0x98, 0xff, 0x1a,
780911f4379Salnsn 0x78, 0x2b, 0x6a, 0x93, 0x7a, 0x29, 0xd8, 0x7b,
781911f4379Salnsn 0xb1, 0x39, 0xf0, 0xad, 0x93, 0x4d, 0x2d, 0xab,
782911f4379Salnsn 0x67, 0x3c, 0xa4, 0xa1, 0x08, 0x36, 0x0b, 0xe9,
783911f4379Salnsn 0x77, 0xd0, 0xe3, 0x45, 0x7d, 0x99, 0x75, 0xc3,
784911f4379Salnsn };
785911f4379Salnsn
786911f4379Salnsn /*
787911f4379Salnsn * IV method encblkno1, blkno 1.
788911f4379Salnsn */
789911f4379Salnsn static const uint8_t aes_cbc_192_encblkno1_vec1_ctxt[SECSIZE] = {
790911f4379Salnsn 0xe6, 0x41, 0x75, 0xd6, 0x80, 0xdf, 0x44, 0x37,
791911f4379Salnsn 0xa7, 0xa2, 0xb2, 0x29, 0x0d, 0xf0, 0x02, 0x78,
792911f4379Salnsn 0x92, 0xb2, 0x06, 0x5f, 0x86, 0xd3, 0x9c, 0xa3,
793911f4379Salnsn 0xd0, 0xc5, 0x08, 0x03, 0x6d, 0x41, 0x9d, 0x61,
794911f4379Salnsn 0xb4, 0xb9, 0xa1, 0x69, 0x6e, 0x3a, 0x78, 0xd7,
795911f4379Salnsn 0x04, 0x94, 0xf2, 0x53, 0xed, 0xd1, 0xf6, 0xd8,
796911f4379Salnsn 0x98, 0xe2, 0x49, 0x75, 0x15, 0x85, 0xe0, 0x78,
797911f4379Salnsn 0x5b, 0x28, 0x5e, 0xe6, 0xfa, 0x60, 0x3d, 0x4b,
798911f4379Salnsn 0x8c, 0xf1, 0x1a, 0xfd, 0x1f, 0xe8, 0xad, 0xb4,
799911f4379Salnsn 0xa1, 0xe7, 0xd3, 0x71, 0x16, 0xdf, 0xc6, 0x95,
800911f4379Salnsn 0xd4, 0x43, 0xaf, 0x92, 0xab, 0x74, 0x0f, 0x77,
801911f4379Salnsn 0x75, 0x4d, 0xd7, 0x13, 0x97, 0x18, 0xea, 0x43,
802911f4379Salnsn 0x92, 0x0d, 0x88, 0xc8, 0x41, 0xf7, 0x15, 0x34,
803911f4379Salnsn 0x0f, 0x63, 0xbf, 0x50, 0x18, 0xbe, 0x9d, 0x3b,
804911f4379Salnsn 0xfc, 0x17, 0x7d, 0x03, 0x39, 0xc2, 0x39, 0x28,
805911f4379Salnsn 0xb2, 0x23, 0x1c, 0x7f, 0x3f, 0x19, 0x6c, 0x2f,
806911f4379Salnsn 0x64, 0xbd, 0xc9, 0x7d, 0xbe, 0x98, 0xe0, 0x83,
807911f4379Salnsn 0xa4, 0x48, 0xfc, 0x89, 0xe7, 0xe0, 0x93, 0x93,
808911f4379Salnsn 0x7b, 0x15, 0x35, 0xaf, 0xf8, 0x00, 0x81, 0xcc,
809911f4379Salnsn 0x04, 0x80, 0x8b, 0x20, 0xc8, 0x6a, 0xb7, 0x5e,
810911f4379Salnsn 0x95, 0xce, 0x69, 0x50, 0x39, 0x88, 0x90, 0x41,
811911f4379Salnsn 0x3f, 0xa8, 0x62, 0x42, 0xf1, 0xa9, 0x56, 0xce,
812911f4379Salnsn 0x25, 0x53, 0x1d, 0x97, 0x5d, 0x3a, 0x4e, 0x6b,
813911f4379Salnsn 0x1f, 0xd6, 0xea, 0x20, 0x81, 0x6c, 0xe5, 0xa1,
814911f4379Salnsn 0x0d, 0x9a, 0xd9, 0x3c, 0xbb, 0xbc, 0xc1, 0x77,
815911f4379Salnsn 0xe2, 0xf4, 0x9c, 0x11, 0x3a, 0x2f, 0xd0, 0x77,
816911f4379Salnsn 0x10, 0xa6, 0x36, 0xd1, 0xbf, 0x3b, 0x50, 0x39,
817911f4379Salnsn 0x4b, 0x2c, 0x62, 0x06, 0x1a, 0xe4, 0x18, 0xc0,
818911f4379Salnsn 0x35, 0x7c, 0xc3, 0xd0, 0x22, 0xf8, 0xee, 0x19,
819911f4379Salnsn 0xa5, 0x3d, 0x69, 0xa9, 0x34, 0xe6, 0x29, 0xf9,
820911f4379Salnsn 0xf1, 0xff, 0x26, 0x7a, 0x66, 0x13, 0x1a, 0xa2,
821911f4379Salnsn 0xc6, 0xac, 0x84, 0xf6, 0x6b, 0x09, 0xbd, 0x32,
822911f4379Salnsn 0x6f, 0x26, 0x37, 0x7c, 0x7d, 0x74, 0xe4, 0xa0,
823911f4379Salnsn 0xeb, 0x85, 0x7a, 0xa1, 0x92, 0x19, 0x2e, 0x64,
824911f4379Salnsn 0x82, 0x7c, 0x89, 0x1b, 0x14, 0x92, 0xd1, 0xf4,
825911f4379Salnsn 0x1f, 0x29, 0x84, 0x04, 0x70, 0x09, 0x13, 0x4c,
826911f4379Salnsn 0x62, 0x9a, 0xb4, 0xf7, 0xc1, 0x7b, 0x83, 0xd1,
827911f4379Salnsn 0x2d, 0x1a, 0xbe, 0x83, 0x9b, 0x73, 0xba, 0x8d,
828911f4379Salnsn 0xbb, 0xb0, 0xf2, 0x5c, 0x72, 0x75, 0x01, 0x0b,
829911f4379Salnsn 0xa6, 0x43, 0x6b, 0x76, 0x56, 0x4e, 0x71, 0x1b,
830911f4379Salnsn 0xb2, 0x34, 0x1f, 0x70, 0x44, 0xe6, 0xfb, 0x67,
831911f4379Salnsn 0xd1, 0x4d, 0x63, 0xce, 0x17, 0x46, 0x9b, 0x11,
832911f4379Salnsn 0xda, 0x93, 0xf8, 0x03, 0x11, 0x8f, 0x90, 0xff,
833911f4379Salnsn 0x80, 0x85, 0x02, 0x1f, 0xb6, 0x6a, 0x28, 0x3f,
834911f4379Salnsn 0x01, 0xa8, 0x36, 0x2e, 0xc7, 0x42, 0xd4, 0x02,
835911f4379Salnsn 0x26, 0xea, 0xb5, 0x84, 0x6c, 0x9f, 0xa0, 0x4a,
836911f4379Salnsn 0x73, 0x49, 0xea, 0x91, 0x4d, 0x62, 0xf8, 0x23,
837911f4379Salnsn 0xe4, 0x3d, 0x91, 0xfb, 0x53, 0x2c, 0x8c, 0xa4,
838911f4379Salnsn 0xfe, 0x81, 0x05, 0x5d, 0x4b, 0x9a, 0x75, 0x29,
839911f4379Salnsn 0xf8, 0xbe, 0x3f, 0x05, 0xb4, 0x8f, 0xdc, 0xcc,
840911f4379Salnsn 0xfa, 0xcc, 0xd7, 0xb2, 0x06, 0x03, 0xd4, 0xf3,
841911f4379Salnsn 0x8e, 0x09, 0x09, 0x80, 0xf8, 0xc3, 0x3b, 0x66,
842911f4379Salnsn 0xe9, 0x9c, 0x5b, 0x16, 0xed, 0x2d, 0x35, 0x1c,
843911f4379Salnsn 0x99, 0x3b, 0x1f, 0x0e, 0x04, 0x30, 0x23, 0x3a,
844911f4379Salnsn 0x83, 0x0c, 0xec, 0x76, 0xf2, 0x5d, 0x13, 0x54,
845911f4379Salnsn 0x15, 0x62, 0x36, 0x26, 0x6b, 0x21, 0x62, 0xdd,
846911f4379Salnsn 0xb4, 0x1a, 0x57, 0x16, 0xfd, 0xa0, 0x9c, 0xfa,
847911f4379Salnsn 0x37, 0xb3, 0xda, 0xe0, 0x46, 0x91, 0xb3, 0x20,
848911f4379Salnsn 0xe7, 0xe2, 0xf3, 0x0e, 0x20, 0x3c, 0x98, 0x1b,
849911f4379Salnsn 0xe4, 0xc2, 0xd3, 0xa9, 0x97, 0xaf, 0x12, 0x69,
850911f4379Salnsn 0x23, 0x97, 0x62, 0x6e, 0xae, 0x54, 0x9c, 0x82,
851911f4379Salnsn 0x92, 0x50, 0x74, 0x07, 0x4a, 0xb1, 0xdc, 0xcf,
852911f4379Salnsn 0x53, 0x1d, 0xc8, 0x29, 0x1f, 0x6e, 0xf1, 0x13,
853911f4379Salnsn 0xec, 0xb6, 0x60, 0xb1, 0x4c, 0x9d, 0xd7, 0x77,
854911f4379Salnsn };
855911f4379Salnsn
856911f4379Salnsn /*
857911f4379Salnsn * IV method encblkno1, blkno 2.
858911f4379Salnsn */
859911f4379Salnsn static const uint8_t aes_cbc_192_encblkno1_vec2_ctxt[SECSIZE] = {
860911f4379Salnsn 0x33, 0xfd, 0xfa, 0x44, 0x64, 0x75, 0x22, 0x7e,
861911f4379Salnsn 0xe3, 0xb3, 0xa0, 0x75, 0x99, 0x96, 0xc0, 0xec,
862911f4379Salnsn 0x56, 0x06, 0x7d, 0x19, 0x0b, 0x66, 0x89, 0xe0,
863911f4379Salnsn 0x69, 0x1d, 0x93, 0x91, 0xd7, 0x0f, 0xf8, 0xf5,
864911f4379Salnsn 0x5a, 0x39, 0x30, 0xad, 0x64, 0x42, 0x06, 0xa3,
865911f4379Salnsn 0xce, 0x3f, 0x67, 0xd6, 0x6e, 0xcd, 0x3b, 0xf5,
866911f4379Salnsn 0x03, 0x2b, 0x07, 0x83, 0x18, 0x1a, 0x4f, 0x4c,
867911f4379Salnsn 0xe7, 0x6b, 0xe8, 0xf9, 0x19, 0xa5, 0x23, 0x8f,
868911f4379Salnsn 0x46, 0x35, 0x13, 0x7b, 0x61, 0x05, 0xfc, 0x7d,
869911f4379Salnsn 0x17, 0x39, 0x03, 0xa8, 0xec, 0x7a, 0xd2, 0x5f,
870911f4379Salnsn 0x91, 0xa7, 0x26, 0x07, 0x9d, 0xd7, 0x0c, 0xd7,
871911f4379Salnsn 0xd4, 0x8e, 0x37, 0xf3, 0x1a, 0x3c, 0x04, 0x83,
872911f4379Salnsn 0x04, 0x71, 0x06, 0xa6, 0x5f, 0x82, 0xe0, 0x6d,
873911f4379Salnsn 0x87, 0x5c, 0x7c, 0x03, 0x25, 0x03, 0x4b, 0x24,
874911f4379Salnsn 0x07, 0x40, 0xad, 0xe4, 0x1d, 0x1d, 0xcb, 0x34,
875911f4379Salnsn 0xc2, 0x53, 0x1d, 0x13, 0xc5, 0x87, 0xab, 0xa7,
876911f4379Salnsn 0x95, 0x11, 0x8b, 0xbb, 0xf0, 0xc3, 0x00, 0xeb,
877911f4379Salnsn 0xe5, 0xb0, 0x9e, 0x88, 0x8b, 0xad, 0xca, 0xcb,
878911f4379Salnsn 0x17, 0xf8, 0x92, 0x4d, 0x00, 0xb0, 0x08, 0x74,
879911f4379Salnsn 0x08, 0xb9, 0x8b, 0x95, 0x96, 0xd9, 0x36, 0x35,
880911f4379Salnsn 0x31, 0x92, 0x89, 0xf6, 0x35, 0x33, 0xfb, 0x18,
881911f4379Salnsn 0x5b, 0x84, 0xa1, 0xfe, 0xe1, 0x62, 0x04, 0x6f,
882911f4379Salnsn 0x3c, 0xc1, 0xd2, 0xc2, 0x10, 0xd7, 0x97, 0xba,
883911f4379Salnsn 0x29, 0x7c, 0xe3, 0x85, 0xee, 0x59, 0x90, 0xaf,
884911f4379Salnsn 0x7f, 0x6f, 0x97, 0x97, 0xa2, 0x41, 0x18, 0x7f,
885911f4379Salnsn 0x2f, 0x06, 0x15, 0xb2, 0x46, 0x82, 0x49, 0x39,
886911f4379Salnsn 0xd0, 0xfb, 0xa8, 0x48, 0x44, 0x28, 0x58, 0xff,
887911f4379Salnsn 0xd8, 0xf2, 0x65, 0xf9, 0x4f, 0x2c, 0xbe, 0xec,
888911f4379Salnsn 0xb6, 0xdf, 0x27, 0x1a, 0xf2, 0x05, 0x15, 0x5e,
889911f4379Salnsn 0xe3, 0x2a, 0x98, 0x29, 0x92, 0x4a, 0x1b, 0x5d,
890911f4379Salnsn 0x5c, 0x2c, 0x70, 0xf6, 0x41, 0xd4, 0xbe, 0x64,
891911f4379Salnsn 0xa1, 0xd9, 0x79, 0xf1, 0x11, 0x16, 0xda, 0xa2,
892911f4379Salnsn 0xaf, 0xdd, 0x4d, 0xa8, 0xed, 0xec, 0xbe, 0x7d,
893911f4379Salnsn 0x49, 0x6c, 0x30, 0xf2, 0xf5, 0x36, 0x3c, 0xae,
894911f4379Salnsn 0x4b, 0xa7, 0x77, 0xa3, 0xca, 0x22, 0xa5, 0xe2,
895911f4379Salnsn 0x4d, 0x44, 0xcb, 0x36, 0xd5, 0x3f, 0x20, 0x13,
896911f4379Salnsn 0xb6, 0xfb, 0xcd, 0x79, 0xd7, 0x42, 0xf9, 0x75,
897911f4379Salnsn 0x09, 0x45, 0x28, 0x9e, 0xf2, 0xbd, 0x15, 0x57,
898911f4379Salnsn 0xf8, 0x4b, 0xc0, 0xd3, 0xb3, 0xb8, 0xde, 0x55,
899911f4379Salnsn 0x9e, 0x11, 0x67, 0xab, 0xc5, 0x5d, 0x58, 0xdb,
900911f4379Salnsn 0x4d, 0x20, 0x34, 0x77, 0x33, 0x9c, 0x46, 0x76,
901911f4379Salnsn 0x9b, 0x1e, 0x0e, 0x6b, 0x4e, 0xd9, 0x63, 0x68,
902911f4379Salnsn 0x78, 0x5e, 0x7c, 0x52, 0xa2, 0x64, 0xa9, 0xfc,
903911f4379Salnsn 0x21, 0x35, 0x17, 0x93, 0x18, 0x9e, 0x10, 0xcf,
904911f4379Salnsn 0x95, 0x6b, 0xf0, 0x55, 0x46, 0xc3, 0x4b, 0xfc,
905911f4379Salnsn 0x86, 0x8b, 0x0d, 0x3b, 0x5c, 0x30, 0xcc, 0xf1,
906911f4379Salnsn 0x4c, 0x43, 0xf0, 0xd6, 0xf6, 0x3b, 0x0b, 0x68,
907911f4379Salnsn 0x6f, 0x21, 0xd1, 0x61, 0xda, 0x35, 0x92, 0x94,
908911f4379Salnsn 0xa5, 0x5d, 0x47, 0x39, 0x96, 0x50, 0x5f, 0xbd,
909911f4379Salnsn 0x57, 0x22, 0xd2, 0x65, 0x73, 0x05, 0x8f, 0x2b,
910911f4379Salnsn 0xf2, 0x96, 0x53, 0x6b, 0x8e, 0xd3, 0x1e, 0xe7,
911911f4379Salnsn 0x92, 0xd4, 0xea, 0x41, 0xee, 0x92, 0x4d, 0x10,
912911f4379Salnsn 0x9f, 0x68, 0xd8, 0xe9, 0xac, 0x1f, 0x38, 0x0b,
913911f4379Salnsn 0x12, 0xa4, 0x1c, 0xb2, 0x63, 0x2b, 0x87, 0x07,
914911f4379Salnsn 0xb8, 0x1e, 0x02, 0x2b, 0x4d, 0xad, 0x99, 0xdf,
915911f4379Salnsn 0xe3, 0x98, 0x69, 0x29, 0x11, 0xe3, 0x77, 0x45,
916911f4379Salnsn 0x9a, 0xe9, 0x6c, 0x47, 0x4e, 0xc0, 0x85, 0x15,
917911f4379Salnsn 0x68, 0x58, 0x41, 0x37, 0xab, 0x96, 0x11, 0x94,
918911f4379Salnsn 0x9e, 0xbb, 0xa8, 0x5d, 0x51, 0x05, 0x93, 0xdd,
919911f4379Salnsn 0x2e, 0xb8, 0xdf, 0xcf, 0x83, 0xbc, 0xf6, 0x53,
920911f4379Salnsn 0x95, 0x93, 0x27, 0xda, 0xa5, 0x20, 0x1b, 0x7d,
921911f4379Salnsn 0x1d, 0xd9, 0x0c, 0xde, 0xe5, 0x3f, 0xc8, 0x60,
922911f4379Salnsn 0x16, 0x32, 0x95, 0x24, 0xa7, 0x2b, 0x74, 0xf1,
923911f4379Salnsn 0x67, 0xf9, 0xf2, 0x49, 0xda, 0x12, 0x97, 0xdd,
924911f4379Salnsn };
925911f4379Salnsn
926911f4379Salnsn /*
927911f4379Salnsn * IV method encblkno1, blkno 3.
928911f4379Salnsn */
929911f4379Salnsn static const uint8_t aes_cbc_192_encblkno1_vec3_ctxt[SECSIZE] = {
930911f4379Salnsn 0xa5, 0x81, 0x86, 0x78, 0x4a, 0xd7, 0x5b, 0x83,
931911f4379Salnsn 0xcf, 0xbf, 0x7e, 0x3c, 0xd7, 0xcd, 0xaf, 0xfa,
932911f4379Salnsn 0x82, 0x18, 0xce, 0xbd, 0x8b, 0xe6, 0xd9, 0x39,
933911f4379Salnsn 0x22, 0x2d, 0x1e, 0x75, 0x65, 0xee, 0x61, 0xf2,
934911f4379Salnsn 0xc3, 0x8b, 0xf4, 0x40, 0x03, 0x73, 0x8a, 0x21,
935911f4379Salnsn 0x9f, 0xf3, 0xcc, 0x93, 0x08, 0x3d, 0xff, 0x8a,
936911f4379Salnsn 0xbc, 0x0f, 0x19, 0xa1, 0x9f, 0xc8, 0x73, 0xe8,
937911f4379Salnsn 0xa6, 0x14, 0x2e, 0x43, 0x19, 0x79, 0x61, 0x35,
938911f4379Salnsn 0x8d, 0x55, 0x06, 0xeb, 0x96, 0xe7, 0xf5, 0x4b,
939911f4379Salnsn 0x95, 0x5f, 0x9b, 0xb2, 0x18, 0x0d, 0x13, 0xc2,
940911f4379Salnsn 0x96, 0x79, 0x50, 0x78, 0x98, 0x50, 0x88, 0x2b,
941911f4379Salnsn 0xab, 0x05, 0x66, 0xa1, 0x3a, 0x25, 0x85, 0xe2,
942911f4379Salnsn 0xd0, 0xe2, 0xac, 0xb5, 0x26, 0xde, 0x95, 0x04,
943911f4379Salnsn 0x45, 0xe7, 0x22, 0x71, 0x02, 0xb3, 0x84, 0x4c,
944911f4379Salnsn 0xb5, 0xad, 0x64, 0x5c, 0x27, 0x5c, 0x71, 0xcd,
945911f4379Salnsn 0x0b, 0x62, 0x91, 0xd6, 0x84, 0x00, 0x62, 0x52,
946911f4379Salnsn 0x54, 0xbd, 0x22, 0xc8, 0x57, 0xa7, 0x41, 0xac,
947911f4379Salnsn 0xc7, 0xa8, 0x56, 0x6f, 0x1b, 0x7e, 0xce, 0x02,
948911f4379Salnsn 0x29, 0x3b, 0xc0, 0x5d, 0x8e, 0x11, 0xa9, 0x54,
949911f4379Salnsn 0xc2, 0xf2, 0xf0, 0x81, 0x6c, 0x9a, 0x24, 0x5b,
950911f4379Salnsn 0x81, 0x7d, 0xf3, 0x84, 0x93, 0xc6, 0x2a, 0xd4,
951911f4379Salnsn 0xd3, 0x1a, 0x2f, 0x97, 0x2e, 0x31, 0x8a, 0x62,
952911f4379Salnsn 0x43, 0xcb, 0xc7, 0x3d, 0x73, 0x8e, 0xd6, 0x86,
953911f4379Salnsn 0x17, 0x8f, 0x63, 0xd4, 0xb1, 0x50, 0x92, 0xce,
954911f4379Salnsn 0x90, 0x37, 0x91, 0xce, 0x37, 0x13, 0x8e, 0x61,
955911f4379Salnsn 0x21, 0xd8, 0x1a, 0xbf, 0x42, 0x65, 0x1d, 0x86,
956911f4379Salnsn 0x07, 0x04, 0x9b, 0xd1, 0xd3, 0x26, 0x6b, 0x7c,
957911f4379Salnsn 0xa1, 0x77, 0x54, 0x5b, 0x9f, 0x95, 0x62, 0x43,
958911f4379Salnsn 0xb3, 0x71, 0x1e, 0x4c, 0x32, 0xd1, 0x3e, 0xe8,
959911f4379Salnsn 0x60, 0x9c, 0x0c, 0x15, 0x55, 0xf0, 0x38, 0xb7,
960911f4379Salnsn 0x1e, 0x40, 0xe5, 0x26, 0x4e, 0x46, 0x49, 0x47,
961911f4379Salnsn 0x59, 0x3d, 0x49, 0x76, 0x28, 0xd3, 0xed, 0x03,
962911f4379Salnsn 0xdd, 0xf8, 0x1a, 0xf4, 0x1a, 0xfe, 0xe4, 0x03,
963911f4379Salnsn 0xb9, 0xa5, 0x8e, 0x7c, 0x91, 0x7a, 0xb2, 0x17,
964911f4379Salnsn 0x84, 0x97, 0x3f, 0x12, 0x68, 0xaa, 0xf5, 0x73,
965911f4379Salnsn 0xbc, 0x84, 0xdd, 0x03, 0x4a, 0xc4, 0xcd, 0xdb,
966911f4379Salnsn 0xb0, 0x8a, 0x3b, 0xac, 0xf1, 0xdd, 0x10, 0x20,
967911f4379Salnsn 0x69, 0xee, 0x94, 0xcd, 0x60, 0x3f, 0x01, 0xcf,
968911f4379Salnsn 0xf4, 0xff, 0xdb, 0x91, 0x8a, 0xf3, 0xb8, 0x44,
969911f4379Salnsn 0x62, 0xdc, 0xdc, 0xc8, 0x2b, 0xaf, 0x0d, 0x5e,
970911f4379Salnsn 0x1b, 0x58, 0x7f, 0x6b, 0x0d, 0xc4, 0xd4, 0x1c,
971911f4379Salnsn 0x89, 0x29, 0x60, 0x5d, 0xe9, 0x59, 0xbb, 0x19,
972911f4379Salnsn 0x03, 0x7c, 0x25, 0x63, 0xc6, 0x89, 0x6f, 0xe6,
973911f4379Salnsn 0xbe, 0xcd, 0xaa, 0xf2, 0xbf, 0x16, 0xcb, 0x47,
974911f4379Salnsn 0xc6, 0x74, 0xdd, 0x90, 0x41, 0x75, 0x7f, 0x26,
975911f4379Salnsn 0x7b, 0x5a, 0xb9, 0x11, 0xa0, 0xc7, 0x75, 0x60,
976911f4379Salnsn 0xc5, 0x54, 0x7d, 0xb0, 0xb4, 0xd0, 0x95, 0x01,
977911f4379Salnsn 0xff, 0x07, 0x49, 0x56, 0xfb, 0xec, 0xa9, 0x4c,
978911f4379Salnsn 0x68, 0x28, 0x41, 0x81, 0x80, 0x05, 0x88, 0x58,
979911f4379Salnsn 0xf5, 0xdc, 0x42, 0x99, 0xd8, 0xb7, 0x47, 0xd9,
980911f4379Salnsn 0xf7, 0x0e, 0x2c, 0x0f, 0x95, 0x04, 0xb3, 0xc8,
981911f4379Salnsn 0x8a, 0xe2, 0x21, 0x57, 0x8d, 0x64, 0x54, 0x40,
982911f4379Salnsn 0xf6, 0xd0, 0x3c, 0x97, 0xcf, 0x22, 0xce, 0xcd,
983911f4379Salnsn 0xbf, 0x05, 0x15, 0xaa, 0x89, 0xd9, 0x2b, 0x48,
984911f4379Salnsn 0xaf, 0x34, 0xe0, 0xf5, 0xe3, 0x58, 0x06, 0xd7,
985911f4379Salnsn 0x49, 0x00, 0x95, 0x3a, 0xb3, 0xc8, 0xcd, 0x2b,
986911f4379Salnsn 0x3e, 0xe8, 0x1b, 0x60, 0xe8, 0xea, 0xaf, 0x09,
987911f4379Salnsn 0xbb, 0xee, 0xce, 0xbc, 0xa0, 0x9b, 0x17, 0x90,
988911f4379Salnsn 0x42, 0x40, 0x18, 0x35, 0x2e, 0x17, 0xa0, 0x6e,
989911f4379Salnsn 0x43, 0xe7, 0xac, 0x89, 0x96, 0x3c, 0x16, 0xe0,
990911f4379Salnsn 0xdb, 0x09, 0x51, 0x4a, 0x45, 0x33, 0x63, 0xe9,
991911f4379Salnsn 0x4e, 0x3f, 0x32, 0x34, 0x36, 0x43, 0xd5, 0x0c,
992911f4379Salnsn 0x5a, 0x2e, 0x0e, 0x8b, 0x80, 0xb7, 0xf4, 0xe4,
993911f4379Salnsn 0x99, 0x9b, 0x05, 0xf5, 0xb2, 0xe4, 0x03, 0xe4,
994911f4379Salnsn };
995911f4379Salnsn
996911f4379Salnsn const struct testvec aes_cbc_192_1_vectors[] = {
997911f4379Salnsn {
998911f4379Salnsn .blkno = 0,
999911f4379Salnsn .ptxt = aes_cbc_ptxt,
1000911f4379Salnsn .ctxt = aes_cbc_192_encblkno1_vec0_ctxt,
1001911f4379Salnsn },
1002911f4379Salnsn {
1003911f4379Salnsn .blkno = 1,
1004911f4379Salnsn .ptxt = aes_cbc_ptxt,
1005911f4379Salnsn .ctxt = aes_cbc_192_encblkno1_vec1_ctxt,
1006911f4379Salnsn },
1007911f4379Salnsn {
1008911f4379Salnsn .blkno = 2,
1009911f4379Salnsn .ptxt = aes_cbc_ptxt,
1010911f4379Salnsn .ctxt = aes_cbc_192_encblkno1_vec2_ctxt,
1011911f4379Salnsn },
1012911f4379Salnsn {
1013911f4379Salnsn .blkno = 3,
1014911f4379Salnsn .ptxt = aes_cbc_ptxt,
1015911f4379Salnsn .ctxt = aes_cbc_192_encblkno1_vec3_ctxt,
1016911f4379Salnsn },
1017911f4379Salnsn };
1018911f4379Salnsn
1019911f4379Salnsn /*
1020911f4379Salnsn * IV method encblkno8, blkno 0.
1021911f4379Salnsn */
1022911f4379Salnsn static const uint8_t aes_cbc_192_encblkno8_vec0_ctxt[SECSIZE] = {
1023911f4379Salnsn 0x87, 0x9c, 0x05, 0xd6, 0x25, 0xb9, 0xe0, 0xbe,
1024911f4379Salnsn 0x78, 0x21, 0x85, 0x81, 0x8e, 0x2f, 0x13, 0x5e,
1025911f4379Salnsn 0xf2, 0x73, 0x11, 0xfa, 0x73, 0x77, 0x93, 0x5e,
1026911f4379Salnsn 0x71, 0x16, 0x98, 0x68, 0x6f, 0xe8, 0x22, 0x34,
1027911f4379Salnsn 0xf5, 0x11, 0xfa, 0x61, 0xe6, 0x1a, 0xfb, 0x42,
1028911f4379Salnsn 0xa7, 0xa3, 0x2e, 0x0d, 0xc1, 0x9d, 0x7d, 0xd9,
1029911f4379Salnsn 0xfb, 0xbb, 0xc5, 0x08, 0x9d, 0xc2, 0xab, 0x5c,
1030911f4379Salnsn 0xdf, 0x9b, 0x3c, 0x1a, 0xbd, 0x66, 0x5a, 0x91,
1031911f4379Salnsn 0x1c, 0x00, 0x59, 0x2e, 0x92, 0xe9, 0x23, 0xf6,
1032911f4379Salnsn 0x90, 0x3d, 0x5b, 0x72, 0x76, 0x78, 0xd9, 0xa2,
1033911f4379Salnsn 0x48, 0x33, 0x29, 0xe2, 0xfd, 0x77, 0x14, 0xda,
1034911f4379Salnsn 0x01, 0x92, 0x63, 0xdd, 0x8c, 0x1c, 0x2e, 0xf7,
1035911f4379Salnsn 0x61, 0xfb, 0xc5, 0x76, 0xec, 0x7f, 0xef, 0xdc,
1036911f4379Salnsn 0xbe, 0x2d, 0x3b, 0x69, 0x30, 0xb9, 0x08, 0x00,
1037911f4379Salnsn 0xe8, 0x37, 0x09, 0xaa, 0x2a, 0x02, 0x80, 0x11,
1038911f4379Salnsn 0x91, 0x16, 0x94, 0x7d, 0xb5, 0xdc, 0x9f, 0xb3,
1039911f4379Salnsn 0xb0, 0x26, 0x72, 0x85, 0x93, 0x85, 0x19, 0x08,
1040911f4379Salnsn 0x97, 0xef, 0x97, 0x57, 0xa8, 0x76, 0x0e, 0x85,
1041911f4379Salnsn 0xb1, 0x1d, 0x79, 0xe3, 0x7a, 0xe8, 0x06, 0x3b,
1042911f4379Salnsn 0xc4, 0x00, 0xbd, 0xaa, 0xd9, 0x17, 0x81, 0x37,
1043911f4379Salnsn 0x12, 0x86, 0x52, 0xea, 0x04, 0xb2, 0x11, 0x0f,
1044911f4379Salnsn 0x5a, 0x08, 0x68, 0xcb, 0x48, 0xca, 0x2f, 0xda,
1045911f4379Salnsn 0xa3, 0x0a, 0x60, 0x57, 0xc7, 0x80, 0x36, 0x60,
1046911f4379Salnsn 0x05, 0xce, 0xd5, 0x43, 0xc9, 0xbc, 0x6c, 0xe6,
1047911f4379Salnsn 0x63, 0x38, 0x2e, 0x81, 0x90, 0x34, 0x11, 0x2c,
1048911f4379Salnsn 0x84, 0x0c, 0x62, 0x68, 0xde, 0x17, 0x57, 0x43,
1049911f4379Salnsn 0x19, 0xa5, 0x92, 0x9d, 0x91, 0x2b, 0xa2, 0x95,
1050911f4379Salnsn 0x7c, 0x20, 0x72, 0xaa, 0x83, 0x24, 0x54, 0x94,
1051911f4379Salnsn 0x10, 0x80, 0xd4, 0x3f, 0x58, 0xb9, 0x7b, 0x74,
1052911f4379Salnsn 0x68, 0xd5, 0xfb, 0x3e, 0xdd, 0xb4, 0xdf, 0x65,
1053911f4379Salnsn 0x72, 0x88, 0x45, 0x8a, 0xd0, 0x93, 0x6e, 0x99,
1054911f4379Salnsn 0x84, 0xad, 0x39, 0x73, 0x16, 0x88, 0xdc, 0x89,
1055911f4379Salnsn 0x33, 0x34, 0xd7, 0xd8, 0x97, 0xfb, 0x90, 0xd2,
1056911f4379Salnsn 0xc5, 0x8e, 0x94, 0xc4, 0xf1, 0xfe, 0xbe, 0x23,
1057911f4379Salnsn 0xf1, 0x3a, 0x10, 0x1c, 0x42, 0x6b, 0xf5, 0xee,
1058911f4379Salnsn 0xe4, 0x78, 0x8a, 0x7e, 0x13, 0x02, 0x25, 0xcb,
1059911f4379Salnsn 0xd1, 0x61, 0x1f, 0xab, 0x45, 0x1f, 0x90, 0x88,
1060911f4379Salnsn 0x0f, 0x6b, 0xff, 0x61, 0xba, 0xf3, 0xac, 0x8e,
1061911f4379Salnsn 0x13, 0xc2, 0xfb, 0xca, 0x41, 0xed, 0xfe, 0x6c,
1062911f4379Salnsn 0xcb, 0xdf, 0x97, 0x60, 0x29, 0x8a, 0x72, 0x8d,
1063911f4379Salnsn 0x7d, 0xad, 0x6e, 0xe9, 0x7b, 0xc4, 0x92, 0x14,
1064911f4379Salnsn 0x5e, 0x33, 0x27, 0xe2, 0xda, 0x2f, 0x95, 0x5f,
1065911f4379Salnsn 0x40, 0x27, 0xeb, 0xdb, 0x0d, 0x1e, 0xc5, 0xd4,
1066911f4379Salnsn 0x43, 0x50, 0x1a, 0x62, 0x82, 0xbe, 0x24, 0x7f,
1067911f4379Salnsn 0xb7, 0x46, 0xa8, 0x70, 0x10, 0x33, 0xb6, 0x3f,
1068911f4379Salnsn 0xbf, 0xa8, 0xa8, 0x85, 0xab, 0x1d, 0xb4, 0x3f,
1069911f4379Salnsn 0x84, 0x06, 0x91, 0xd6, 0x18, 0x3d, 0xeb, 0x8b,
1070911f4379Salnsn 0x3f, 0x9b, 0x37, 0x9e, 0x2e, 0xd2, 0xec, 0xe5,
1071911f4379Salnsn 0x2d, 0xf0, 0x3f, 0x45, 0xd5, 0x9d, 0xb9, 0x28,
1072911f4379Salnsn 0x89, 0xe4, 0x0c, 0xa9, 0x38, 0xca, 0x22, 0x56,
1073911f4379Salnsn 0x53, 0xdf, 0x49, 0xba, 0x5d, 0x99, 0xd6, 0x4b,
1074911f4379Salnsn 0x1d, 0x0d, 0x6d, 0xee, 0x7c, 0xf2, 0x6f, 0x50,
1075911f4379Salnsn 0x04, 0xf1, 0xf8, 0x49, 0xd1, 0x2f, 0x50, 0x3e,
1076911f4379Salnsn 0xf1, 0x08, 0x49, 0x17, 0x08, 0xd2, 0xac, 0x5d,
1077911f4379Salnsn 0x58, 0xe7, 0x27, 0xe6, 0x59, 0x02, 0x9f, 0x1c,
1078911f4379Salnsn 0x40, 0xff, 0x6c, 0x67, 0xae, 0x49, 0x1a, 0x2a,
1079911f4379Salnsn 0xab, 0xd9, 0x63, 0x25, 0x2d, 0x9b, 0xd8, 0x1a,
1080911f4379Salnsn 0x41, 0xa6, 0xea, 0x72, 0xfd, 0x56, 0xa1, 0x57,
1081911f4379Salnsn 0x59, 0xdd, 0xf5, 0xa3, 0xb2, 0x2f, 0x64, 0xb1,
1082911f4379Salnsn 0xc5, 0xfe, 0x8d, 0x9b, 0x93, 0xd1, 0x51, 0x77,
1083911f4379Salnsn 0x13, 0x50, 0x74, 0x30, 0x28, 0xe4, 0x7a, 0x06,
1084911f4379Salnsn 0x69, 0xd4, 0xa8, 0x0a, 0xae, 0x02, 0x4a, 0x61,
1085911f4379Salnsn 0x24, 0xc2, 0xcd, 0xc8, 0xd3, 0x12, 0x2e, 0xac,
1086911f4379Salnsn 0x9a, 0x0c, 0x24, 0x06, 0xb8, 0x1e, 0x3d, 0x29,
1087911f4379Salnsn };
1088911f4379Salnsn
1089911f4379Salnsn /*
1090911f4379Salnsn * IV method encblkno8, blkno 1.
1091911f4379Salnsn */
1092911f4379Salnsn static const uint8_t aes_cbc_192_encblkno8_vec1_ctxt[SECSIZE] = {
1093911f4379Salnsn 0x1e, 0x3b, 0x66, 0x76, 0xd9, 0x9e, 0xf7, 0x82,
1094911f4379Salnsn 0x17, 0x76, 0x69, 0x4d, 0x64, 0x63, 0xf1, 0x01,
1095911f4379Salnsn 0x81, 0x8a, 0xa4, 0x97, 0x05, 0x42, 0xdb, 0x8c,
1096911f4379Salnsn 0x27, 0xc8, 0xfd, 0x08, 0x21, 0x17, 0x87, 0xa9,
1097911f4379Salnsn 0x0c, 0x86, 0x2d, 0xda, 0x17, 0xd5, 0x5d, 0x67,
1098911f4379Salnsn 0x12, 0x93, 0x8d, 0x34, 0x5a, 0xfc, 0x2a, 0x49,
1099911f4379Salnsn 0x1a, 0x1a, 0x77, 0x20, 0xfb, 0x1d, 0x5d, 0xd8,
1100911f4379Salnsn 0x99, 0xb0, 0x8f, 0x1c, 0x13, 0x4d, 0x28, 0x6d,
1101911f4379Salnsn 0x2d, 0x79, 0xa9, 0x8e, 0x04, 0x0c, 0x5a, 0xd5,
1102911f4379Salnsn 0x52, 0x09, 0x15, 0x4a, 0xfb, 0x7a, 0xf8, 0xdc,
1103911f4379Salnsn 0x3b, 0x77, 0xaf, 0xe0, 0x80, 0x6b, 0xac, 0x5f,
1104911f4379Salnsn 0xc0, 0x0f, 0x0f, 0x29, 0xf5, 0xcc, 0xbc, 0x85,
1105911f4379Salnsn 0x77, 0xe7, 0x9f, 0x59, 0x23, 0x83, 0x67, 0x74,
1106911f4379Salnsn 0x3b, 0x1c, 0x0f, 0x75, 0xd8, 0x58, 0xa2, 0xce,
1107911f4379Salnsn 0x8c, 0x3a, 0x80, 0xd7, 0xff, 0xa1, 0x83, 0xa3,
1108911f4379Salnsn 0xe0, 0xad, 0x18, 0x7a, 0xc5, 0x28, 0x28, 0x71,
1109911f4379Salnsn 0x46, 0xb5, 0x13, 0x76, 0x4d, 0x67, 0x37, 0x38,
1110911f4379Salnsn 0x3f, 0x9e, 0xa6, 0x8b, 0xc2, 0xaf, 0x83, 0x7d,
1111911f4379Salnsn 0x8b, 0x82, 0xd0, 0xe2, 0xec, 0x13, 0xce, 0x2b,
1112911f4379Salnsn 0x1e, 0x13, 0xe7, 0xb6, 0xfa, 0x9e, 0xa2, 0x32,
1113911f4379Salnsn 0xb7, 0xdc, 0xe5, 0xb5, 0x35, 0xa3, 0xb4, 0x84,
1114911f4379Salnsn 0x57, 0x05, 0x2d, 0x3e, 0xb0, 0x0a, 0x52, 0x61,
1115911f4379Salnsn 0x00, 0xe4, 0x84, 0xab, 0xf4, 0x98, 0xe4, 0xe6,
1116911f4379Salnsn 0xcd, 0xb1, 0xd4, 0x40, 0x31, 0x5f, 0x8f, 0x73,
1117911f4379Salnsn 0x16, 0x6e, 0xc0, 0x3d, 0x07, 0x5d, 0x6b, 0x91,
1118911f4379Salnsn 0x70, 0x71, 0x8a, 0x4b, 0xfe, 0xeb, 0xbe, 0x04,
1119911f4379Salnsn 0x5d, 0x75, 0x0a, 0x74, 0x52, 0x1e, 0xd3, 0x94,
1120911f4379Salnsn 0xc5, 0xcd, 0xc1, 0xd6, 0x12, 0x6a, 0x58, 0x52,
1121911f4379Salnsn 0x6e, 0x45, 0x1f, 0x49, 0x09, 0x4c, 0x32, 0xf3,
1122911f4379Salnsn 0x3d, 0x3d, 0x73, 0x15, 0xa3, 0xa5, 0x2f, 0xf2,
1123911f4379Salnsn 0x02, 0x10, 0x1e, 0xaf, 0xf5, 0xb4, 0x78, 0x48,
1124911f4379Salnsn 0x8a, 0x6c, 0x58, 0x71, 0x77, 0x91, 0x95, 0x57,
1125911f4379Salnsn 0x79, 0xbf, 0x1f, 0x3e, 0xb3, 0xf8, 0xc4, 0x33,
1126911f4379Salnsn 0x07, 0x5d, 0x96, 0x41, 0x76, 0xb1, 0xe1, 0xe0,
1127911f4379Salnsn 0xa9, 0x97, 0x14, 0x99, 0x1d, 0xaa, 0x91, 0xbb,
1128911f4379Salnsn 0xdf, 0x89, 0xf1, 0x0d, 0xd0, 0x52, 0xf9, 0xa7,
1129911f4379Salnsn 0x4c, 0x82, 0xc0, 0xeb, 0xb7, 0xaf, 0x7b, 0x4b,
1130911f4379Salnsn 0x5a, 0x2a, 0x7a, 0x4e, 0xb2, 0x69, 0x87, 0x28,
1131911f4379Salnsn 0x84, 0xf7, 0x76, 0x56, 0xee, 0xf8, 0x37, 0x35,
1132911f4379Salnsn 0xc9, 0xbc, 0x08, 0x8b, 0xfe, 0x1e, 0x54, 0xb3,
1133911f4379Salnsn 0x01, 0xa7, 0x0f, 0x20, 0x70, 0xac, 0xa6, 0x6b,
1134911f4379Salnsn 0x9f, 0x98, 0xfe, 0xdb, 0x3e, 0x4f, 0x9f, 0xfc,
1135911f4379Salnsn 0x95, 0x37, 0xf4, 0x90, 0x61, 0x62, 0x60, 0xeb,
1136911f4379Salnsn 0x7a, 0x4a, 0x56, 0xae, 0x49, 0xcc, 0x92, 0xff,
1137911f4379Salnsn 0xd3, 0x06, 0xc6, 0x62, 0x4c, 0x05, 0x28, 0xa7,
1138911f4379Salnsn 0x3f, 0xe9, 0xee, 0x70, 0x6f, 0xd2, 0x80, 0x41,
1139911f4379Salnsn 0x4d, 0xa0, 0xbc, 0x00, 0xaf, 0x30, 0xe4, 0x34,
1140911f4379Salnsn 0x61, 0xda, 0xb4, 0xff, 0x2a, 0x85, 0x8b, 0x1a,
1141911f4379Salnsn 0xbf, 0xb5, 0xe4, 0x7f, 0x27, 0xee, 0xf3, 0x25,
1142911f4379Salnsn 0xe6, 0x52, 0x2a, 0x83, 0xbe, 0xe4, 0x64, 0xc3,
1143911f4379Salnsn 0x67, 0x0c, 0x9e, 0x0f, 0xba, 0xb4, 0x67, 0xd1,
1144911f4379Salnsn 0x1b, 0x4a, 0xb0, 0xb2, 0xb4, 0xf2, 0x8a, 0x1b,
1145911f4379Salnsn 0x21, 0x34, 0x3c, 0x97, 0x5a, 0xdb, 0x92, 0x8b,
1146911f4379Salnsn 0x2d, 0xe9, 0x94, 0x4e, 0x11, 0xfb, 0xd4, 0x2e,
1147911f4379Salnsn 0xc2, 0xed, 0xf9, 0x75, 0xfd, 0x1a, 0xef, 0x3b,
1148911f4379Salnsn 0x98, 0x5d, 0xa9, 0x75, 0xd5, 0x14, 0x0a, 0xe3,
1149911f4379Salnsn 0xda, 0x07, 0xa6, 0x20, 0x7b, 0x49, 0x47, 0x87,
1150911f4379Salnsn 0xff, 0xf0, 0xe8, 0x7e, 0xcf, 0xc4, 0x2c, 0x02,
1151911f4379Salnsn 0xdd, 0x53, 0xe9, 0x79, 0xc7, 0x6d, 0x16, 0x9f,
1152911f4379Salnsn 0x2b, 0xd7, 0x1a, 0x36, 0x25, 0x5c, 0xba, 0x5c,
1153911f4379Salnsn 0xdb, 0x44, 0x88, 0x99, 0x32, 0x2e, 0xb6, 0x3f,
1154911f4379Salnsn 0xb4, 0xdd, 0x15, 0xeb, 0xec, 0x2a, 0x9e, 0xc5,
1155911f4379Salnsn 0x37, 0x30, 0x2a, 0xd5, 0xc4, 0x2a, 0x9b, 0x40,
1156911f4379Salnsn 0x97, 0x83, 0x94, 0xe7, 0x79, 0x79, 0x63, 0x4b,
1157911f4379Salnsn };
1158911f4379Salnsn
1159911f4379Salnsn /*
1160911f4379Salnsn * IV method encblkno8, blkno 2.
1161911f4379Salnsn */
1162911f4379Salnsn static const uint8_t aes_cbc_192_encblkno8_vec2_ctxt[SECSIZE] = {
1163911f4379Salnsn 0x34, 0x07, 0x20, 0x14, 0x64, 0x0b, 0xa2, 0x2c,
1164911f4379Salnsn 0xed, 0xba, 0x46, 0x24, 0xa0, 0xe6, 0x99, 0x8a,
1165911f4379Salnsn 0x20, 0x75, 0x5f, 0x9f, 0x2a, 0x10, 0xa6, 0x1c,
1166911f4379Salnsn 0x52, 0x60, 0x18, 0x67, 0xd6, 0x0d, 0x90, 0x4e,
1167911f4379Salnsn 0xbc, 0x25, 0x5f, 0x81, 0xb4, 0x10, 0xdb, 0xd9,
1168911f4379Salnsn 0xaf, 0x36, 0x84, 0x5c, 0x20, 0x25, 0x25, 0xbf,
1169911f4379Salnsn 0x0d, 0xfa, 0xc5, 0x75, 0x2b, 0xec, 0xf2, 0xa6,
1170911f4379Salnsn 0x69, 0x5c, 0xfe, 0xee, 0x21, 0xd8, 0x87, 0xdf,
1171911f4379Salnsn 0xe3, 0x83, 0xeb, 0xb3, 0x3f, 0x5b, 0xda, 0x37,
1172911f4379Salnsn 0x11, 0x05, 0xf7, 0xd8, 0xe0, 0x94, 0x08, 0x2b,
1173911f4379Salnsn 0x75, 0x6b, 0xf3, 0x40, 0x53, 0x85, 0xde, 0x7a,
1174911f4379Salnsn 0x64, 0xb1, 0x0e, 0x5f, 0x01, 0xb5, 0xfb, 0x74,
1175911f4379Salnsn 0x48, 0x9a, 0xd4, 0x41, 0x33, 0x70, 0x9b, 0x08,
1176911f4379Salnsn 0x7e, 0x34, 0x60, 0xfc, 0xfa, 0xe6, 0x2c, 0xec,
1177911f4379Salnsn 0x0e, 0xb7, 0x1a, 0xf1, 0x49, 0x48, 0x0c, 0xd4,
1178911f4379Salnsn 0xd7, 0xbc, 0x60, 0x28, 0xdb, 0x57, 0xa4, 0x29,
1179911f4379Salnsn 0x55, 0x2d, 0x92, 0xa6, 0xca, 0x9a, 0xaf, 0x4d,
1180911f4379Salnsn 0x7f, 0xb8, 0x29, 0x9f, 0x50, 0x98, 0x21, 0x94,
1181911f4379Salnsn 0x7a, 0x94, 0x44, 0x3d, 0xd1, 0xcf, 0xf4, 0x6f,
1182911f4379Salnsn 0xad, 0xb4, 0x58, 0x66, 0x74, 0x01, 0x2c, 0x5b,
1183911f4379Salnsn 0x8f, 0x1b, 0xa6, 0x09, 0xd0, 0x3f, 0x79, 0xc9,
1184911f4379Salnsn 0x4f, 0x3b, 0x37, 0x0d, 0xb8, 0x07, 0xb0, 0x61,
1185911f4379Salnsn 0xbc, 0x5a, 0x40, 0x3a, 0x10, 0x3c, 0x12, 0xe6,
1186911f4379Salnsn 0x04, 0xc7, 0xd1, 0xe1, 0x18, 0x6f, 0xde, 0x72,
1187911f4379Salnsn 0xf5, 0xcf, 0x24, 0x58, 0x76, 0xe1, 0xcd, 0x62,
1188911f4379Salnsn 0x90, 0xc3, 0x16, 0xcc, 0x3f, 0xda, 0xd6, 0x6b,
1189911f4379Salnsn 0x6a, 0xcc, 0x61, 0x76, 0xc1, 0xaf, 0xdc, 0x53,
1190911f4379Salnsn 0xef, 0x06, 0x23, 0x22, 0x93, 0x11, 0x59, 0xf5,
1191911f4379Salnsn 0x7f, 0x46, 0xac, 0xb8, 0x6c, 0x3b, 0x36, 0x69,
1192911f4379Salnsn 0xc5, 0x14, 0x0a, 0x51, 0xa1, 0x5f, 0xb9, 0xc7,
1193911f4379Salnsn 0x37, 0xe3, 0xd9, 0xaf, 0x8c, 0xe9, 0x49, 0xd4,
1194911f4379Salnsn 0xf9, 0xf9, 0x5e, 0x1f, 0x5f, 0x7c, 0x07, 0xb5,
1195911f4379Salnsn 0x1c, 0x9e, 0xbd, 0x10, 0x75, 0xc3, 0x93, 0x48,
1196911f4379Salnsn 0xdc, 0x32, 0xe7, 0x55, 0x90, 0x48, 0x42, 0xc0,
1197911f4379Salnsn 0x73, 0x20, 0x40, 0x17, 0xbb, 0x71, 0x30, 0xfe,
1198911f4379Salnsn 0xd1, 0x84, 0xe9, 0x7d, 0x92, 0xd4, 0xff, 0xbe,
1199911f4379Salnsn 0x3e, 0xd9, 0x41, 0xfb, 0x41, 0x43, 0x2b, 0x9f,
1200911f4379Salnsn 0x04, 0x7b, 0xe7, 0x81, 0xbb, 0x2a, 0xd6, 0x7b,
1201911f4379Salnsn 0x96, 0x72, 0x29, 0x30, 0x52, 0x5c, 0xea, 0xcc,
1202911f4379Salnsn 0x4c, 0x77, 0xed, 0x5a, 0xd9, 0xab, 0x51, 0x90,
1203911f4379Salnsn 0x21, 0x3b, 0x5b, 0x26, 0xeb, 0x14, 0xd5, 0xea,
1204911f4379Salnsn 0x01, 0xb0, 0x7c, 0xbd, 0xa6, 0x3d, 0x7f, 0x42,
1205911f4379Salnsn 0xd7, 0x7e, 0xf1, 0x6c, 0x71, 0x7d, 0xc0, 0x25,
1206911f4379Salnsn 0x61, 0xe9, 0x66, 0xe1, 0xf2, 0x67, 0x99, 0xa1,
1207911f4379Salnsn 0xe7, 0x3a, 0x6f, 0x88, 0x1e, 0x8b, 0x76, 0xed,
1208911f4379Salnsn 0x50, 0x2c, 0x4e, 0xac, 0x73, 0xd7, 0xf2, 0x85,
1209911f4379Salnsn 0x8f, 0xcc, 0xb1, 0x4f, 0x6c, 0x9a, 0xf7, 0x45,
1210911f4379Salnsn 0x28, 0x4f, 0xfc, 0x3f, 0xf1, 0x80, 0xc3, 0xf3,
1211911f4379Salnsn 0xce, 0x5e, 0xfc, 0x56, 0xd9, 0x45, 0xdd, 0x81,
1212911f4379Salnsn 0xe3, 0x48, 0x22, 0xc9, 0xb8, 0x13, 0xc1, 0x48,
1213911f4379Salnsn 0x6c, 0x95, 0x97, 0xc0, 0x91, 0x37, 0xf5, 0x8a,
1214911f4379Salnsn 0x11, 0x3b, 0xab, 0xce, 0x7a, 0xb0, 0xb4, 0x4c,
1215911f4379Salnsn 0xba, 0xc0, 0x91, 0x7f, 0x3c, 0x27, 0xe9, 0xc0,
1216911f4379Salnsn 0x58, 0x92, 0x70, 0x67, 0xf4, 0x80, 0x40, 0x92,
1217911f4379Salnsn 0x51, 0x80, 0x8e, 0x9d, 0x2d, 0x87, 0x89, 0x8e,
1218911f4379Salnsn 0xe7, 0xd1, 0xb5, 0xc5, 0x4f, 0xd0, 0x86, 0x31,
1219911f4379Salnsn 0x7f, 0x90, 0x77, 0x05, 0x35, 0xfe, 0xa7, 0xcb,
1220911f4379Salnsn 0x9d, 0x94, 0xf3, 0xf8, 0xbb, 0x4f, 0xe1, 0xb3,
1221911f4379Salnsn 0x48, 0x57, 0xbf, 0xd1, 0x77, 0xe8, 0x72, 0x31,
1222911f4379Salnsn 0x4d, 0x2f, 0xe8, 0xa0, 0xf4, 0x7c, 0x25, 0x9c,
1223911f4379Salnsn 0xcd, 0xa5, 0x7e, 0xd3, 0x30, 0xda, 0x46, 0xf5,
1224911f4379Salnsn 0x48, 0x9e, 0x39, 0x34, 0x94, 0xd6, 0x24, 0x10,
1225911f4379Salnsn 0xfc, 0x74, 0x2b, 0x6d, 0xcc, 0x00, 0x76, 0x3e,
1226911f4379Salnsn 0x3b, 0x85, 0xfa, 0xef, 0x87, 0x70, 0x53, 0x4e,
1227911f4379Salnsn };
1228911f4379Salnsn
1229911f4379Salnsn /*
1230911f4379Salnsn * IV method encblkno8, blkno 3.
1231911f4379Salnsn */
1232911f4379Salnsn static const uint8_t aes_cbc_192_encblkno8_vec3_ctxt[SECSIZE] = {
1233911f4379Salnsn 0xfe, 0xad, 0xf3, 0x4a, 0x9d, 0x64, 0x4e, 0x5d,
1234911f4379Salnsn 0xaf, 0xa8, 0x44, 0x7e, 0xc9, 0x75, 0xe8, 0xd0,
1235911f4379Salnsn 0x87, 0x73, 0x66, 0x4c, 0x77, 0x00, 0xfb, 0x7b,
1236911f4379Salnsn 0x04, 0xe7, 0xd8, 0x82, 0x75, 0xe3, 0xa5, 0xbc,
1237911f4379Salnsn 0xf3, 0x80, 0xae, 0x7c, 0xc9, 0x75, 0x9a, 0xc1,
1238911f4379Salnsn 0x73, 0x49, 0x69, 0xf6, 0xa0, 0x49, 0x6e, 0x77,
1239911f4379Salnsn 0x5f, 0x9b, 0x95, 0x9b, 0x9f, 0x41, 0x54, 0x57,
1240911f4379Salnsn 0x0e, 0x3c, 0xe5, 0x2c, 0xbb, 0xbf, 0xd5, 0x76,
1241911f4379Salnsn 0xf6, 0xb6, 0x05, 0xaa, 0x20, 0x5b, 0xdb, 0xcb,
1242911f4379Salnsn 0x81, 0xad, 0x0c, 0x8a, 0x68, 0x94, 0x7d, 0x88,
1243911f4379Salnsn 0xdc, 0x15, 0x6c, 0x89, 0x97, 0x53, 0x30, 0x96,
1244911f4379Salnsn 0x4a, 0x54, 0xf9, 0x88, 0x00, 0xf7, 0x3b, 0x99,
1245911f4379Salnsn 0xfc, 0x82, 0xe3, 0x48, 0xd2, 0x16, 0x2b, 0xba,
1246911f4379Salnsn 0xd4, 0xba, 0x24, 0xd0, 0xd1, 0xb0, 0x8e, 0xcd,
1247911f4379Salnsn 0x77, 0xdc, 0x01, 0xdf, 0xb2, 0x20, 0xc5, 0xa7,
1248911f4379Salnsn 0x48, 0x2a, 0xcf, 0x56, 0xc8, 0x63, 0x6e, 0xc9,
1249911f4379Salnsn 0xa8, 0xa4, 0xc2, 0x9c, 0x66, 0x25, 0x50, 0x77,
1250911f4379Salnsn 0x08, 0x51, 0x92, 0xce, 0x3c, 0xaf, 0xff, 0xee,
1251911f4379Salnsn 0x3e, 0x6d, 0x61, 0x37, 0xcd, 0x85, 0x67, 0x9c,
1252911f4379Salnsn 0xe0, 0x7e, 0xa6, 0x17, 0x7b, 0x5f, 0x6a, 0xe2,
1253911f4379Salnsn 0x4e, 0x76, 0xca, 0x95, 0x88, 0xdf, 0xad, 0x78,
1254911f4379Salnsn 0x91, 0xfa, 0x9e, 0x71, 0x3e, 0xfd, 0x10, 0x78,
1255911f4379Salnsn 0x32, 0x2b, 0x75, 0xbc, 0x3a, 0x06, 0x55, 0x8b,
1256911f4379Salnsn 0x9b, 0xfb, 0x9c, 0x4b, 0xa1, 0x7d, 0x35, 0x3d,
1257911f4379Salnsn 0x63, 0x80, 0x30, 0x61, 0xe0, 0x2d, 0x8a, 0x28,
1258911f4379Salnsn 0xb4, 0x2d, 0x48, 0x9d, 0x27, 0x1a, 0x28, 0x86,
1259911f4379Salnsn 0xfc, 0xfa, 0x93, 0xcf, 0x3e, 0x9c, 0x41, 0xc8,
1260911f4379Salnsn 0xc5, 0x5e, 0x88, 0x22, 0xb8, 0xaf, 0x1d, 0x92,
1261911f4379Salnsn 0xc5, 0x91, 0x1b, 0x1e, 0x95, 0x62, 0xbb, 0x80,
1262911f4379Salnsn 0x0c, 0xae, 0x2a, 0xb3, 0x55, 0x77, 0x86, 0x39,
1263911f4379Salnsn 0xa6, 0xed, 0xc1, 0xd2, 0xc4, 0x95, 0x7e, 0xd4,
1264911f4379Salnsn 0xbe, 0xf3, 0x1b, 0xbc, 0x5e, 0x92, 0x0d, 0x9c,
1265911f4379Salnsn 0x38, 0xb1, 0xb9, 0xd3, 0xf6, 0x3f, 0x97, 0xf9,
1266911f4379Salnsn 0x48, 0x08, 0x2b, 0xa6, 0x98, 0x50, 0xc9, 0x84,
1267911f4379Salnsn 0xec, 0x54, 0xe0, 0x1a, 0x65, 0x76, 0xf2, 0xbe,
1268911f4379Salnsn 0x62, 0xb9, 0x40, 0x3a, 0xb1, 0xef, 0xa0, 0x51,
1269911f4379Salnsn 0xab, 0x3a, 0xfa, 0xaf, 0x33, 0x32, 0xa5, 0x0c,
1270911f4379Salnsn 0xc7, 0x9a, 0x9c, 0x5c, 0xa7, 0x8e, 0xc6, 0x4e,
1271911f4379Salnsn 0x61, 0xe3, 0x83, 0xa1, 0xd4, 0x2c, 0xb2, 0x2c,
1272911f4379Salnsn 0x46, 0x5a, 0xbf, 0x96, 0xeb, 0xda, 0x45, 0x2d,
1273911f4379Salnsn 0x25, 0x37, 0x69, 0x1a, 0x6b, 0xd6, 0xbc, 0xe1,
1274911f4379Salnsn 0x28, 0x65, 0xf9, 0xfc, 0xa7, 0xda, 0xf8, 0x79,
1275911f4379Salnsn 0x87, 0x18, 0x99, 0x01, 0x74, 0x5a, 0x42, 0x79,
1276911f4379Salnsn 0x8e, 0xe4, 0x23, 0x1a, 0x6c, 0xda, 0x93, 0x0f,
1277911f4379Salnsn 0x19, 0xf0, 0xff, 0x0e, 0x25, 0x45, 0x1e, 0xbb,
1278911f4379Salnsn 0x17, 0xca, 0x87, 0x6a, 0x9e, 0xd0, 0xd3, 0xd5,
1279911f4379Salnsn 0x22, 0x5f, 0xce, 0x92, 0xeb, 0x82, 0x8e, 0x3e,
1280911f4379Salnsn 0x4e, 0x99, 0x44, 0xa2, 0x9e, 0x78, 0x53, 0x89,
1281911f4379Salnsn 0x4e, 0x45, 0x51, 0x41, 0x28, 0x91, 0xdb, 0x7e,
1282911f4379Salnsn 0x8f, 0xac, 0xc2, 0xee, 0x09, 0xcb, 0xed, 0x04,
1283911f4379Salnsn 0x7b, 0x37, 0xa1, 0x1d, 0x9c, 0x90, 0x19, 0xb1,
1284911f4379Salnsn 0xdd, 0xc3, 0x22, 0xc8, 0x70, 0x07, 0x26, 0xce,
1285911f4379Salnsn 0x4a, 0xc4, 0xde, 0xee, 0x87, 0xf3, 0x62, 0x69,
1286911f4379Salnsn 0xed, 0xb2, 0x2d, 0x10, 0xc4, 0xfa, 0x86, 0x2e,
1287911f4379Salnsn 0xd1, 0xb8, 0x58, 0xa3, 0xa4, 0x0b, 0x30, 0x87,
1288911f4379Salnsn 0x23, 0x62, 0xed, 0xf3, 0x7b, 0x80, 0x7e, 0x4f,
1289911f4379Salnsn 0xc2, 0xb3, 0xe8, 0xba, 0x25, 0x3e, 0xd3, 0x12,
1290911f4379Salnsn 0x7e, 0x27, 0xd5, 0x72, 0x3b, 0x02, 0xf4, 0xfd,
1291911f4379Salnsn 0x2f, 0x8b, 0xc2, 0x5f, 0x44, 0x40, 0x31, 0x88,
1292911f4379Salnsn 0x73, 0x81, 0xa3, 0xcc, 0xc4, 0x78, 0x2b, 0xfc,
1293911f4379Salnsn 0x41, 0x2e, 0xb2, 0xd0, 0xb4, 0x00, 0x29, 0xc1,
1294911f4379Salnsn 0x46, 0xdf, 0xc1, 0xbd, 0x15, 0x59, 0xa3, 0x6a,
1295911f4379Salnsn 0xc8, 0x2f, 0x29, 0x28, 0x12, 0x9b, 0x1e, 0xea,
1296911f4379Salnsn 0x4e, 0xa9, 0x80, 0xa1, 0xb8, 0x89, 0x21, 0x3b,
1297911f4379Salnsn };
1298911f4379Salnsn
1299911f4379Salnsn const struct testvec aes_cbc_192_8_vectors[] = {
1300911f4379Salnsn {
1301911f4379Salnsn .blkno = 0,
1302911f4379Salnsn .ptxt = aes_cbc_ptxt,
1303911f4379Salnsn .ctxt = aes_cbc_192_encblkno8_vec0_ctxt,
1304911f4379Salnsn },
1305911f4379Salnsn {
1306911f4379Salnsn .blkno = 1,
1307911f4379Salnsn .ptxt = aes_cbc_ptxt,
1308911f4379Salnsn .ctxt = aes_cbc_192_encblkno8_vec1_ctxt,
1309911f4379Salnsn },
1310911f4379Salnsn {
1311911f4379Salnsn .blkno = 2,
1312911f4379Salnsn .ptxt = aes_cbc_ptxt,
1313911f4379Salnsn .ctxt = aes_cbc_192_encblkno8_vec2_ctxt,
1314911f4379Salnsn },
1315911f4379Salnsn {
1316911f4379Salnsn .blkno = 3,
1317911f4379Salnsn .ptxt = aes_cbc_ptxt,
1318911f4379Salnsn .ctxt = aes_cbc_192_encblkno8_vec3_ctxt,
1319911f4379Salnsn },
1320911f4379Salnsn };
1321911f4379Salnsn
1322911f4379Salnsn /*
1323911f4379Salnsn * IV method encblkno1, blkno 0.
1324911f4379Salnsn */
1325911f4379Salnsn static const uint8_t aes_cbc_256_encblkno1_vec0_ctxt[SECSIZE] = {
1326911f4379Salnsn 0x1a, 0xa4, 0xe3, 0x09, 0x23, 0x2e, 0x91, 0x1b,
1327911f4379Salnsn 0xa8, 0x3e, 0xda, 0x92, 0xb3, 0x22, 0xd2, 0xe8,
1328911f4379Salnsn 0x8b, 0xed, 0x6c, 0xa7, 0x78, 0xe6, 0x32, 0x25,
1329911f4379Salnsn 0xc4, 0x88, 0xd5, 0xb7, 0x6e, 0xef, 0xbf, 0x37,
1330911f4379Salnsn 0x00, 0xd9, 0xb2, 0x55, 0x10, 0x4f, 0x7d, 0x84,
1331911f4379Salnsn 0x3a, 0xae, 0xd2, 0xc6, 0x48, 0xdd, 0x3c, 0xd5,
1332911f4379Salnsn 0x9b, 0xa7, 0xf8, 0xc2, 0xda, 0x6d, 0x14, 0xa2,
1333911f4379Salnsn 0xdc, 0x54, 0x12, 0x8f, 0x1c, 0x22, 0x98, 0x6a,
1334911f4379Salnsn 0xc0, 0x5f, 0x47, 0xa7, 0x78, 0xec, 0x79, 0x5d,
1335911f4379Salnsn 0x04, 0xed, 0x5e, 0x20, 0x33, 0x53, 0x66, 0x40,
1336911f4379Salnsn 0x83, 0x94, 0x5b, 0x34, 0x05, 0x25, 0x2e, 0x17,
1337911f4379Salnsn 0xba, 0x23, 0x60, 0xb1, 0xd0, 0x27, 0xf0, 0x24,
1338911f4379Salnsn 0xd2, 0x0b, 0xd3, 0xea, 0xa7, 0x13, 0x1e, 0xf9,
1339911f4379Salnsn 0x56, 0xe1, 0xd4, 0xa2, 0x89, 0x5a, 0xaa, 0x42,
1340911f4379Salnsn 0xa9, 0xd7, 0x85, 0x64, 0x9e, 0x44, 0x71, 0xa2,
1341911f4379Salnsn 0xf9, 0xc3, 0xf4, 0x81, 0xbd, 0xa0, 0x40, 0xed,
1342911f4379Salnsn 0x33, 0xeb, 0x09, 0x0f, 0x7f, 0x78, 0xe4, 0xd5,
1343911f4379Salnsn 0x7b, 0x61, 0x42, 0xee, 0x65, 0x25, 0xcc, 0xba,
1344911f4379Salnsn 0xc6, 0x99, 0x29, 0x25, 0x71, 0x9a, 0xf0, 0x0e,
1345911f4379Salnsn 0x98, 0x3f, 0x12, 0xf2, 0xf9, 0x4d, 0x00, 0x3c,
1346911f4379Salnsn 0xbe, 0x9f, 0x2b, 0x83, 0x1e, 0x5b, 0xab, 0x80,
1347911f4379Salnsn 0x4c, 0x81, 0x82, 0x29, 0xbb, 0xeb, 0xc0, 0x89,
1348911f4379Salnsn 0x07, 0x43, 0xdd, 0x69, 0xd3, 0x02, 0x6c, 0x1c,
1349911f4379Salnsn 0x4b, 0xab, 0x44, 0x42, 0x6c, 0x25, 0xfc, 0xf5,
1350911f4379Salnsn 0x73, 0xaa, 0x60, 0x48, 0xbc, 0xd2, 0x1c, 0x77,
1351911f4379Salnsn 0x8b, 0x64, 0x3e, 0x5f, 0x24, 0xae, 0x14, 0x65,
1352911f4379Salnsn 0xea, 0x18, 0xb1, 0xab, 0xbc, 0x3d, 0xa3, 0xb9,
1353911f4379Salnsn 0xfc, 0xcc, 0x0f, 0x8d, 0x8e, 0x13, 0x0f, 0x4d,
1354911f4379Salnsn 0x4e, 0xeb, 0x90, 0x9b, 0x1e, 0xbf, 0x2a, 0xc7,
1355911f4379Salnsn 0xac, 0x5b, 0x11, 0xeb, 0x67, 0xf2, 0x9d, 0xef,
1356911f4379Salnsn 0xf3, 0x66, 0x9e, 0x81, 0x9f, 0x24, 0x4d, 0xcd,
1357911f4379Salnsn 0x4f, 0x31, 0xce, 0xc9, 0xa4, 0x2c, 0xd7, 0x58,
1358911f4379Salnsn 0x7c, 0x2e, 0x88, 0xa2, 0xec, 0x4c, 0x02, 0x29,
1359911f4379Salnsn 0x00, 0xbd, 0x14, 0x0f, 0xaa, 0xd8, 0xc3, 0x02,
1360911f4379Salnsn 0x64, 0xdc, 0xa0, 0x15, 0xc8, 0xf6, 0x17, 0x8b,
1361911f4379Salnsn 0x9c, 0xb3, 0xf2, 0x27, 0xc1, 0x3f, 0x60, 0x94,
1362911f4379Salnsn 0x33, 0x10, 0x89, 0x49, 0x5f, 0xd2, 0x0e, 0xfe,
1363911f4379Salnsn 0x9e, 0x99, 0x68, 0x95, 0xe4, 0x12, 0xfc, 0xe3,
1364911f4379Salnsn 0x7f, 0xc4, 0xb1, 0x88, 0x4f, 0x66, 0xcd, 0x24,
1365911f4379Salnsn 0x89, 0x09, 0xbb, 0x01, 0xf6, 0x9a, 0xe4, 0x41,
1366911f4379Salnsn 0xee, 0x83, 0xd2, 0x28, 0xf5, 0x28, 0x49, 0x13,
1367911f4379Salnsn 0x78, 0xfb, 0xb2, 0x0d, 0x5c, 0x97, 0xf4, 0x9c,
1368911f4379Salnsn 0xe0, 0xdf, 0xef, 0x84, 0x36, 0x7d, 0xe5, 0x45,
1369911f4379Salnsn 0xe0, 0xf8, 0xce, 0x82, 0x39, 0xc4, 0x54, 0x69,
1370911f4379Salnsn 0xf1, 0x62, 0x7d, 0x1a, 0xf6, 0x6c, 0x20, 0x86,
1371911f4379Salnsn 0x72, 0x4b, 0xf9, 0x3d, 0x87, 0x68, 0xec, 0x74,
1372911f4379Salnsn 0x67, 0xee, 0xbd, 0xb8, 0xc6, 0x12, 0x91, 0x0f,
1373911f4379Salnsn 0xf6, 0xd9, 0x4f, 0x34, 0x96, 0xa9, 0xe7, 0x52,
1374911f4379Salnsn 0x7b, 0xe0, 0x08, 0x57, 0x0a, 0x8b, 0x09, 0xcb,
1375911f4379Salnsn 0xd3, 0x3e, 0x4e, 0x64, 0xca, 0x38, 0x50, 0x07,
1376911f4379Salnsn 0x0e, 0x7b, 0x95, 0x69, 0x1b, 0x82, 0xba, 0x50,
1377911f4379Salnsn 0x93, 0x4f, 0x9a, 0x8e, 0x11, 0x9b, 0x64, 0xf5,
1378911f4379Salnsn 0x6a, 0xd4, 0x81, 0xf0, 0x1f, 0xb8, 0x85, 0x90,
1379911f4379Salnsn 0x9c, 0x79, 0xde, 0xcb, 0x50, 0xba, 0xa9, 0x56,
1380911f4379Salnsn 0x66, 0xd1, 0x1e, 0x78, 0xa8, 0x6a, 0xd5, 0xa5,
1381911f4379Salnsn 0x83, 0x73, 0xe2, 0x88, 0xf2, 0x04, 0x33, 0x61,
1382911f4379Salnsn 0xdf, 0x89, 0xd5, 0x3d, 0x03, 0x4e, 0x94, 0xb0,
1383911f4379Salnsn 0x0f, 0x8d, 0x4d, 0xb4, 0x09, 0xb2, 0xf1, 0xb0,
1384911f4379Salnsn 0xe7, 0xfe, 0xb0, 0x18, 0xe2, 0xfc, 0x92, 0xeb,
1385911f4379Salnsn 0x2d, 0x7d, 0x56, 0x29, 0xbd, 0x34, 0x20, 0x7c,
1386911f4379Salnsn 0xb6, 0xe7, 0x7b, 0xd7, 0x95, 0xa5, 0x0d, 0x10,
1387911f4379Salnsn 0xbc, 0x7d, 0x9d, 0xd9, 0xbe, 0xc7, 0x23, 0x44,
1388911f4379Salnsn 0x37, 0xb3, 0x98, 0x36, 0x33, 0x1a, 0x11, 0xfe,
1389911f4379Salnsn 0x41, 0xea, 0x59, 0x48, 0x75, 0x34, 0xf6, 0xc4,
1390911f4379Salnsn };
1391911f4379Salnsn
1392911f4379Salnsn /*
1393911f4379Salnsn * IV method encblkno1, blkno 1.
1394911f4379Salnsn */
1395911f4379Salnsn static const uint8_t aes_cbc_256_encblkno1_vec1_ctxt[SECSIZE] = {
1396911f4379Salnsn 0x58, 0xfc, 0x1e, 0x48, 0x66, 0x7d, 0x91, 0xc7,
1397911f4379Salnsn 0x56, 0xa3, 0x41, 0x89, 0xe8, 0x1e, 0x02, 0x77,
1398911f4379Salnsn 0x93, 0x38, 0x12, 0x99, 0x06, 0x0d, 0xf3, 0x6d,
1399911f4379Salnsn 0x2a, 0x5d, 0x3d, 0x7b, 0x4e, 0x05, 0x4f, 0x8f,
1400911f4379Salnsn 0xe3, 0x86, 0x76, 0xfe, 0x11, 0x9d, 0xde, 0xd4,
1401911f4379Salnsn 0x83, 0xd9, 0x47, 0x8d, 0x51, 0xdf, 0x4a, 0x24,
1402911f4379Salnsn 0x2d, 0x11, 0xf0, 0xbd, 0xde, 0x17, 0x7e, 0x52,
1403911f4379Salnsn 0x20, 0xc7, 0x17, 0x88, 0x2e, 0xa4, 0xd5, 0xa0,
1404911f4379Salnsn 0x1e, 0xbc, 0x61, 0x15, 0x1e, 0x52, 0xa1, 0x8b,
1405911f4379Salnsn 0xe9, 0xe4, 0x1f, 0x81, 0x49, 0x64, 0x17, 0xd4,
1406911f4379Salnsn 0xef, 0xb6, 0x40, 0x05, 0x2f, 0x36, 0xf7, 0x39,
1407911f4379Salnsn 0x03, 0x05, 0x80, 0xff, 0xf2, 0x1a, 0x15, 0xf1,
1408911f4379Salnsn 0xfc, 0xaf, 0x71, 0x51, 0x73, 0xc5, 0x9e, 0x2f,
1409911f4379Salnsn 0xd1, 0x7a, 0x2d, 0xd7, 0xed, 0x90, 0x11, 0xd2,
1410911f4379Salnsn 0x80, 0x49, 0x46, 0x9f, 0x13, 0xa7, 0x32, 0x33,
1411911f4379Salnsn 0x24, 0x39, 0x59, 0xf1, 0xed, 0x64, 0x75, 0x61,
1412911f4379Salnsn 0xc3, 0x14, 0x68, 0x48, 0xf7, 0xc7, 0xbd, 0xe0,
1413911f4379Salnsn 0x21, 0x59, 0x91, 0x07, 0x70, 0x83, 0x8f, 0xfc,
1414911f4379Salnsn 0x59, 0x72, 0xca, 0xdd, 0x60, 0xa0, 0xbb, 0xb1,
1415911f4379Salnsn 0x2f, 0xb8, 0x98, 0x8d, 0xf2, 0x4d, 0x3a, 0x19,
1416911f4379Salnsn 0xbc, 0x6b, 0x37, 0xad, 0xd2, 0xb5, 0x7d, 0x1c,
1417911f4379Salnsn 0x4a, 0x7b, 0x58, 0x76, 0x2e, 0xf5, 0x6b, 0xaf,
1418911f4379Salnsn 0x4c, 0x92, 0x00, 0x8a, 0xb4, 0xa3, 0x86, 0x66,
1419911f4379Salnsn 0x07, 0xc7, 0xfc, 0x57, 0x3c, 0x73, 0xf4, 0x8b,
1420911f4379Salnsn 0xef, 0xb6, 0xae, 0x01, 0xfb, 0x88, 0x13, 0x04,
1421911f4379Salnsn 0xa8, 0xc7, 0xec, 0xc4, 0xe0, 0x67, 0x3a, 0xfb,
1422911f4379Salnsn 0x67, 0xce, 0x83, 0x9b, 0x8e, 0x66, 0xff, 0xa6,
1423911f4379Salnsn 0x17, 0x1b, 0x66, 0x27, 0xdf, 0x2a, 0xfe, 0xf3,
1424911f4379Salnsn 0x9a, 0xba, 0x59, 0xce, 0x28, 0xd4, 0xd2, 0x40,
1425911f4379Salnsn 0x78, 0xb6, 0xe9, 0x7d, 0x8b, 0xcc, 0x47, 0x5c,
1426911f4379Salnsn 0xf6, 0x5d, 0xc2, 0x5d, 0xe0, 0xa7, 0x61, 0x8b,
1427911f4379Salnsn 0xe6, 0x7d, 0x38, 0xb6, 0xea, 0xfb, 0x13, 0x31,
1428911f4379Salnsn 0x33, 0x2a, 0xb5, 0x45, 0x7b, 0xf6, 0x9f, 0x29,
1429911f4379Salnsn 0x06, 0x2d, 0xd8, 0xab, 0x36, 0x27, 0xe4, 0x6c,
1430911f4379Salnsn 0xf1, 0xab, 0xcd, 0xb9, 0x08, 0x0f, 0x4b, 0x8f,
1431911f4379Salnsn 0x22, 0xea, 0xe4, 0x5d, 0x22, 0x05, 0x2e, 0xd4,
1432911f4379Salnsn 0xd7, 0xff, 0x58, 0x50, 0x38, 0x17, 0x6f, 0x80,
1433911f4379Salnsn 0x61, 0x98, 0xdc, 0xd4, 0x9f, 0x8f, 0xeb, 0x13,
1434911f4379Salnsn 0xd3, 0x86, 0xe9, 0xa9, 0xe7, 0x07, 0x6f, 0x4f,
1435911f4379Salnsn 0x54, 0x9e, 0x37, 0x3d, 0xbc, 0x82, 0x5f, 0x4f,
1436911f4379Salnsn 0xd5, 0x0c, 0x21, 0xaa, 0x91, 0xcb, 0x06, 0x9a,
1437911f4379Salnsn 0xaf, 0x57, 0x14, 0xfb, 0x57, 0xd8, 0x63, 0x58,
1438911f4379Salnsn 0x0a, 0x03, 0x12, 0x0e, 0xd3, 0x37, 0x0b, 0xbf,
1439911f4379Salnsn 0x67, 0xb7, 0x9d, 0xb7, 0x6b, 0x38, 0xeb, 0x17,
1440911f4379Salnsn 0xd8, 0xb9, 0x5a, 0x37, 0x9f, 0x98, 0xa6, 0xca,
1441911f4379Salnsn 0x7e, 0x95, 0xa7, 0x27, 0xc4, 0xd3, 0x15, 0x00,
1442911f4379Salnsn 0x7b, 0x5e, 0x05, 0xc0, 0xc1, 0xb0, 0xe0, 0x13,
1443911f4379Salnsn 0x7d, 0x91, 0xed, 0x2b, 0x99, 0x74, 0x1c, 0x16,
1444911f4379Salnsn 0x45, 0x55, 0x21, 0xbc, 0x7c, 0x52, 0x87, 0x0f,
1445911f4379Salnsn 0xb9, 0xbf, 0x71, 0x7c, 0x3a, 0x81, 0x72, 0x97,
1446911f4379Salnsn 0xf8, 0x86, 0x61, 0x20, 0x17, 0xd8, 0xc8, 0xe0,
1447911f4379Salnsn 0xfc, 0x42, 0x0f, 0x5b, 0xd6, 0x7e, 0x99, 0x81,
1448911f4379Salnsn 0x5c, 0x2e, 0x2e, 0x3e, 0xe8, 0xce, 0x12, 0xcf,
1449911f4379Salnsn 0x2c, 0xe6, 0x7a, 0x00, 0x5d, 0x36, 0x00, 0x92,
1450911f4379Salnsn 0x60, 0xc5, 0xc0, 0xfd, 0xe0, 0xa3, 0xb9, 0x3e,
1451911f4379Salnsn 0x92, 0xf8, 0x8f, 0xe2, 0x0f, 0xe5, 0xb4, 0x6a,
1452911f4379Salnsn 0xd6, 0x5b, 0xa4, 0x5d, 0xf9, 0xef, 0x7e, 0xae,
1453911f4379Salnsn 0xdd, 0xd0, 0x5d, 0x40, 0xfe, 0xa7, 0xed, 0xda,
1454911f4379Salnsn 0xa9, 0x48, 0x1d, 0x6f, 0xc2, 0xd3, 0x35, 0x65,
1455911f4379Salnsn 0xd8, 0x67, 0xc2, 0x9d, 0xed, 0xf7, 0x9f, 0x7b,
1456911f4379Salnsn 0x7c, 0xd4, 0x03, 0xe0, 0xa6, 0xf9, 0x3c, 0xd0,
1457911f4379Salnsn 0x21, 0x98, 0x60, 0xa6, 0x59, 0x86, 0xbd, 0x40,
1458911f4379Salnsn 0x17, 0x47, 0x82, 0xb9, 0xe1, 0x11, 0x8d, 0x4b,
1459911f4379Salnsn 0xcd, 0x1f, 0x54, 0x96, 0x17, 0x42, 0x22, 0x44,
1460911f4379Salnsn };
1461911f4379Salnsn
1462911f4379Salnsn /*
1463911f4379Salnsn * IV method encblkno1, blkno 2.
1464911f4379Salnsn */
1465911f4379Salnsn static const uint8_t aes_cbc_256_encblkno1_vec2_ctxt[SECSIZE] = {
1466911f4379Salnsn 0x1d, 0x65, 0xb2, 0x4e, 0xfa, 0x3f, 0xdb, 0xab,
1467911f4379Salnsn 0x34, 0x9d, 0x37, 0x03, 0x17, 0x44, 0xed, 0x5b,
1468911f4379Salnsn 0xf7, 0x1b, 0x6b, 0xc0, 0x5c, 0xfe, 0x5b, 0xcd,
1469911f4379Salnsn 0xf0, 0xaf, 0x26, 0x82, 0x97, 0x12, 0xb8, 0x4f,
1470911f4379Salnsn 0x76, 0x3d, 0x07, 0xd8, 0x29, 0x56, 0x3c, 0xbd,
1471911f4379Salnsn 0x0e, 0xac, 0xd1, 0x8f, 0x53, 0x1a, 0x8f, 0xcd,
1472911f4379Salnsn 0x04, 0x5b, 0x49, 0xe0, 0xf0, 0xea, 0xc9, 0x8a,
1473911f4379Salnsn 0x08, 0x3d, 0x1f, 0x2d, 0x8c, 0xec, 0xb8, 0xea,
1474911f4379Salnsn 0xe9, 0x24, 0xd1, 0x93, 0xd7, 0x9a, 0x0f, 0xd7,
1475911f4379Salnsn 0x0f, 0x6b, 0xa0, 0x08, 0x58, 0x81, 0x68, 0x2f,
1476911f4379Salnsn 0xde, 0x36, 0xb5, 0x87, 0xd9, 0xcd, 0x82, 0x13,
1477911f4379Salnsn 0x36, 0x16, 0x6a, 0x9a, 0x02, 0xca, 0xda, 0x6f,
1478911f4379Salnsn 0x51, 0x87, 0x75, 0x47, 0x89, 0xa4, 0x10, 0x60,
1479911f4379Salnsn 0xfb, 0x1a, 0x74, 0x55, 0x6d, 0x18, 0x8d, 0x42,
1480911f4379Salnsn 0x74, 0x2d, 0x12, 0x56, 0xc0, 0xcd, 0xa2, 0x57,
1481911f4379Salnsn 0x53, 0x31, 0x8c, 0x7a, 0x8b, 0xa8, 0x6d, 0x89,
1482911f4379Salnsn 0x81, 0xaf, 0x9c, 0xd9, 0x56, 0xe6, 0xdc, 0xe7,
1483911f4379Salnsn 0x84, 0x0f, 0x81, 0x56, 0x1a, 0xc8, 0x5d, 0xa3,
1484911f4379Salnsn 0xe0, 0x93, 0xea, 0x62, 0x7d, 0xa4, 0x5a, 0x58,
1485911f4379Salnsn 0x8f, 0x05, 0x85, 0x34, 0x0c, 0x74, 0x8e, 0xe7,
1486911f4379Salnsn 0xb4, 0x47, 0x93, 0x61, 0xbf, 0x61, 0x0a, 0xa2,
1487911f4379Salnsn 0x37, 0xcd, 0x82, 0x9d, 0x55, 0x9e, 0x32, 0x9e,
1488911f4379Salnsn 0x30, 0xce, 0x61, 0x89, 0xed, 0x25, 0x9e, 0x7c,
1489911f4379Salnsn 0x2a, 0xcd, 0x39, 0x45, 0x56, 0xbb, 0x1a, 0xe8,
1490911f4379Salnsn 0xb0, 0x75, 0x8f, 0xa1, 0x59, 0x09, 0xf8, 0x7a,
1491911f4379Salnsn 0xbd, 0x4f, 0x69, 0x8b, 0xe2, 0xf3, 0xbe, 0x9b,
1492911f4379Salnsn 0xea, 0x5f, 0x2c, 0x1e, 0x84, 0x69, 0xb2, 0xfa,
1493911f4379Salnsn 0xaf, 0x1d, 0xc8, 0xcf, 0x76, 0x91, 0xd0, 0x7a,
1494911f4379Salnsn 0xc9, 0xd1, 0x3d, 0xa5, 0xae, 0xae, 0xd7, 0x23,
1495911f4379Salnsn 0xbb, 0xb3, 0x5e, 0x8a, 0x10, 0xc6, 0xbe, 0xa6,
1496911f4379Salnsn 0x79, 0x69, 0x40, 0x83, 0x81, 0xe6, 0xb1, 0xa3,
1497911f4379Salnsn 0x7e, 0x57, 0x44, 0x66, 0xc9, 0x2e, 0x84, 0xdd,
1498911f4379Salnsn 0x00, 0xb4, 0x93, 0xae, 0x8f, 0x23, 0x12, 0xd6,
1499911f4379Salnsn 0x54, 0x56, 0xc3, 0x51, 0xe5, 0xf7, 0x69, 0x47,
1500911f4379Salnsn 0x00, 0x97, 0x71, 0x29, 0xcb, 0xcf, 0xeb, 0xd9,
1501911f4379Salnsn 0xaf, 0xc0, 0x2f, 0x5c, 0xd7, 0x3e, 0xe4, 0x07,
1502911f4379Salnsn 0xc9, 0x65, 0x2e, 0x8c, 0xf4, 0x54, 0xce, 0x8b,
1503911f4379Salnsn 0xc7, 0x0c, 0xb4, 0x74, 0x56, 0x79, 0xa6, 0x40,
1504911f4379Salnsn 0x4a, 0x58, 0xfd, 0x3f, 0x7b, 0x4c, 0xe9, 0xdb,
1505911f4379Salnsn 0x33, 0x85, 0x6f, 0xf7, 0x5a, 0x9f, 0x6f, 0xc4,
1506911f4379Salnsn 0x60, 0xad, 0x1b, 0xe2, 0xf5, 0xeb, 0x42, 0x7d,
1507911f4379Salnsn 0xa4, 0x43, 0x8d, 0x40, 0xfa, 0x53, 0xcc, 0xf0,
1508911f4379Salnsn 0x5f, 0x90, 0x0d, 0x04, 0x51, 0xb1, 0x48, 0xc7,
1509911f4379Salnsn 0x90, 0x65, 0xb2, 0xef, 0xca, 0xc5, 0x9a, 0xec,
1510911f4379Salnsn 0xde, 0x84, 0x21, 0x22, 0xeb, 0x97, 0xdd, 0xa2,
1511911f4379Salnsn 0x9d, 0x71, 0xb1, 0xe0, 0x86, 0x58, 0xc3, 0x57,
1512911f4379Salnsn 0xd5, 0x5a, 0x6f, 0xdc, 0xe5, 0xcc, 0x64, 0xc7,
1513911f4379Salnsn 0x80, 0x2a, 0xef, 0x90, 0x91, 0x96, 0xb4, 0xeb,
1514911f4379Salnsn 0xda, 0x3b, 0x7b, 0xbc, 0x14, 0x60, 0x52, 0xe5,
1515911f4379Salnsn 0xe5, 0xc8, 0x6a, 0x99, 0x46, 0x9d, 0x00, 0x77,
1516911f4379Salnsn 0x3b, 0x60, 0x75, 0x04, 0x06, 0x4a, 0x5a, 0x64,
1517911f4379Salnsn 0x6f, 0x2f, 0x58, 0x77, 0x27, 0x9a, 0xc5, 0x90,
1518911f4379Salnsn 0x37, 0xa7, 0xf3, 0x89, 0x72, 0x47, 0x4e, 0x08,
1519911f4379Salnsn 0xa5, 0x79, 0x11, 0x2f, 0x22, 0x5a, 0xbb, 0xcf,
1520911f4379Salnsn 0x76, 0xb9, 0x28, 0xc8, 0xc4, 0x5a, 0xe5, 0x90,
1521911f4379Salnsn 0xf7, 0x02, 0xe4, 0xf9, 0x0c, 0x4c, 0x9a, 0xb1,
1522911f4379Salnsn 0xa7, 0x99, 0x34, 0xd4, 0x77, 0x66, 0xff, 0x3c,
1523911f4379Salnsn 0x50, 0x9a, 0xff, 0x13, 0x49, 0xd6, 0x5a, 0xf6,
1524911f4379Salnsn 0x17, 0x6f, 0xca, 0x1a, 0xef, 0x0a, 0x2d, 0xf1,
1525911f4379Salnsn 0xdf, 0xd0, 0xa5, 0x6f, 0xa6, 0x22, 0x3c, 0x1f,
1526911f4379Salnsn 0xcf, 0xe7, 0xec, 0x23, 0x39, 0x6e, 0xc0, 0x37,
1527911f4379Salnsn 0x31, 0x84, 0xff, 0xe2, 0x5a, 0xd6, 0x88, 0x74,
1528911f4379Salnsn 0x15, 0x15, 0x46, 0x21, 0x00, 0xe4, 0x13, 0x9a,
1529911f4379Salnsn 0xfa, 0xb2, 0x49, 0x7e, 0x79, 0xfb, 0x8a, 0x2a,
1530911f4379Salnsn };
1531911f4379Salnsn
1532911f4379Salnsn /*
1533911f4379Salnsn * IV method encblkno1, blkno 3.
1534911f4379Salnsn */
1535911f4379Salnsn static const uint8_t aes_cbc_256_encblkno1_vec3_ctxt[SECSIZE] = {
1536911f4379Salnsn 0xc1, 0x4a, 0x3c, 0x90, 0xba, 0xd4, 0x9c, 0xe7,
1537911f4379Salnsn 0xf2, 0x5b, 0x3a, 0xc4, 0xce, 0x4a, 0x26, 0x4a,
1538911f4379Salnsn 0x9c, 0x3f, 0xe5, 0x7a, 0x15, 0xbb, 0xbd, 0x3e,
1539911f4379Salnsn 0xc6, 0x49, 0x47, 0x04, 0x4e, 0x8b, 0x73, 0xa6,
1540911f4379Salnsn 0x02, 0x3a, 0xc1, 0xa3, 0xfa, 0x1a, 0xd0, 0x03,
1541911f4379Salnsn 0xf7, 0x26, 0x9f, 0xad, 0x06, 0x8f, 0x86, 0xdc,
1542911f4379Salnsn 0xb8, 0x73, 0x87, 0xa2, 0x82, 0xc6, 0x80, 0xe1,
1543911f4379Salnsn 0xac, 0x3d, 0x16, 0x4c, 0xc3, 0x7c, 0x86, 0x01,
1544911f4379Salnsn 0xa5, 0x7a, 0x1c, 0x4b, 0x56, 0x68, 0xf6, 0x06,
1545911f4379Salnsn 0x99, 0x32, 0x42, 0x40, 0xf1, 0xb7, 0x44, 0x4b,
1546911f4379Salnsn 0xd1, 0xdb, 0xad, 0x4e, 0xa6, 0xc2, 0x5f, 0xee,
1547911f4379Salnsn 0x21, 0x1d, 0x58, 0xc6, 0xd5, 0x02, 0xef, 0xb2,
1548911f4379Salnsn 0x38, 0xef, 0x29, 0x25, 0xfd, 0x28, 0x8a, 0x5b,
1549911f4379Salnsn 0x8b, 0x36, 0x1a, 0xd6, 0x68, 0xf8, 0x77, 0xed,
1550911f4379Salnsn 0xba, 0xb3, 0xa5, 0x6f, 0x76, 0x5e, 0xb5, 0xd4,
1551911f4379Salnsn 0xc3, 0xb8, 0xf9, 0x67, 0x7a, 0x18, 0x43, 0xb6,
1552911f4379Salnsn 0x65, 0x07, 0x48, 0x1d, 0x56, 0x20, 0x11, 0xe1,
1553911f4379Salnsn 0x62, 0x6b, 0x70, 0xc9, 0x18, 0xa9, 0xa7, 0x36,
1554911f4379Salnsn 0xbf, 0x31, 0x74, 0xe3, 0x33, 0x02, 0x96, 0x7a,
1555911f4379Salnsn 0xf5, 0xd9, 0x8d, 0x05, 0x2b, 0xfd, 0x85, 0x4f,
1556911f4379Salnsn 0x03, 0x0f, 0xe1, 0xfb, 0x1a, 0x57, 0xaf, 0xdc,
1557911f4379Salnsn 0xff, 0xff, 0x5a, 0x96, 0x27, 0xca, 0xf3, 0x0c,
1558911f4379Salnsn 0xd8, 0x39, 0x3e, 0xbe, 0x41, 0x5a, 0x21, 0x95,
1559911f4379Salnsn 0x66, 0xe0, 0x69, 0x14, 0x2b, 0x18, 0xf2, 0x9b,
1560911f4379Salnsn 0xf4, 0x22, 0xdf, 0xa9, 0xe4, 0x7d, 0x32, 0x5d,
1561911f4379Salnsn 0x98, 0xa0, 0xe0, 0xe1, 0xe1, 0xbe, 0xae, 0x58,
1562911f4379Salnsn 0x63, 0xbe, 0x4b, 0x97, 0x83, 0xaa, 0x67, 0xd3,
1563911f4379Salnsn 0x1a, 0x70, 0xca, 0x82, 0x98, 0x77, 0x74, 0x1a,
1564911f4379Salnsn 0xf2, 0x3d, 0x6a, 0x7b, 0x8e, 0xc8, 0xca, 0x34,
1565911f4379Salnsn 0x44, 0xb8, 0xc0, 0xd0, 0x77, 0x8c, 0x4a, 0x5c,
1566911f4379Salnsn 0xae, 0xd3, 0x17, 0x7c, 0x12, 0x47, 0x3e, 0xe2,
1567911f4379Salnsn 0x2e, 0x51, 0xe0, 0x52, 0x88, 0x8e, 0xe9, 0x68,
1568911f4379Salnsn 0xb6, 0x13, 0xf8, 0x69, 0xc9, 0x4b, 0xdd, 0x91,
1569911f4379Salnsn 0x27, 0xb0, 0x22, 0x0c, 0x7d, 0xad, 0xb0, 0x75,
1570911f4379Salnsn 0xe8, 0x76, 0x34, 0xc2, 0xd9, 0xf3, 0x20, 0xf7,
1571911f4379Salnsn 0x1d, 0x0f, 0x07, 0x61, 0xc2, 0xb8, 0x7d, 0x00,
1572911f4379Salnsn 0xa6, 0x68, 0xad, 0xd4, 0x0b, 0xa4, 0xa0, 0x32,
1573911f4379Salnsn 0x6d, 0xa5, 0xc0, 0x07, 0x65, 0xae, 0xda, 0x2e,
1574911f4379Salnsn 0xd6, 0xb7, 0xd3, 0x99, 0x8b, 0x37, 0x08, 0x13,
1575911f4379Salnsn 0x6a, 0x94, 0xe9, 0xe4, 0xea, 0x34, 0xee, 0x07,
1576911f4379Salnsn 0xee, 0x77, 0xb1, 0x3f, 0x54, 0x05, 0xbe, 0x66,
1577911f4379Salnsn 0x7f, 0xf2, 0x70, 0x34, 0x45, 0xa7, 0x4b, 0x27,
1578911f4379Salnsn 0xef, 0xe6, 0x39, 0x2e, 0x13, 0x41, 0xdb, 0x2d,
1579911f4379Salnsn 0x1f, 0x76, 0x11, 0x76, 0x33, 0xf3, 0x92, 0x33,
1580911f4379Salnsn 0x69, 0x16, 0x34, 0x86, 0x23, 0xc5, 0xfa, 0xaf,
1581911f4379Salnsn 0xff, 0xbf, 0xee, 0x84, 0x56, 0xf6, 0x1e, 0x54,
1582911f4379Salnsn 0x37, 0x32, 0x79, 0x83, 0x45, 0x04, 0x6f, 0x0e,
1583911f4379Salnsn 0x75, 0x75, 0xd9, 0xd6, 0x4a, 0x87, 0xfb, 0x3c,
1584911f4379Salnsn 0xb1, 0xcf, 0x66, 0xab, 0xa4, 0xaa, 0xf6, 0x96,
1585911f4379Salnsn 0xb0, 0xcd, 0xaf, 0xac, 0x2c, 0x6d, 0x72, 0xca,
1586911f4379Salnsn 0x43, 0xef, 0xb7, 0xa0, 0x4c, 0x62, 0xba, 0x7e,
1587911f4379Salnsn 0x59, 0x0b, 0xff, 0x90, 0x49, 0x63, 0xf6, 0x31,
1588911f4379Salnsn 0x8b, 0x50, 0x20, 0x82, 0x7d, 0xf0, 0x2d, 0xe4,
1589911f4379Salnsn 0x5b, 0xda, 0xdf, 0xb0, 0xfb, 0x07, 0x7b, 0xe3,
1590911f4379Salnsn 0x5f, 0xac, 0xd8, 0xe5, 0xa0, 0x3e, 0xc5, 0x60,
1591911f4379Salnsn 0x94, 0xbc, 0xf7, 0x7e, 0xdc, 0x18, 0x27, 0x20,
1592911f4379Salnsn 0xb1, 0xdd, 0x51, 0x4a, 0xb2, 0xe0, 0xc0, 0xe7,
1593911f4379Salnsn 0x5d, 0x0f, 0x88, 0xb2, 0xa0, 0x42, 0x73, 0xfb,
1594911f4379Salnsn 0xc4, 0x24, 0xa7, 0x17, 0x8a, 0xc9, 0x6d, 0x34,
1595911f4379Salnsn 0xe8, 0x7b, 0x51, 0x37, 0x32, 0x3f, 0xf8, 0x7e,
1596911f4379Salnsn 0x92, 0xe4, 0x87, 0xd2, 0x89, 0x66, 0xb0, 0xf6,
1597911f4379Salnsn 0xc2, 0xba, 0x2f, 0x42, 0x8f, 0x1d, 0x5d, 0x81,
1598911f4379Salnsn 0xad, 0xfd, 0x00, 0xbc, 0xa9, 0x11, 0x96, 0xae,
1599911f4379Salnsn 0x80, 0xf1, 0x27, 0xe0, 0xeb, 0x5b, 0x60, 0x39,
1600911f4379Salnsn };
1601911f4379Salnsn
1602911f4379Salnsn const struct testvec aes_cbc_256_1_vectors[] = {
1603911f4379Salnsn {
1604911f4379Salnsn .blkno = 0,
1605911f4379Salnsn .ptxt = aes_cbc_ptxt,
1606911f4379Salnsn .ctxt = aes_cbc_256_encblkno1_vec0_ctxt,
1607911f4379Salnsn },
1608911f4379Salnsn {
1609911f4379Salnsn .blkno = 1,
1610911f4379Salnsn .ptxt = aes_cbc_ptxt,
1611911f4379Salnsn .ctxt = aes_cbc_256_encblkno1_vec1_ctxt,
1612911f4379Salnsn },
1613911f4379Salnsn {
1614911f4379Salnsn .blkno = 2,
1615911f4379Salnsn .ptxt = aes_cbc_ptxt,
1616911f4379Salnsn .ctxt = aes_cbc_256_encblkno1_vec2_ctxt,
1617911f4379Salnsn },
1618911f4379Salnsn {
1619911f4379Salnsn .blkno = 3,
1620911f4379Salnsn .ptxt = aes_cbc_ptxt,
1621911f4379Salnsn .ctxt = aes_cbc_256_encblkno1_vec3_ctxt,
1622911f4379Salnsn },
1623911f4379Salnsn };
1624911f4379Salnsn
1625911f4379Salnsn /*
1626911f4379Salnsn * IV method encblkno8, blkno 0.
1627911f4379Salnsn */
1628911f4379Salnsn static const uint8_t aes_cbc_256_encblkno8_vec0_ctxt[SECSIZE] = {
1629911f4379Salnsn 0xe5, 0x55, 0xd9, 0xae, 0xc0, 0x66, 0x2d, 0x2f,
1630911f4379Salnsn 0x11, 0xb1, 0x27, 0xd2, 0xb2, 0x73, 0xe4, 0x0a,
1631911f4379Salnsn 0x85, 0xb5, 0x3c, 0x79, 0x78, 0xd6, 0x35, 0x3d,
1632911f4379Salnsn 0x46, 0xac, 0xa3, 0x81, 0x55, 0x76, 0x86, 0xfc,
1633911f4379Salnsn 0x37, 0xa0, 0x95, 0xc2, 0x30, 0xc9, 0x19, 0xc2,
1634911f4379Salnsn 0x5f, 0xb0, 0x13, 0xa2, 0xa8, 0xe1, 0xc7, 0xb7,
1635911f4379Salnsn 0x61, 0x54, 0xd8, 0xe6, 0xca, 0x94, 0x6f, 0x47,
1636911f4379Salnsn 0x87, 0x33, 0x58, 0xd9, 0xd5, 0xd2, 0x95, 0x73,
1637911f4379Salnsn 0x87, 0x9a, 0x31, 0xe5, 0x2e, 0x95, 0x83, 0x7d,
1638911f4379Salnsn 0xdc, 0x0f, 0xc5, 0x2f, 0x14, 0xbc, 0x80, 0xac,
1639911f4379Salnsn 0x47, 0xd6, 0xd8, 0x17, 0x9e, 0xf7, 0xff, 0x5b,
1640911f4379Salnsn 0x85, 0x05, 0x91, 0xe0, 0x73, 0xd2, 0x5c, 0xa7,
1641911f4379Salnsn 0x41, 0xf8, 0xcb, 0x3d, 0x38, 0x14, 0x28, 0x3e,
1642911f4379Salnsn 0x89, 0x6f, 0xd4, 0xac, 0xb6, 0x11, 0x35, 0x67,
1643911f4379Salnsn 0x7b, 0xef, 0x0d, 0xd8, 0x4d, 0xdd, 0x7e, 0x73,
1644911f4379Salnsn 0xcd, 0x58, 0x0f, 0x5a, 0xcf, 0x42, 0xc5, 0x2f,
1645911f4379Salnsn 0x61, 0x62, 0x13, 0xde, 0xcd, 0x2e, 0x22, 0xab,
1646911f4379Salnsn 0xb0, 0x47, 0x5c, 0x1e, 0x5c, 0xc5, 0x49, 0xc6,
1647911f4379Salnsn 0x3b, 0x0c, 0xe3, 0xb3, 0x59, 0xbf, 0xbf, 0x85,
1648911f4379Salnsn 0xf6, 0x0a, 0x3d, 0x14, 0x74, 0x2a, 0xcd, 0xea,
1649911f4379Salnsn 0x67, 0xd6, 0x80, 0x42, 0x3c, 0x6a, 0x92, 0x50,
1650911f4379Salnsn 0x95, 0x73, 0xb5, 0x7a, 0xb2, 0xbc, 0x76, 0xe5,
1651911f4379Salnsn 0x8f, 0xf3, 0x85, 0x5e, 0xcd, 0xf9, 0xb4, 0x9d,
1652911f4379Salnsn 0xa8, 0x0a, 0xda, 0x95, 0x11, 0x2e, 0x22, 0x0c,
1653911f4379Salnsn 0x2f, 0xb0, 0xbf, 0x92, 0x6b, 0x45, 0xec, 0x20,
1654911f4379Salnsn 0xd2, 0x2b, 0x98, 0x3f, 0x4f, 0x97, 0xf2, 0xed,
1655911f4379Salnsn 0xf7, 0x9b, 0x89, 0x4e, 0xd6, 0x59, 0xbb, 0x24,
1656911f4379Salnsn 0x22, 0x44, 0x9f, 0x03, 0xb5, 0x42, 0xc8, 0x97,
1657911f4379Salnsn 0xc7, 0xdb, 0x21, 0xfc, 0xcf, 0x33, 0xa1, 0xf1,
1658911f4379Salnsn 0xc0, 0x1f, 0x28, 0x77, 0xee, 0xa5, 0x6a, 0x12,
1659911f4379Salnsn 0xef, 0x8b, 0x48, 0xd1, 0xb3, 0xac, 0x65, 0x69,
1660911f4379Salnsn 0x46, 0x04, 0x39, 0xb1, 0x9e, 0xfa, 0xab, 0x21,
1661911f4379Salnsn 0x51, 0xa4, 0x33, 0xe9, 0x58, 0x5d, 0xf1, 0xc6,
1662911f4379Salnsn 0x69, 0x44, 0x8c, 0x17, 0xf9, 0xaa, 0x96, 0xcb,
1663911f4379Salnsn 0x40, 0xb4, 0x5c, 0x83, 0x76, 0x1e, 0x8a, 0x2b,
1664911f4379Salnsn 0x5f, 0x6b, 0xc1, 0x73, 0xd4, 0x5f, 0x48, 0xa3,
1665911f4379Salnsn 0x0e, 0x07, 0x69, 0x12, 0xc1, 0xbd, 0x13, 0xad,
1666911f4379Salnsn 0xe2, 0xcf, 0x3d, 0x96, 0xd8, 0xaf, 0xed, 0xdc,
1667911f4379Salnsn 0x4c, 0x72, 0xf6, 0xce, 0x15, 0x86, 0x88, 0x8c,
1668911f4379Salnsn 0xbb, 0x60, 0xb3, 0xb9, 0xde, 0x42, 0x58, 0x6e,
1669911f4379Salnsn 0xc4, 0x58, 0xac, 0x77, 0x8d, 0x35, 0x23, 0x5f,
1670911f4379Salnsn 0xc3, 0xf9, 0x33, 0x46, 0x17, 0x80, 0x31, 0xfd,
1671911f4379Salnsn 0xcd, 0x0a, 0x1e, 0x9b, 0xac, 0x42, 0xda, 0x70,
1672911f4379Salnsn 0x54, 0x9a, 0xeb, 0x22, 0x27, 0x09, 0x0c, 0x6c,
1673911f4379Salnsn 0x18, 0x1d, 0x1a, 0x5b, 0x86, 0x4d, 0x80, 0xca,
1674911f4379Salnsn 0x4d, 0xda, 0x0e, 0x9a, 0x8e, 0x61, 0x04, 0x68,
1675911f4379Salnsn 0x29, 0x08, 0x3b, 0xae, 0x14, 0x7d, 0x8e, 0x43,
1676911f4379Salnsn 0x7a, 0xa7, 0x83, 0xcf, 0xb3, 0x95, 0xd3, 0x42,
1677911f4379Salnsn 0x2d, 0x6b, 0xd8, 0x5c, 0x43, 0x31, 0x5b, 0x9c,
1678911f4379Salnsn 0x18, 0x30, 0x0d, 0x61, 0x9c, 0xab, 0x29, 0x55,
1679911f4379Salnsn 0xdd, 0x84, 0x24, 0x21, 0xec, 0x44, 0xad, 0xf3,
1680911f4379Salnsn 0xb3, 0x70, 0x77, 0x2b, 0xfc, 0x3f, 0x99, 0xb8,
1681911f4379Salnsn 0x50, 0x26, 0x8d, 0x96, 0xa2, 0x22, 0x99, 0x33,
1682911f4379Salnsn 0x53, 0xa8, 0x5d, 0x84, 0x9b, 0x76, 0x26, 0x6e,
1683911f4379Salnsn 0x75, 0x14, 0x7e, 0x63, 0xc6, 0x7a, 0x4f, 0x5c,
1684911f4379Salnsn 0xfe, 0x4b, 0x80, 0xee, 0xb3, 0x32, 0x8d, 0x25,
1685911f4379Salnsn 0x1c, 0x80, 0x7b, 0x3d, 0xd3, 0x84, 0x01, 0x1e,
1686911f4379Salnsn 0x16, 0xa4, 0xca, 0x0d, 0x38, 0x40, 0x03, 0x6f,
1687911f4379Salnsn 0x81, 0x8b, 0x5c, 0xad, 0x22, 0xfa, 0x6f, 0xeb,
1688911f4379Salnsn 0x60, 0xa1, 0xcb, 0x2d, 0x97, 0xf8, 0xa6, 0x5e,
1689911f4379Salnsn 0xbe, 0x93, 0xb7, 0xe6, 0x66, 0xbf, 0x9b, 0xd2,
1690911f4379Salnsn 0x5c, 0x31, 0xcc, 0x70, 0x0c, 0xf1, 0xfb, 0x9f,
1691911f4379Salnsn 0x09, 0x1b, 0xc2, 0x85, 0x2f, 0x22, 0x7c, 0x95,
1692911f4379Salnsn 0x58, 0x09, 0xce, 0x9c, 0x7c, 0x50, 0xca, 0x89,
1693911f4379Salnsn };
1694911f4379Salnsn
1695911f4379Salnsn /*
1696911f4379Salnsn * IV method encblkno8, blkno 1.
1697911f4379Salnsn */
1698911f4379Salnsn static const uint8_t aes_cbc_256_encblkno8_vec1_ctxt[SECSIZE] = {
1699911f4379Salnsn 0x37, 0x4d, 0x25, 0xdb, 0x35, 0xe0, 0x8b, 0x82,
1700911f4379Salnsn 0x5f, 0x77, 0xd2, 0x53, 0xd1, 0x1f, 0xf0, 0x91,
1701911f4379Salnsn 0x5b, 0xd8, 0x93, 0x2f, 0xb2, 0x81, 0xbd, 0x75,
1702911f4379Salnsn 0xf0, 0xd8, 0xff, 0x46, 0x8c, 0x9d, 0xf6, 0xe2,
1703911f4379Salnsn 0x99, 0x1e, 0x76, 0x9d, 0x00, 0x3a, 0xe3, 0xcf,
1704911f4379Salnsn 0x6d, 0x24, 0xa8, 0xe8, 0xb4, 0xa7, 0xa0, 0x87,
1705911f4379Salnsn 0xa8, 0x43, 0x01, 0x21, 0x29, 0x70, 0x39, 0x2d,
1706911f4379Salnsn 0x0b, 0x2a, 0xe9, 0x11, 0x57, 0x86, 0x13, 0xd4,
1707911f4379Salnsn 0x1c, 0x1b, 0x59, 0x19, 0xc4, 0x7d, 0x2c, 0x94,
1708911f4379Salnsn 0xc7, 0x01, 0xb8, 0x96, 0x01, 0xd2, 0x01, 0x17,
1709911f4379Salnsn 0x97, 0x41, 0x68, 0xab, 0xba, 0x9c, 0xc8, 0xad,
1710911f4379Salnsn 0x4e, 0xd7, 0xa8, 0x4c, 0x96, 0x3f, 0xf9, 0xfc,
1711911f4379Salnsn 0x7e, 0xd7, 0x59, 0xe8, 0x25, 0x51, 0x4d, 0x1d,
1712911f4379Salnsn 0x99, 0xfd, 0x0b, 0xe9, 0x88, 0x23, 0xd1, 0x4b,
1713911f4379Salnsn 0x30, 0x6e, 0x18, 0x7c, 0xe3, 0x7a, 0x54, 0x2a,
1714911f4379Salnsn 0x4f, 0x2a, 0x99, 0x8f, 0xaf, 0xd7, 0x5e, 0x25,
1715911f4379Salnsn 0xfe, 0x9c, 0x47, 0x09, 0x63, 0x38, 0x0d, 0x5f,
1716911f4379Salnsn 0xb3, 0x43, 0xa6, 0x66, 0x9b, 0xc5, 0x3d, 0x88,
1717911f4379Salnsn 0x5e, 0xc7, 0x60, 0x99, 0x8e, 0xcb, 0x6a, 0x65,
1718911f4379Salnsn 0x60, 0x92, 0x88, 0xe1, 0x2b, 0xfe, 0x83, 0x34,
1719911f4379Salnsn 0x92, 0xa6, 0x6c, 0x22, 0x56, 0x5b, 0x75, 0x8a,
1720911f4379Salnsn 0x93, 0xc3, 0x72, 0xca, 0xff, 0x59, 0x3b, 0xd8,
1721911f4379Salnsn 0xa0, 0x80, 0x56, 0x98, 0x62, 0x8a, 0x70, 0xf2,
1722911f4379Salnsn 0x5d, 0xd9, 0x40, 0x6b, 0xbf, 0x9f, 0x71, 0x8d,
1723911f4379Salnsn 0x2e, 0x38, 0xe8, 0x06, 0x42, 0xa9, 0x95, 0x70,
1724911f4379Salnsn 0x31, 0xd1, 0xe9, 0x6c, 0xab, 0xbb, 0xed, 0x25,
1725911f4379Salnsn 0xe8, 0xca, 0xe8, 0xa4, 0x98, 0x82, 0xf5, 0xe3,
1726911f4379Salnsn 0x11, 0x3c, 0xc4, 0xea, 0xea, 0x88, 0x56, 0x91,
1727911f4379Salnsn 0xd6, 0x5d, 0xaa, 0xf7, 0xe9, 0x49, 0x2f, 0x42,
1728911f4379Salnsn 0x5b, 0x76, 0xef, 0xed, 0x03, 0x9e, 0x5f, 0x4d,
1729911f4379Salnsn 0x65, 0x25, 0xa5, 0xe8, 0x26, 0xba, 0x03, 0x4f,
1730911f4379Salnsn 0x0e, 0x39, 0xd2, 0x53, 0x62, 0x98, 0x81, 0x9d,
1731911f4379Salnsn 0x8e, 0xad, 0x50, 0x17, 0x9f, 0xcc, 0x34, 0x45,
1732911f4379Salnsn 0x19, 0x5c, 0x1c, 0xd1, 0xbc, 0x71, 0x89, 0xaa,
1733911f4379Salnsn 0x9a, 0x65, 0x55, 0x6f, 0x78, 0xd4, 0xd3, 0x5b,
1734911f4379Salnsn 0x27, 0x8d, 0x94, 0x46, 0xd9, 0x95, 0xb3, 0x5f,
1735911f4379Salnsn 0xc4, 0x35, 0x8d, 0xba, 0x1c, 0x40, 0x52, 0xd1,
1736911f4379Salnsn 0x99, 0x27, 0x5d, 0x42, 0x28, 0xef, 0xcb, 0x9b,
1737911f4379Salnsn 0x10, 0x7a, 0x19, 0xbf, 0x72, 0xa3, 0x4a, 0xb9,
1738911f4379Salnsn 0x56, 0x83, 0x39, 0xa6, 0xb2, 0xcd, 0x48, 0x85,
1739911f4379Salnsn 0xf9, 0xcc, 0x72, 0x88, 0xb3, 0x5a, 0x9b, 0x45,
1740911f4379Salnsn 0xb2, 0xd3, 0x66, 0x2d, 0x24, 0x51, 0x68, 0x91,
1741911f4379Salnsn 0x9d, 0x47, 0x6a, 0xb3, 0x9a, 0x60, 0xb3, 0xcd,
1742911f4379Salnsn 0x6b, 0x43, 0x96, 0x21, 0xa0, 0x65, 0x43, 0xde,
1743911f4379Salnsn 0x4f, 0x6e, 0xb5, 0x81, 0x50, 0x7e, 0xca, 0x4b,
1744911f4379Salnsn 0xdb, 0x30, 0xf2, 0xcb, 0x28, 0x3b, 0x19, 0x6a,
1745911f4379Salnsn 0x0a, 0xfa, 0x05, 0x5e, 0x61, 0xde, 0x76, 0x7e,
1746911f4379Salnsn 0xdf, 0xd9, 0xa9, 0x1b, 0xd0, 0x8a, 0xb5, 0x04,
1747911f4379Salnsn 0x51, 0xf5, 0x66, 0xa2, 0x32, 0x21, 0xb2, 0xa9,
1748911f4379Salnsn 0x40, 0x78, 0x60, 0x9d, 0xdc, 0x45, 0xbe, 0xb4,
1749911f4379Salnsn 0x3a, 0xba, 0xd1, 0xec, 0x31, 0x53, 0x24, 0x22,
1750911f4379Salnsn 0x70, 0x99, 0xda, 0xc8, 0x17, 0x04, 0x87, 0x2c,
1751911f4379Salnsn 0x89, 0x86, 0x24, 0xec, 0x52, 0x12, 0x6a, 0x51,
1752911f4379Salnsn 0x1e, 0x2a, 0x5e, 0x96, 0xfb, 0xac, 0x95, 0x4a,
1753911f4379Salnsn 0x1a, 0x06, 0x8f, 0xdf, 0xa7, 0x26, 0xeb, 0x6c,
1754911f4379Salnsn 0x79, 0x4a, 0x77, 0xea, 0xb3, 0xb1, 0x3a, 0x19,
1755911f4379Salnsn 0xe6, 0x5e, 0xe2, 0x26, 0x1b, 0x85, 0x3c, 0x9b,
1756911f4379Salnsn 0x1d, 0x05, 0x1d, 0xbe, 0x5c, 0x25, 0x7f, 0x45,
1757911f4379Salnsn 0x4c, 0x09, 0x4c, 0xc1, 0x47, 0xa5, 0x44, 0xfc,
1758911f4379Salnsn 0x04, 0x2b, 0xad, 0x53, 0xac, 0x57, 0x22, 0x54,
1759911f4379Salnsn 0x13, 0x7c, 0xc9, 0x96, 0x44, 0xda, 0x74, 0x95,
1760911f4379Salnsn 0x6e, 0x8c, 0xe6, 0x6a, 0x05, 0x05, 0xf3, 0x8c,
1761911f4379Salnsn 0x81, 0xaf, 0xbc, 0xb1, 0x91, 0xe7, 0xfd, 0x81,
1762911f4379Salnsn 0x3f, 0x47, 0xc2, 0x6f, 0x0d, 0x62, 0xf6, 0x6e,
1763911f4379Salnsn };
1764911f4379Salnsn
1765911f4379Salnsn /*
1766911f4379Salnsn * IV method encblkno8, blkno 2.
1767911f4379Salnsn */
1768911f4379Salnsn static const uint8_t aes_cbc_256_encblkno8_vec2_ctxt[SECSIZE] = {
1769911f4379Salnsn 0x5a, 0x24, 0xfd, 0xee, 0x9a, 0x44, 0xfb, 0xac,
1770911f4379Salnsn 0x3e, 0x46, 0x53, 0x95, 0x9e, 0xeb, 0x1f, 0xd9,
1771911f4379Salnsn 0xfd, 0xc6, 0x4f, 0xae, 0x0b, 0xc8, 0xf2, 0xbd,
1772911f4379Salnsn 0x77, 0x16, 0x7a, 0x2e, 0x8e, 0xec, 0x7a, 0x53,
1773911f4379Salnsn 0xf4, 0xe0, 0x34, 0xba, 0x6e, 0xfa, 0xc4, 0x69,
1774911f4379Salnsn 0xd7, 0x50, 0x13, 0x03, 0xfb, 0xb9, 0x66, 0x96,
1775911f4379Salnsn 0xd4, 0x21, 0x67, 0xcc, 0x4c, 0x4d, 0x10, 0x2f,
1776911f4379Salnsn 0x17, 0xeb, 0x41, 0xf4, 0x65, 0x80, 0x0b, 0x57,
1777911f4379Salnsn 0x2d, 0xdf, 0xcf, 0x9f, 0xb9, 0xd8, 0x53, 0x36,
1778911f4379Salnsn 0xbc, 0x1d, 0x9a, 0xe3, 0x17, 0xe7, 0x08, 0x23,
1779911f4379Salnsn 0xb3, 0x60, 0xfe, 0xdf, 0x24, 0x06, 0xc5, 0x86,
1780911f4379Salnsn 0x74, 0x89, 0xa3, 0xb2, 0xfc, 0x4a, 0x57, 0xf5,
1781911f4379Salnsn 0xa6, 0x96, 0xfb, 0x56, 0xf0, 0xf4, 0xdc, 0xdc,
1782911f4379Salnsn 0xb8, 0x53, 0x5f, 0xb2, 0xb0, 0x8d, 0x2d, 0x90,
1783911f4379Salnsn 0x3d, 0x78, 0x4d, 0x42, 0x3a, 0x74, 0xa4, 0x8e,
1784911f4379Salnsn 0x41, 0x7c, 0x2a, 0xff, 0xe4, 0x57, 0x1c, 0x9d,
1785911f4379Salnsn 0x94, 0xc5, 0x5d, 0xd8, 0x8b, 0x88, 0x48, 0x15,
1786911f4379Salnsn 0x16, 0x8a, 0xf3, 0x07, 0x3a, 0xee, 0x65, 0x24,
1787911f4379Salnsn 0xbc, 0x7f, 0x58, 0xad, 0xed, 0xf2, 0xbd, 0x18,
1788911f4379Salnsn 0x88, 0x1a, 0x80, 0x6e, 0xb7, 0x93, 0xe0, 0x45,
1789911f4379Salnsn 0x04, 0xb0, 0xfc, 0xf9, 0x48, 0x76, 0xaf, 0xec,
1790911f4379Salnsn 0x08, 0xca, 0x99, 0x64, 0x85, 0x98, 0x2c, 0xd8,
1791911f4379Salnsn 0x85, 0x72, 0x32, 0xbe, 0x92, 0x18, 0xdd, 0xab,
1792911f4379Salnsn 0x20, 0x8f, 0x8e, 0x11, 0xc6, 0x08, 0xf9, 0x8b,
1793911f4379Salnsn 0xaf, 0x5f, 0xa9, 0xe5, 0x11, 0xc7, 0x45, 0x91,
1794911f4379Salnsn 0x6e, 0x47, 0xaa, 0x0f, 0x4c, 0xf4, 0xc1, 0xb0,
1795911f4379Salnsn 0x75, 0x4c, 0xba, 0x1d, 0xb3, 0x33, 0xf7, 0x47,
1796911f4379Salnsn 0xbe, 0x94, 0x0b, 0x2e, 0xfa, 0x38, 0x5e, 0x5f,
1797911f4379Salnsn 0x0a, 0xc2, 0x0c, 0x4e, 0x72, 0x29, 0x16, 0xc1,
1798911f4379Salnsn 0x82, 0x70, 0xd4, 0xd3, 0x1b, 0x25, 0xbe, 0x0d,
1799911f4379Salnsn 0x6b, 0x0a, 0x13, 0x9f, 0x4d, 0x3d, 0x7b, 0x10,
1800911f4379Salnsn 0x9f, 0x93, 0x43, 0x50, 0xd1, 0x17, 0x08, 0x77,
1801911f4379Salnsn 0x23, 0x58, 0x35, 0x41, 0x23, 0xf6, 0x9c, 0x6f,
1802911f4379Salnsn 0x2e, 0x81, 0x6e, 0x75, 0x9b, 0x9f, 0x37, 0x4f,
1803911f4379Salnsn 0xb7, 0xa1, 0xce, 0xde, 0x0c, 0x74, 0x99, 0x31,
1804911f4379Salnsn 0x0e, 0x27, 0x42, 0x99, 0xdd, 0x93, 0x03, 0x6b,
1805911f4379Salnsn 0x44, 0x22, 0xd4, 0xc8, 0x67, 0xb5, 0xb2, 0x4d,
1806911f4379Salnsn 0x11, 0x2e, 0x80, 0x09, 0xa2, 0x5b, 0xcf, 0x0c,
1807911f4379Salnsn 0xff, 0xfa, 0x51, 0xe5, 0x9b, 0xdd, 0x11, 0xa1,
1808911f4379Salnsn 0x17, 0x04, 0x9e, 0xc8, 0xd8, 0x1d, 0xc1, 0x5c,
1809911f4379Salnsn 0xc3, 0xde, 0x83, 0x77, 0xa3, 0xec, 0x59, 0x7e,
1810911f4379Salnsn 0xfb, 0xe8, 0x45, 0xff, 0xc3, 0xb3, 0xd3, 0x9e,
1811911f4379Salnsn 0x3e, 0xc4, 0x75, 0xca, 0xc1, 0x77, 0xee, 0x1a,
1812911f4379Salnsn 0xdc, 0x58, 0xab, 0x27, 0xc1, 0xfe, 0x21, 0x26,
1813911f4379Salnsn 0x9a, 0xe0, 0x15, 0xab, 0x35, 0x8d, 0xbc, 0x22,
1814911f4379Salnsn 0x37, 0xbb, 0x4e, 0xab, 0x9d, 0xa2, 0xaf, 0xf9,
1815911f4379Salnsn 0x45, 0x17, 0xb1, 0xb8, 0xd4, 0x52, 0x1e, 0x67,
1816911f4379Salnsn 0xeb, 0xac, 0xe0, 0x87, 0x6c, 0xe4, 0x7a, 0x03,
1817911f4379Salnsn 0x73, 0xe4, 0x43, 0xeb, 0x3b, 0x57, 0x3f, 0x56,
1818911f4379Salnsn 0x4b, 0x6c, 0x26, 0x81, 0x27, 0xbf, 0x7e, 0x59,
1819911f4379Salnsn 0xcd, 0xab, 0x67, 0x8c, 0x4b, 0x6f, 0xa5, 0x47,
1820911f4379Salnsn 0x2c, 0x45, 0x28, 0x5a, 0x3d, 0x88, 0x53, 0xf9,
1821911f4379Salnsn 0x25, 0xdf, 0x5d, 0xba, 0xf7, 0x18, 0xa7, 0x3d,
1822911f4379Salnsn 0x79, 0xb4, 0x43, 0x59, 0x77, 0xf9, 0xd5, 0x5d,
1823911f4379Salnsn 0x4f, 0x31, 0x56, 0x8c, 0x21, 0xb5, 0xc0, 0xa2,
1824911f4379Salnsn 0xca, 0x04, 0x62, 0x2c, 0xc8, 0xa8, 0x11, 0x82,
1825911f4379Salnsn 0x1b, 0xde, 0xad, 0x20, 0x5b, 0xd2, 0x63, 0xfb,
1826911f4379Salnsn 0x6d, 0xba, 0xd4, 0xcc, 0xb4, 0x9d, 0xe8, 0xa8,
1827911f4379Salnsn 0xd1, 0x06, 0x81, 0xf0, 0xb9, 0xd4, 0x90, 0x30,
1828911f4379Salnsn 0xcd, 0x0a, 0xe8, 0xd2, 0x8c, 0x7a, 0xbf, 0xf6,
1829911f4379Salnsn 0x0d, 0xa0, 0xae, 0x1b, 0x21, 0x18, 0x93, 0x18,
1830911f4379Salnsn 0x71, 0xe1, 0xa0, 0x63, 0x5a, 0x9d, 0x4e, 0x6a,
1831911f4379Salnsn 0x52, 0x90, 0xaf, 0xdb, 0x26, 0x1e, 0xa9, 0xa1,
1832911f4379Salnsn 0xc7, 0xf9, 0xf8, 0xa7, 0x3f, 0x85, 0xa1, 0xa4,
1833911f4379Salnsn };
1834911f4379Salnsn
1835911f4379Salnsn /*
1836911f4379Salnsn * IV method encblkno8, blkno 3.
1837911f4379Salnsn */
1838911f4379Salnsn static const uint8_t aes_cbc_256_encblkno8_vec3_ctxt[SECSIZE] = {
1839911f4379Salnsn 0x83, 0x77, 0xd8, 0xa8, 0x6a, 0x36, 0x41, 0x72,
1840911f4379Salnsn 0xb6, 0x03, 0x4e, 0x5e, 0x39, 0x36, 0xe3, 0xf5,
1841911f4379Salnsn 0xd0, 0x1b, 0x0d, 0x97, 0x78, 0x46, 0xee, 0xfd,
1842911f4379Salnsn 0x34, 0x34, 0x16, 0xa0, 0x44, 0xcf, 0x0b, 0xdc,
1843911f4379Salnsn 0xfb, 0x82, 0x98, 0xa2, 0x79, 0xc2, 0xe7, 0x1c,
1844911f4379Salnsn 0x43, 0x43, 0x4c, 0x7f, 0xe7, 0xa6, 0xe6, 0x10,
1845911f4379Salnsn 0x9e, 0x65, 0xb2, 0x09, 0xc7, 0x5f, 0xaa, 0xb7,
1846911f4379Salnsn 0xb8, 0xad, 0x83, 0xd5, 0x9e, 0xd1, 0xb2, 0xce,
1847911f4379Salnsn 0x4b, 0xa4, 0x5d, 0xbc, 0xd6, 0xf6, 0x0a, 0xe7,
1848911f4379Salnsn 0x1b, 0xe9, 0x86, 0xbc, 0x72, 0xcc, 0x6f, 0xcc,
1849911f4379Salnsn 0xf2, 0xde, 0x08, 0x48, 0xa2, 0x20, 0x31, 0x6a,
1850911f4379Salnsn 0xdd, 0xbe, 0xc5, 0x36, 0x55, 0xff, 0xce, 0xfa,
1851911f4379Salnsn 0xdf, 0x60, 0x26, 0x77, 0x7f, 0xd0, 0xfa, 0xd7,
1852911f4379Salnsn 0x76, 0x70, 0x14, 0x11, 0xbf, 0x57, 0xc2, 0xdd,
1853911f4379Salnsn 0x5f, 0xd3, 0x50, 0x49, 0xf8, 0xd1, 0xa7, 0xe2,
1854911f4379Salnsn 0x8b, 0x89, 0xa0, 0xbc, 0x44, 0x42, 0x45, 0x10,
1855911f4379Salnsn 0xfe, 0x66, 0x3d, 0x56, 0x09, 0x21, 0x7c, 0x49,
1856911f4379Salnsn 0x30, 0xde, 0xe2, 0x4b, 0x26, 0x65, 0x8a, 0xe4,
1857911f4379Salnsn 0x79, 0x08, 0x3a, 0xca, 0x36, 0x4f, 0x97, 0x3c,
1858911f4379Salnsn 0xe4, 0x6a, 0xc3, 0xdb, 0xce, 0xac, 0x78, 0x76,
1859911f4379Salnsn 0x25, 0x81, 0x7a, 0x01, 0x7b, 0xd8, 0xf1, 0x00,
1860911f4379Salnsn 0x8d, 0x2e, 0xb7, 0x98, 0x3c, 0x86, 0x20, 0xa3,
1861911f4379Salnsn 0x4c, 0x24, 0x2a, 0x78, 0x3a, 0x8d, 0xeb, 0xcd,
1862911f4379Salnsn 0xae, 0xe1, 0x32, 0xf8, 0x21, 0x37, 0x30, 0x27,
1863911f4379Salnsn 0xe1, 0xf3, 0x14, 0x60, 0x96, 0x77, 0x37, 0x50,
1864911f4379Salnsn 0xa2, 0x92, 0xae, 0xe5, 0xd8, 0xea, 0x1a, 0x7e,
1865911f4379Salnsn 0xa3, 0xd1, 0x04, 0x17, 0x03, 0x51, 0x2f, 0x21,
1866911f4379Salnsn 0xa7, 0x00, 0x23, 0xb3, 0x24, 0xd8, 0x7d, 0xb7,
1867911f4379Salnsn 0x4c, 0x51, 0xb1, 0xaf, 0xb0, 0x64, 0xe4, 0x62,
1868911f4379Salnsn 0x91, 0x4c, 0xd5, 0x4b, 0xe8, 0xfb, 0x95, 0x61,
1869911f4379Salnsn 0xa4, 0x6f, 0xf8, 0xb8, 0xea, 0xa9, 0xb2, 0x10,
1870911f4379Salnsn 0xd3, 0x96, 0xcb, 0x1c, 0xdc, 0x86, 0x43, 0x26,
1871911f4379Salnsn 0x2d, 0x39, 0xc2, 0xa7, 0x69, 0xfa, 0x8f, 0x3a,
1872911f4379Salnsn 0xe7, 0xe0, 0x27, 0xbe, 0xc2, 0xe8, 0xd5, 0x05,
1873911f4379Salnsn 0xbe, 0x5a, 0x96, 0xdc, 0x86, 0xcd, 0x93, 0x75,
1874911f4379Salnsn 0x1b, 0x61, 0x40, 0x8c, 0x60, 0x64, 0x79, 0x85,
1875911f4379Salnsn 0x6c, 0xed, 0x39, 0x72, 0x26, 0x69, 0xba, 0xb2,
1876911f4379Salnsn 0xff, 0xa8, 0x68, 0x29, 0x03, 0xf7, 0x26, 0xe7,
1877911f4379Salnsn 0x0f, 0x53, 0x1b, 0x5b, 0x37, 0x21, 0x68, 0x70,
1878911f4379Salnsn 0x1c, 0x39, 0x7f, 0x5b, 0x31, 0xca, 0xde, 0xed,
1879911f4379Salnsn 0x33, 0x8d, 0xaf, 0xe6, 0x01, 0xd5, 0x72, 0x5f,
1880911f4379Salnsn 0x46, 0x44, 0x34, 0x1b, 0x4c, 0xd7, 0x75, 0xf0,
1881911f4379Salnsn 0x47, 0x16, 0x6c, 0xd6, 0x65, 0x3c, 0xd3, 0xc2,
1882911f4379Salnsn 0xb1, 0x46, 0x7d, 0xd5, 0x5c, 0x48, 0x5b, 0x61,
1883911f4379Salnsn 0x3e, 0x88, 0xff, 0x24, 0x5c, 0x7b, 0xf7, 0xa9,
1884911f4379Salnsn 0x44, 0xcb, 0x3b, 0x3e, 0x3b, 0x93, 0x24, 0x46,
1885911f4379Salnsn 0x7e, 0x34, 0x8d, 0xc4, 0x2b, 0xb7, 0x8e, 0x22,
1886911f4379Salnsn 0x9e, 0x87, 0x62, 0xca, 0xbc, 0x10, 0x09, 0x4a,
1887911f4379Salnsn 0x4b, 0x0b, 0xdb, 0x57, 0x9b, 0xa9, 0x3e, 0xa8,
1888911f4379Salnsn 0x99, 0x59, 0xa0, 0x12, 0xf3, 0xa5, 0xe4, 0x91,
1889911f4379Salnsn 0xbb, 0xb9, 0x05, 0x8d, 0xcf, 0xb9, 0xcb, 0x36,
1890911f4379Salnsn 0x97, 0xb2, 0x6a, 0x31, 0x8f, 0xcb, 0xf8, 0x5a,
1891911f4379Salnsn 0x2f, 0x9e, 0xa1, 0xf9, 0x7a, 0xf4, 0x10, 0x0e,
1892911f4379Salnsn 0xe7, 0x7f, 0x4c, 0xcb, 0xe3, 0x83, 0x17, 0x39,
1893911f4379Salnsn 0x34, 0xef, 0x49, 0x35, 0x68, 0x50, 0x80, 0xf9,
1894911f4379Salnsn 0xcd, 0x3a, 0x10, 0xf6, 0x71, 0x1a, 0x94, 0xc3,
1895911f4379Salnsn 0xec, 0xb9, 0x36, 0x84, 0x36, 0xe7, 0x3f, 0x6f,
1896911f4379Salnsn 0x9b, 0xa9, 0x2b, 0x5c, 0x96, 0x49, 0x26, 0xda,
1897911f4379Salnsn 0xb3, 0x08, 0x3d, 0x5e, 0x9e, 0x59, 0xdf, 0x0f,
1898911f4379Salnsn 0xfc, 0xbe, 0xa8, 0x0b, 0xbc, 0xaa, 0x32, 0xf0,
1899911f4379Salnsn 0xa5, 0x21, 0x50, 0x15, 0x7e, 0x46, 0xb9, 0x76,
1900911f4379Salnsn 0x09, 0x4e, 0x4b, 0x6f, 0x9f, 0xc7, 0x8c, 0x6d,
1901911f4379Salnsn 0x80, 0x37, 0xf9, 0xaa, 0xd1, 0x5f, 0x12, 0xb9,
1902911f4379Salnsn 0xb3, 0x15, 0xe4, 0x96, 0xa1, 0x01, 0xd5, 0xa0,
1903911f4379Salnsn };
1904911f4379Salnsn
1905911f4379Salnsn const struct testvec aes_cbc_256_8_vectors[] = {
1906911f4379Salnsn {
1907911f4379Salnsn .blkno = 0,
1908911f4379Salnsn .ptxt = aes_cbc_ptxt,
1909911f4379Salnsn .ctxt = aes_cbc_256_encblkno8_vec0_ctxt,
1910911f4379Salnsn },
1911911f4379Salnsn {
1912911f4379Salnsn .blkno = 1,
1913911f4379Salnsn .ptxt = aes_cbc_ptxt,
1914911f4379Salnsn .ctxt = aes_cbc_256_encblkno8_vec1_ctxt,
1915911f4379Salnsn },
1916911f4379Salnsn {
1917911f4379Salnsn .blkno = 2,
1918911f4379Salnsn .ptxt = aes_cbc_ptxt,
1919911f4379Salnsn .ctxt = aes_cbc_256_encblkno8_vec2_ctxt,
1920911f4379Salnsn },
1921911f4379Salnsn {
1922911f4379Salnsn .blkno = 3,
1923911f4379Salnsn .ptxt = aes_cbc_ptxt,
1924911f4379Salnsn .ctxt = aes_cbc_256_encblkno8_vec3_ctxt,
1925911f4379Salnsn },
1926911f4379Salnsn };
1927911f4379Salnsn
1928911f4379Salnsn /*
1929838eb243Salnsn * 256 bits key from IEEE 1619/D16, NUL terminated.
1930838eb243Salnsn */
1931838eb243Salnsn static const char aes_xts_256_key[33] = {
1932838eb243Salnsn 0x27, 0x18, 0x28, 0x18, 0x28, 0x45, 0x90, 0x45,
1933838eb243Salnsn 0x23, 0x53, 0x60, 0x28, 0x74, 0x71, 0x35, 0x26,
1934838eb243Salnsn 0x31, 0x41, 0x59, 0x26, 0x53, 0x58, 0x97, 0x93,
1935838eb243Salnsn 0x23, 0x84, 0x62, 0x64, 0x33, 0x83, 0x27, 0x95,
1936838eb243Salnsn 0
1937838eb243Salnsn };
1938838eb243Salnsn
1939838eb243Salnsn /*
1940838eb243Salnsn * 512 bits key from IEEE 1619/D16, NUL terminated.
1941838eb243Salnsn */
1942838eb243Salnsn static const char aes_xts_512_key[65] = {
1943838eb243Salnsn 0x27, 0x18, 0x28, 0x18, 0x28, 0x45, 0x90, 0x45,
1944838eb243Salnsn 0x23, 0x53, 0x60, 0x28, 0x74, 0x71, 0x35, 0x26,
1945838eb243Salnsn 0x62, 0x49, 0x77, 0x57, 0x24, 0x70, 0x93, 0x69,
1946838eb243Salnsn 0x99, 0x59, 0x57, 0x49, 0x66, 0x96, 0x76, 0x27,
1947838eb243Salnsn 0x31, 0x41, 0x59, 0x26, 0x53, 0x58, 0x97, 0x93,
1948838eb243Salnsn 0x23, 0x84, 0x62, 0x64, 0x33, 0x83, 0x27, 0x95,
1949838eb243Salnsn 0x02, 0x88, 0x41, 0x97, 0x16, 0x93, 0x99, 0x37,
1950838eb243Salnsn 0x51, 0x05, 0x82, 0x09, 0x74, 0x94, 0x45, 0x92,
1951838eb243Salnsn 0
1952838eb243Salnsn };
1953838eb243Salnsn
1954838eb243Salnsn /*
1955838eb243Salnsn * Vector 4 from IEEE 1619/D16, blkno 0.
1956838eb243Salnsn */
1957*8f599c8aSmlelstv static const uint8_t aes_xts_256_vec4_ptxt[SECSIZE] __aligned(4) = {
1958838eb243Salnsn 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
1959838eb243Salnsn 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
1960838eb243Salnsn 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
1961838eb243Salnsn 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f,
1962838eb243Salnsn 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27,
1963838eb243Salnsn 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f,
1964838eb243Salnsn 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37,
1965838eb243Salnsn 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
1966838eb243Salnsn 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47,
1967838eb243Salnsn 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f,
1968838eb243Salnsn 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57,
1969838eb243Salnsn 0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f,
1970838eb243Salnsn 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67,
1971838eb243Salnsn 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f,
1972838eb243Salnsn 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77,
1973838eb243Salnsn 0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f,
1974838eb243Salnsn 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
1975838eb243Salnsn 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
1976838eb243Salnsn 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
1977838eb243Salnsn 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f,
1978838eb243Salnsn 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
1979838eb243Salnsn 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
1980838eb243Salnsn 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
1981838eb243Salnsn 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
1982838eb243Salnsn 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
1983838eb243Salnsn 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
1984838eb243Salnsn 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
1985838eb243Salnsn 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
1986838eb243Salnsn 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
1987838eb243Salnsn 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
1988838eb243Salnsn 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
1989838eb243Salnsn 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff,
1990838eb243Salnsn 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
1991838eb243Salnsn 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
1992838eb243Salnsn 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
1993838eb243Salnsn 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f,
1994838eb243Salnsn 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27,
1995838eb243Salnsn 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f,
1996838eb243Salnsn 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37,
1997838eb243Salnsn 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
1998838eb243Salnsn 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47,
1999838eb243Salnsn 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f,
2000838eb243Salnsn 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57,
2001838eb243Salnsn 0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f,
2002838eb243Salnsn 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67,
2003838eb243Salnsn 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f,
2004838eb243Salnsn 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77,
2005838eb243Salnsn 0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f,
2006838eb243Salnsn 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
2007838eb243Salnsn 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
2008838eb243Salnsn 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
2009838eb243Salnsn 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f,
2010838eb243Salnsn 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
2011838eb243Salnsn 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
2012838eb243Salnsn 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
2013838eb243Salnsn 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
2014838eb243Salnsn 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
2015838eb243Salnsn 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
2016838eb243Salnsn 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
2017838eb243Salnsn 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
2018838eb243Salnsn 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
2019838eb243Salnsn 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
2020838eb243Salnsn 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
2021838eb243Salnsn 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff,
2022838eb243Salnsn };
2023838eb243Salnsn
2024838eb243Salnsn static const uint8_t aes_xts_256_vec4_ctxt[SECSIZE] = {
2025838eb243Salnsn 0x27, 0xa7, 0x47, 0x9b, 0xef, 0xa1, 0xd4, 0x76,
2026838eb243Salnsn 0x48, 0x9f, 0x30, 0x8c, 0xd4, 0xcf, 0xa6, 0xe2,
2027838eb243Salnsn 0xa9, 0x6e, 0x4b, 0xbe, 0x32, 0x08, 0xff, 0x25,
2028838eb243Salnsn 0x28, 0x7d, 0xd3, 0x81, 0x96, 0x16, 0xe8, 0x9c,
2029838eb243Salnsn 0xc7, 0x8c, 0xf7, 0xf5, 0xe5, 0x43, 0x44, 0x5f,
2030838eb243Salnsn 0x83, 0x33, 0xd8, 0xfa, 0x7f, 0x56, 0x00, 0x00,
2031838eb243Salnsn 0x05, 0x27, 0x9f, 0xa5, 0xd8, 0xb5, 0xe4, 0xad,
2032838eb243Salnsn 0x40, 0xe7, 0x36, 0xdd, 0xb4, 0xd3, 0x54, 0x12,
2033838eb243Salnsn 0x32, 0x80, 0x63, 0xfd, 0x2a, 0xab, 0x53, 0xe5,
2034838eb243Salnsn 0xea, 0x1e, 0x0a, 0x9f, 0x33, 0x25, 0x00, 0xa5,
2035838eb243Salnsn 0xdf, 0x94, 0x87, 0xd0, 0x7a, 0x5c, 0x92, 0xcc,
2036838eb243Salnsn 0x51, 0x2c, 0x88, 0x66, 0xc7, 0xe8, 0x60, 0xce,
2037838eb243Salnsn 0x93, 0xfd, 0xf1, 0x66, 0xa2, 0x49, 0x12, 0xb4,
2038838eb243Salnsn 0x22, 0x97, 0x61, 0x46, 0xae, 0x20, 0xce, 0x84,
2039838eb243Salnsn 0x6b, 0xb7, 0xdc, 0x9b, 0xa9, 0x4a, 0x76, 0x7a,
2040838eb243Salnsn 0xae, 0xf2, 0x0c, 0x0d, 0x61, 0xad, 0x02, 0x65,
2041838eb243Salnsn 0x5e, 0xa9, 0x2d, 0xc4, 0xc4, 0xe4, 0x1a, 0x89,
2042838eb243Salnsn 0x52, 0xc6, 0x51, 0xd3, 0x31, 0x74, 0xbe, 0x51,
2043838eb243Salnsn 0xa1, 0x0c, 0x42, 0x11, 0x10, 0xe6, 0xd8, 0x15,
2044838eb243Salnsn 0x88, 0xed, 0xe8, 0x21, 0x03, 0xa2, 0x52, 0xd8,
2045838eb243Salnsn 0xa7, 0x50, 0xe8, 0x76, 0x8d, 0xef, 0xff, 0xed,
2046838eb243Salnsn 0x91, 0x22, 0x81, 0x0a, 0xae, 0xb9, 0x9f, 0x91,
2047838eb243Salnsn 0x72, 0xaf, 0x82, 0xb6, 0x04, 0xdc, 0x4b, 0x8e,
2048838eb243Salnsn 0x51, 0xbc, 0xb0, 0x82, 0x35, 0xa6, 0xf4, 0x34,
2049838eb243Salnsn 0x13, 0x32, 0xe4, 0xca, 0x60, 0x48, 0x2a, 0x4b,
2050838eb243Salnsn 0xa1, 0xa0, 0x3b, 0x3e, 0x65, 0x00, 0x8f, 0xc5,
2051838eb243Salnsn 0xda, 0x76, 0xb7, 0x0b, 0xf1, 0x69, 0x0d, 0xb4,
2052838eb243Salnsn 0xea, 0xe2, 0x9c, 0x5f, 0x1b, 0xad, 0xd0, 0x3c,
2053838eb243Salnsn 0x5c, 0xcf, 0x2a, 0x55, 0xd7, 0x05, 0xdd, 0xcd,
2054838eb243Salnsn 0x86, 0xd4, 0x49, 0x51, 0x1c, 0xeb, 0x7e, 0xc3,
2055838eb243Salnsn 0x0b, 0xf1, 0x2b, 0x1f, 0xa3, 0x5b, 0x91, 0x3f,
2056838eb243Salnsn 0x9f, 0x74, 0x7a, 0x8a, 0xfd, 0x1b, 0x13, 0x0e,
2057838eb243Salnsn 0x94, 0xbf, 0xf9, 0x4e, 0xff, 0xd0, 0x1a, 0x91,
2058838eb243Salnsn 0x73, 0x5c, 0xa1, 0x72, 0x6a, 0xcd, 0x0b, 0x19,
2059838eb243Salnsn 0x7c, 0x4e, 0x5b, 0x03, 0x39, 0x36, 0x97, 0xe1,
2060838eb243Salnsn 0x26, 0x82, 0x6f, 0xb6, 0xbb, 0xde, 0x8e, 0xcc,
2061838eb243Salnsn 0x1e, 0x08, 0x29, 0x85, 0x16, 0xe2, 0xc9, 0xed,
2062838eb243Salnsn 0x03, 0xff, 0x3c, 0x1b, 0x78, 0x60, 0xf6, 0xde,
2063838eb243Salnsn 0x76, 0xd4, 0xce, 0xcd, 0x94, 0xc8, 0x11, 0x98,
2064838eb243Salnsn 0x55, 0xef, 0x52, 0x97, 0xca, 0x67, 0xe9, 0xf3,
2065838eb243Salnsn 0xe7, 0xff, 0x72, 0xb1, 0xe9, 0x97, 0x85, 0xca,
2066838eb243Salnsn 0x0a, 0x7e, 0x77, 0x20, 0xc5, 0xb3, 0x6d, 0xc6,
2067838eb243Salnsn 0xd7, 0x2c, 0xac, 0x95, 0x74, 0xc8, 0xcb, 0xbc,
2068838eb243Salnsn 0x2f, 0x80, 0x1e, 0x23, 0xe5, 0x6f, 0xd3, 0x44,
2069838eb243Salnsn 0xb0, 0x7f, 0x22, 0x15, 0x4b, 0xeb, 0xa0, 0xf0,
2070838eb243Salnsn 0x8c, 0xe8, 0x89, 0x1e, 0x64, 0x3e, 0xd9, 0x95,
2071838eb243Salnsn 0xc9, 0x4d, 0x9a, 0x69, 0xc9, 0xf1, 0xb5, 0xf4,
2072838eb243Salnsn 0x99, 0x02, 0x7a, 0x78, 0x57, 0x2a, 0xee, 0xbd,
2073838eb243Salnsn 0x74, 0xd2, 0x0c, 0xc3, 0x98, 0x81, 0xc2, 0x13,
2074838eb243Salnsn 0xee, 0x77, 0x0b, 0x10, 0x10, 0xe4, 0xbe, 0xa7,
2075838eb243Salnsn 0x18, 0x84, 0x69, 0x77, 0xae, 0x11, 0x9f, 0x7a,
2076838eb243Salnsn 0x02, 0x3a, 0xb5, 0x8c, 0xca, 0x0a, 0xd7, 0x52,
2077838eb243Salnsn 0xaf, 0xe6, 0x56, 0xbb, 0x3c, 0x17, 0x25, 0x6a,
2078838eb243Salnsn 0x9f, 0x6e, 0x9b, 0xf1, 0x9f, 0xdd, 0x5a, 0x38,
2079838eb243Salnsn 0xfc, 0x82, 0xbb, 0xe8, 0x72, 0xc5, 0x53, 0x9e,
2080838eb243Salnsn 0xdb, 0x60, 0x9e, 0xf4, 0xf7, 0x9c, 0x20, 0x3e,
2081838eb243Salnsn 0xbb, 0x14, 0x0f, 0x2e, 0x58, 0x3c, 0xb2, 0xad,
2082838eb243Salnsn 0x15, 0xb4, 0xaa, 0x5b, 0x65, 0x50, 0x16, 0xa8,
2083838eb243Salnsn 0x44, 0x92, 0x77, 0xdb, 0xd4, 0x77, 0xef, 0x2c,
2084838eb243Salnsn 0x8d, 0x6c, 0x01, 0x7d, 0xb7, 0x38, 0xb1, 0x8d,
2085838eb243Salnsn 0xeb, 0x4a, 0x42, 0x7d, 0x19, 0x23, 0xce, 0x3f,
2086838eb243Salnsn 0xf2, 0x62, 0x73, 0x57, 0x79, 0xa4, 0x18, 0xf2,
2087838eb243Salnsn 0x0a, 0x28, 0x2d, 0xf9, 0x20, 0x14, 0x7b, 0xea,
2088838eb243Salnsn 0xbe, 0x42, 0x1e, 0xe5, 0x31, 0x9d, 0x05, 0x68,
2089838eb243Salnsn };
2090838eb243Salnsn
2091838eb243Salnsn /*
2092838eb243Salnsn * Vector 5 from IEEE 1619/D16, blkno 1.
2093838eb243Salnsn */
2094*8f599c8aSmlelstv static const uint8_t aes_xts_256_vec5_ptxt[SECSIZE] __aligned(4) = {
2095838eb243Salnsn 0x27, 0xa7, 0x47, 0x9b, 0xef, 0xa1, 0xd4, 0x76,
2096838eb243Salnsn 0x48, 0x9f, 0x30, 0x8c, 0xd4, 0xcf, 0xa6, 0xe2,
2097838eb243Salnsn 0xa9, 0x6e, 0x4b, 0xbe, 0x32, 0x08, 0xff, 0x25,
2098838eb243Salnsn 0x28, 0x7d, 0xd3, 0x81, 0x96, 0x16, 0xe8, 0x9c,
2099838eb243Salnsn 0xc7, 0x8c, 0xf7, 0xf5, 0xe5, 0x43, 0x44, 0x5f,
2100838eb243Salnsn 0x83, 0x33, 0xd8, 0xfa, 0x7f, 0x56, 0x00, 0x00,
2101838eb243Salnsn 0x05, 0x27, 0x9f, 0xa5, 0xd8, 0xb5, 0xe4, 0xad,
2102838eb243Salnsn 0x40, 0xe7, 0x36, 0xdd, 0xb4, 0xd3, 0x54, 0x12,
2103838eb243Salnsn 0x32, 0x80, 0x63, 0xfd, 0x2a, 0xab, 0x53, 0xe5,
2104838eb243Salnsn 0xea, 0x1e, 0x0a, 0x9f, 0x33, 0x25, 0x00, 0xa5,
2105838eb243Salnsn 0xdf, 0x94, 0x87, 0xd0, 0x7a, 0x5c, 0x92, 0xcc,
2106838eb243Salnsn 0x51, 0x2c, 0x88, 0x66, 0xc7, 0xe8, 0x60, 0xce,
2107838eb243Salnsn 0x93, 0xfd, 0xf1, 0x66, 0xa2, 0x49, 0x12, 0xb4,
2108838eb243Salnsn 0x22, 0x97, 0x61, 0x46, 0xae, 0x20, 0xce, 0x84,
2109838eb243Salnsn 0x6b, 0xb7, 0xdc, 0x9b, 0xa9, 0x4a, 0x76, 0x7a,
2110838eb243Salnsn 0xae, 0xf2, 0x0c, 0x0d, 0x61, 0xad, 0x02, 0x65,
2111838eb243Salnsn 0x5e, 0xa9, 0x2d, 0xc4, 0xc4, 0xe4, 0x1a, 0x89,
2112838eb243Salnsn 0x52, 0xc6, 0x51, 0xd3, 0x31, 0x74, 0xbe, 0x51,
2113838eb243Salnsn 0xa1, 0x0c, 0x42, 0x11, 0x10, 0xe6, 0xd8, 0x15,
2114838eb243Salnsn 0x88, 0xed, 0xe8, 0x21, 0x03, 0xa2, 0x52, 0xd8,
2115838eb243Salnsn 0xa7, 0x50, 0xe8, 0x76, 0x8d, 0xef, 0xff, 0xed,
2116838eb243Salnsn 0x91, 0x22, 0x81, 0x0a, 0xae, 0xb9, 0x9f, 0x91,
2117838eb243Salnsn 0x72, 0xaf, 0x82, 0xb6, 0x04, 0xdc, 0x4b, 0x8e,
2118838eb243Salnsn 0x51, 0xbc, 0xb0, 0x82, 0x35, 0xa6, 0xf4, 0x34,
2119838eb243Salnsn 0x13, 0x32, 0xe4, 0xca, 0x60, 0x48, 0x2a, 0x4b,
2120838eb243Salnsn 0xa1, 0xa0, 0x3b, 0x3e, 0x65, 0x00, 0x8f, 0xc5,
2121838eb243Salnsn 0xda, 0x76, 0xb7, 0x0b, 0xf1, 0x69, 0x0d, 0xb4,
2122838eb243Salnsn 0xea, 0xe2, 0x9c, 0x5f, 0x1b, 0xad, 0xd0, 0x3c,
2123838eb243Salnsn 0x5c, 0xcf, 0x2a, 0x55, 0xd7, 0x05, 0xdd, 0xcd,
2124838eb243Salnsn 0x86, 0xd4, 0x49, 0x51, 0x1c, 0xeb, 0x7e, 0xc3,
2125838eb243Salnsn 0x0b, 0xf1, 0x2b, 0x1f, 0xa3, 0x5b, 0x91, 0x3f,
2126838eb243Salnsn 0x9f, 0x74, 0x7a, 0x8a, 0xfd, 0x1b, 0x13, 0x0e,
2127838eb243Salnsn 0x94, 0xbf, 0xf9, 0x4e, 0xff, 0xd0, 0x1a, 0x91,
2128838eb243Salnsn 0x73, 0x5c, 0xa1, 0x72, 0x6a, 0xcd, 0x0b, 0x19,
2129838eb243Salnsn 0x7c, 0x4e, 0x5b, 0x03, 0x39, 0x36, 0x97, 0xe1,
2130838eb243Salnsn 0x26, 0x82, 0x6f, 0xb6, 0xbb, 0xde, 0x8e, 0xcc,
2131838eb243Salnsn 0x1e, 0x08, 0x29, 0x85, 0x16, 0xe2, 0xc9, 0xed,
2132838eb243Salnsn 0x03, 0xff, 0x3c, 0x1b, 0x78, 0x60, 0xf6, 0xde,
2133838eb243Salnsn 0x76, 0xd4, 0xce, 0xcd, 0x94, 0xc8, 0x11, 0x98,
2134838eb243Salnsn 0x55, 0xef, 0x52, 0x97, 0xca, 0x67, 0xe9, 0xf3,
2135838eb243Salnsn 0xe7, 0xff, 0x72, 0xb1, 0xe9, 0x97, 0x85, 0xca,
2136838eb243Salnsn 0x0a, 0x7e, 0x77, 0x20, 0xc5, 0xb3, 0x6d, 0xc6,
2137838eb243Salnsn 0xd7, 0x2c, 0xac, 0x95, 0x74, 0xc8, 0xcb, 0xbc,
2138838eb243Salnsn 0x2f, 0x80, 0x1e, 0x23, 0xe5, 0x6f, 0xd3, 0x44,
2139838eb243Salnsn 0xb0, 0x7f, 0x22, 0x15, 0x4b, 0xeb, 0xa0, 0xf0,
2140838eb243Salnsn 0x8c, 0xe8, 0x89, 0x1e, 0x64, 0x3e, 0xd9, 0x95,
2141838eb243Salnsn 0xc9, 0x4d, 0x9a, 0x69, 0xc9, 0xf1, 0xb5, 0xf4,
2142838eb243Salnsn 0x99, 0x02, 0x7a, 0x78, 0x57, 0x2a, 0xee, 0xbd,
2143838eb243Salnsn 0x74, 0xd2, 0x0c, 0xc3, 0x98, 0x81, 0xc2, 0x13,
2144838eb243Salnsn 0xee, 0x77, 0x0b, 0x10, 0x10, 0xe4, 0xbe, 0xa7,
2145838eb243Salnsn 0x18, 0x84, 0x69, 0x77, 0xae, 0x11, 0x9f, 0x7a,
2146838eb243Salnsn 0x02, 0x3a, 0xb5, 0x8c, 0xca, 0x0a, 0xd7, 0x52,
2147838eb243Salnsn 0xaf, 0xe6, 0x56, 0xbb, 0x3c, 0x17, 0x25, 0x6a,
2148838eb243Salnsn 0x9f, 0x6e, 0x9b, 0xf1, 0x9f, 0xdd, 0x5a, 0x38,
2149838eb243Salnsn 0xfc, 0x82, 0xbb, 0xe8, 0x72, 0xc5, 0x53, 0x9e,
2150838eb243Salnsn 0xdb, 0x60, 0x9e, 0xf4, 0xf7, 0x9c, 0x20, 0x3e,
2151838eb243Salnsn 0xbb, 0x14, 0x0f, 0x2e, 0x58, 0x3c, 0xb2, 0xad,
2152838eb243Salnsn 0x15, 0xb4, 0xaa, 0x5b, 0x65, 0x50, 0x16, 0xa8,
2153838eb243Salnsn 0x44, 0x92, 0x77, 0xdb, 0xd4, 0x77, 0xef, 0x2c,
2154838eb243Salnsn 0x8d, 0x6c, 0x01, 0x7d, 0xb7, 0x38, 0xb1, 0x8d,
2155838eb243Salnsn 0xeb, 0x4a, 0x42, 0x7d, 0x19, 0x23, 0xce, 0x3f,
2156838eb243Salnsn 0xf2, 0x62, 0x73, 0x57, 0x79, 0xa4, 0x18, 0xf2,
2157838eb243Salnsn 0x0a, 0x28, 0x2d, 0xf9, 0x20, 0x14, 0x7b, 0xea,
2158838eb243Salnsn 0xbe, 0x42, 0x1e, 0xe5, 0x31, 0x9d, 0x05, 0x68,
2159838eb243Salnsn };
2160838eb243Salnsn
2161838eb243Salnsn static const uint8_t aes_xts_256_vec5_ctxt[SECSIZE] = {
2162838eb243Salnsn 0x26, 0x4d, 0x3c, 0xa8, 0x51, 0x21, 0x94, 0xfe,
2163838eb243Salnsn 0xc3, 0x12, 0xc8, 0xc9, 0x89, 0x1f, 0x27, 0x9f,
2164838eb243Salnsn 0xef, 0xdd, 0x60, 0x8d, 0x0c, 0x02, 0x7b, 0x60,
2165838eb243Salnsn 0x48, 0x3a, 0x3f, 0xa8, 0x11, 0xd6, 0x5e, 0xe5,
2166838eb243Salnsn 0x9d, 0x52, 0xd9, 0xe4, 0x0e, 0xc5, 0x67, 0x2d,
2167838eb243Salnsn 0x81, 0x53, 0x2b, 0x38, 0xb6, 0xb0, 0x89, 0xce,
2168838eb243Salnsn 0x95, 0x1f, 0x0f, 0x9c, 0x35, 0x59, 0x0b, 0x8b,
2169838eb243Salnsn 0x97, 0x8d, 0x17, 0x52, 0x13, 0xf3, 0x29, 0xbb,
2170838eb243Salnsn 0x1c, 0x2f, 0xd3, 0x0f, 0x2f, 0x7f, 0x30, 0x49,
2171838eb243Salnsn 0x2a, 0x61, 0xa5, 0x32, 0xa7, 0x9f, 0x51, 0xd3,
2172838eb243Salnsn 0x6f, 0x5e, 0x31, 0xa7, 0xc9, 0xa1, 0x2c, 0x28,
2173838eb243Salnsn 0x60, 0x82, 0xff, 0x7d, 0x23, 0x94, 0xd1, 0x8f,
2174838eb243Salnsn 0x78, 0x3e, 0x1a, 0x8e, 0x72, 0xc7, 0x22, 0xca,
2175838eb243Salnsn 0xaa, 0xa5, 0x2d, 0x8f, 0x06, 0x56, 0x57, 0xd2,
2176838eb243Salnsn 0x63, 0x1f, 0xd2, 0x5b, 0xfd, 0x8e, 0x5b, 0xaa,
2177838eb243Salnsn 0xd6, 0xe5, 0x27, 0xd7, 0x63, 0x51, 0x75, 0x01,
2178838eb243Salnsn 0xc6, 0x8c, 0x5e, 0xdc, 0x3c, 0xdd, 0x55, 0x43,
2179838eb243Salnsn 0x5c, 0x53, 0x2d, 0x71, 0x25, 0xc8, 0x61, 0x4d,
2180838eb243Salnsn 0xee, 0xd9, 0xad, 0xaa, 0x3a, 0xca, 0xde, 0x58,
2181838eb243Salnsn 0x88, 0xb8, 0x7b, 0xef, 0x64, 0x1c, 0x4c, 0x99,
2182838eb243Salnsn 0x4c, 0x80, 0x91, 0xb5, 0xbc, 0xd3, 0x87, 0xf3,
2183838eb243Salnsn 0x96, 0x3f, 0xb5, 0xbc, 0x37, 0xaa, 0x92, 0x2f,
2184838eb243Salnsn 0xbf, 0xe3, 0xdf, 0x4e, 0x5b, 0x91, 0x5e, 0x6e,
2185838eb243Salnsn 0xb5, 0x14, 0x71, 0x7b, 0xdd, 0x2a, 0x74, 0x07,
2186838eb243Salnsn 0x9a, 0x50, 0x73, 0xf5, 0xc4, 0xbf, 0xd4, 0x6a,
2187838eb243Salnsn 0xdf, 0x7d, 0x28, 0x2e, 0x7a, 0x39, 0x3a, 0x52,
2188838eb243Salnsn 0x57, 0x9d, 0x11, 0xa0, 0x28, 0xda, 0x4d, 0x9c,
2189838eb243Salnsn 0xd9, 0xc7, 0x71, 0x24, 0xf9, 0x64, 0x8e, 0xe3,
2190838eb243Salnsn 0x83, 0xb1, 0xac, 0x76, 0x39, 0x30, 0xe7, 0x16,
2191838eb243Salnsn 0x2a, 0x8d, 0x37, 0xf3, 0x50, 0xb2, 0xf7, 0x4b,
2192838eb243Salnsn 0x84, 0x72, 0xcf, 0x09, 0x90, 0x20, 0x63, 0xc6,
2193838eb243Salnsn 0xb3, 0x2e, 0x8c, 0x2d, 0x92, 0x90, 0xce, 0xfb,
2194838eb243Salnsn 0xd7, 0x34, 0x6d, 0x1c, 0x77, 0x9a, 0x0d, 0xf5,
2195838eb243Salnsn 0x0e, 0xdc, 0xde, 0x45, 0x31, 0xda, 0x07, 0xb0,
2196838eb243Salnsn 0x99, 0xc6, 0x38, 0xe8, 0x3a, 0x75, 0x59, 0x44,
2197838eb243Salnsn 0xdf, 0x2a, 0xef, 0x1a, 0xa3, 0x17, 0x52, 0xfd,
2198838eb243Salnsn 0x32, 0x3d, 0xcb, 0x71, 0x0f, 0xb4, 0xbf, 0xbb,
2199838eb243Salnsn 0x9d, 0x22, 0xb9, 0x25, 0xbc, 0x35, 0x77, 0xe1,
2200838eb243Salnsn 0xb8, 0x94, 0x9e, 0x72, 0x9a, 0x90, 0xbb, 0xaf,
2201838eb243Salnsn 0xea, 0xcf, 0x7f, 0x78, 0x79, 0xe7, 0xb1, 0x14,
2202838eb243Salnsn 0x7e, 0x28, 0xba, 0x0b, 0xae, 0x94, 0x0d, 0xb7,
2203838eb243Salnsn 0x95, 0xa6, 0x1b, 0x15, 0xec, 0xf4, 0xdf, 0x8d,
2204838eb243Salnsn 0xb0, 0x7b, 0x82, 0x4b, 0xb0, 0x62, 0x80, 0x2c,
2205838eb243Salnsn 0xc9, 0x8a, 0x95, 0x45, 0xbb, 0x2a, 0xae, 0xed,
2206838eb243Salnsn 0x77, 0xcb, 0x3f, 0xc6, 0xdb, 0x15, 0xdc, 0xd7,
2207838eb243Salnsn 0xd8, 0x0d, 0x7d, 0x5b, 0xc4, 0x06, 0xc4, 0x97,
2208838eb243Salnsn 0x0a, 0x34, 0x78, 0xad, 0xa8, 0x89, 0x9b, 0x32,
2209838eb243Salnsn 0x91, 0x98, 0xeb, 0x61, 0xc1, 0x93, 0xfb, 0x62,
2210838eb243Salnsn 0x75, 0xaa, 0x8c, 0xa3, 0x40, 0x34, 0x4a, 0x75,
2211838eb243Salnsn 0xa8, 0x62, 0xae, 0xbe, 0x92, 0xee, 0xe1, 0xce,
2212838eb243Salnsn 0x03, 0x2f, 0xd9, 0x50, 0xb4, 0x7d, 0x77, 0x04,
2213838eb243Salnsn 0xa3, 0x87, 0x69, 0x23, 0xb4, 0xad, 0x62, 0x84,
2214838eb243Salnsn 0x4b, 0xf4, 0xa0, 0x9c, 0x4d, 0xbe, 0x8b, 0x43,
2215838eb243Salnsn 0x97, 0x18, 0x4b, 0x74, 0x71, 0x36, 0x0c, 0x95,
2216838eb243Salnsn 0x64, 0x88, 0x0a, 0xed, 0xdd, 0xb9, 0xba, 0xa4,
2217838eb243Salnsn 0xaf, 0x2e, 0x75, 0x39, 0x4b, 0x08, 0xcd, 0x32,
2218838eb243Salnsn 0xff, 0x47, 0x9c, 0x57, 0xa0, 0x7d, 0x3e, 0xab,
2219838eb243Salnsn 0x5d, 0x54, 0xde, 0x5f, 0x97, 0x38, 0xb8, 0xd2,
2220838eb243Salnsn 0x7f, 0x27, 0xa9, 0xf0, 0xab, 0x11, 0x79, 0x9d,
2221838eb243Salnsn 0x7b, 0x7f, 0xfe, 0xfb, 0x27, 0x04, 0xc9, 0x5c,
2222838eb243Salnsn 0x6a, 0xd1, 0x2c, 0x39, 0xf1, 0xe8, 0x67, 0xa4,
2223838eb243Salnsn 0xb7, 0xb1, 0xd7, 0x81, 0x8a, 0x4b, 0x75, 0x3d,
2224838eb243Salnsn 0xfd, 0x2a, 0x89, 0xcc, 0xb4, 0x5e, 0x00, 0x1a,
2225838eb243Salnsn 0x03, 0xa8, 0x67, 0xb1, 0x87, 0xf2, 0x25, 0xdd,
2226838eb243Salnsn };
2227838eb243Salnsn
2228838eb243Salnsn /*
2229838eb243Salnsn * Vector 6 from IEEE 1619/D16, blkno 2.
2230838eb243Salnsn */
2231*8f599c8aSmlelstv static const uint8_t aes_xts_256_vec6_ptxt[SECSIZE] __aligned(4) = {
2232838eb243Salnsn 0x26, 0x4d, 0x3c, 0xa8, 0x51, 0x21, 0x94, 0xfe,
2233838eb243Salnsn 0xc3, 0x12, 0xc8, 0xc9, 0x89, 0x1f, 0x27, 0x9f,
2234838eb243Salnsn 0xef, 0xdd, 0x60, 0x8d, 0x0c, 0x02, 0x7b, 0x60,
2235838eb243Salnsn 0x48, 0x3a, 0x3f, 0xa8, 0x11, 0xd6, 0x5e, 0xe5,
2236838eb243Salnsn 0x9d, 0x52, 0xd9, 0xe4, 0x0e, 0xc5, 0x67, 0x2d,
2237838eb243Salnsn 0x81, 0x53, 0x2b, 0x38, 0xb6, 0xb0, 0x89, 0xce,
2238838eb243Salnsn 0x95, 0x1f, 0x0f, 0x9c, 0x35, 0x59, 0x0b, 0x8b,
2239838eb243Salnsn 0x97, 0x8d, 0x17, 0x52, 0x13, 0xf3, 0x29, 0xbb,
2240838eb243Salnsn 0x1c, 0x2f, 0xd3, 0x0f, 0x2f, 0x7f, 0x30, 0x49,
2241838eb243Salnsn 0x2a, 0x61, 0xa5, 0x32, 0xa7, 0x9f, 0x51, 0xd3,
2242838eb243Salnsn 0x6f, 0x5e, 0x31, 0xa7, 0xc9, 0xa1, 0x2c, 0x28,
2243838eb243Salnsn 0x60, 0x82, 0xff, 0x7d, 0x23, 0x94, 0xd1, 0x8f,
2244838eb243Salnsn 0x78, 0x3e, 0x1a, 0x8e, 0x72, 0xc7, 0x22, 0xca,
2245838eb243Salnsn 0xaa, 0xa5, 0x2d, 0x8f, 0x06, 0x56, 0x57, 0xd2,
2246838eb243Salnsn 0x63, 0x1f, 0xd2, 0x5b, 0xfd, 0x8e, 0x5b, 0xaa,
2247838eb243Salnsn 0xd6, 0xe5, 0x27, 0xd7, 0x63, 0x51, 0x75, 0x01,
2248838eb243Salnsn 0xc6, 0x8c, 0x5e, 0xdc, 0x3c, 0xdd, 0x55, 0x43,
2249838eb243Salnsn 0x5c, 0x53, 0x2d, 0x71, 0x25, 0xc8, 0x61, 0x4d,
2250838eb243Salnsn 0xee, 0xd9, 0xad, 0xaa, 0x3a, 0xca, 0xde, 0x58,
2251838eb243Salnsn 0x88, 0xb8, 0x7b, 0xef, 0x64, 0x1c, 0x4c, 0x99,
2252838eb243Salnsn 0x4c, 0x80, 0x91, 0xb5, 0xbc, 0xd3, 0x87, 0xf3,
2253838eb243Salnsn 0x96, 0x3f, 0xb5, 0xbc, 0x37, 0xaa, 0x92, 0x2f,
2254838eb243Salnsn 0xbf, 0xe3, 0xdf, 0x4e, 0x5b, 0x91, 0x5e, 0x6e,
2255838eb243Salnsn 0xb5, 0x14, 0x71, 0x7b, 0xdd, 0x2a, 0x74, 0x07,
2256838eb243Salnsn 0x9a, 0x50, 0x73, 0xf5, 0xc4, 0xbf, 0xd4, 0x6a,
2257838eb243Salnsn 0xdf, 0x7d, 0x28, 0x2e, 0x7a, 0x39, 0x3a, 0x52,
2258838eb243Salnsn 0x57, 0x9d, 0x11, 0xa0, 0x28, 0xda, 0x4d, 0x9c,
2259838eb243Salnsn 0xd9, 0xc7, 0x71, 0x24, 0xf9, 0x64, 0x8e, 0xe3,
2260838eb243Salnsn 0x83, 0xb1, 0xac, 0x76, 0x39, 0x30, 0xe7, 0x16,
2261838eb243Salnsn 0x2a, 0x8d, 0x37, 0xf3, 0x50, 0xb2, 0xf7, 0x4b,
2262838eb243Salnsn 0x84, 0x72, 0xcf, 0x09, 0x90, 0x20, 0x63, 0xc6,
2263838eb243Salnsn 0xb3, 0x2e, 0x8c, 0x2d, 0x92, 0x90, 0xce, 0xfb,
2264838eb243Salnsn 0xd7, 0x34, 0x6d, 0x1c, 0x77, 0x9a, 0x0d, 0xf5,
2265838eb243Salnsn 0x0e, 0xdc, 0xde, 0x45, 0x31, 0xda, 0x07, 0xb0,
2266838eb243Salnsn 0x99, 0xc6, 0x38, 0xe8, 0x3a, 0x75, 0x59, 0x44,
2267838eb243Salnsn 0xdf, 0x2a, 0xef, 0x1a, 0xa3, 0x17, 0x52, 0xfd,
2268838eb243Salnsn 0x32, 0x3d, 0xcb, 0x71, 0x0f, 0xb4, 0xbf, 0xbb,
2269838eb243Salnsn 0x9d, 0x22, 0xb9, 0x25, 0xbc, 0x35, 0x77, 0xe1,
2270838eb243Salnsn 0xb8, 0x94, 0x9e, 0x72, 0x9a, 0x90, 0xbb, 0xaf,
2271838eb243Salnsn 0xea, 0xcf, 0x7f, 0x78, 0x79, 0xe7, 0xb1, 0x14,
2272838eb243Salnsn 0x7e, 0x28, 0xba, 0x0b, 0xae, 0x94, 0x0d, 0xb7,
2273838eb243Salnsn 0x95, 0xa6, 0x1b, 0x15, 0xec, 0xf4, 0xdf, 0x8d,
2274838eb243Salnsn 0xb0, 0x7b, 0x82, 0x4b, 0xb0, 0x62, 0x80, 0x2c,
2275838eb243Salnsn 0xc9, 0x8a, 0x95, 0x45, 0xbb, 0x2a, 0xae, 0xed,
2276838eb243Salnsn 0x77, 0xcb, 0x3f, 0xc6, 0xdb, 0x15, 0xdc, 0xd7,
2277838eb243Salnsn 0xd8, 0x0d, 0x7d, 0x5b, 0xc4, 0x06, 0xc4, 0x97,
2278838eb243Salnsn 0x0a, 0x34, 0x78, 0xad, 0xa8, 0x89, 0x9b, 0x32,
2279838eb243Salnsn 0x91, 0x98, 0xeb, 0x61, 0xc1, 0x93, 0xfb, 0x62,
2280838eb243Salnsn 0x75, 0xaa, 0x8c, 0xa3, 0x40, 0x34, 0x4a, 0x75,
2281838eb243Salnsn 0xa8, 0x62, 0xae, 0xbe, 0x92, 0xee, 0xe1, 0xce,
2282838eb243Salnsn 0x03, 0x2f, 0xd9, 0x50, 0xb4, 0x7d, 0x77, 0x04,
2283838eb243Salnsn 0xa3, 0x87, 0x69, 0x23, 0xb4, 0xad, 0x62, 0x84,
2284838eb243Salnsn 0x4b, 0xf4, 0xa0, 0x9c, 0x4d, 0xbe, 0x8b, 0x43,
2285838eb243Salnsn 0x97, 0x18, 0x4b, 0x74, 0x71, 0x36, 0x0c, 0x95,
2286838eb243Salnsn 0x64, 0x88, 0x0a, 0xed, 0xdd, 0xb9, 0xba, 0xa4,
2287838eb243Salnsn 0xaf, 0x2e, 0x75, 0x39, 0x4b, 0x08, 0xcd, 0x32,
2288838eb243Salnsn 0xff, 0x47, 0x9c, 0x57, 0xa0, 0x7d, 0x3e, 0xab,
2289838eb243Salnsn 0x5d, 0x54, 0xde, 0x5f, 0x97, 0x38, 0xb8, 0xd2,
2290838eb243Salnsn 0x7f, 0x27, 0xa9, 0xf0, 0xab, 0x11, 0x79, 0x9d,
2291838eb243Salnsn 0x7b, 0x7f, 0xfe, 0xfb, 0x27, 0x04, 0xc9, 0x5c,
2292838eb243Salnsn 0x6a, 0xd1, 0x2c, 0x39, 0xf1, 0xe8, 0x67, 0xa4,
2293838eb243Salnsn 0xb7, 0xb1, 0xd7, 0x81, 0x8a, 0x4b, 0x75, 0x3d,
2294838eb243Salnsn 0xfd, 0x2a, 0x89, 0xcc, 0xb4, 0x5e, 0x00, 0x1a,
2295838eb243Salnsn 0x03, 0xa8, 0x67, 0xb1, 0x87, 0xf2, 0x25, 0xdd,
2296838eb243Salnsn };
2297838eb243Salnsn
2298838eb243Salnsn static const uint8_t aes_xts_256_vec6_ctxt[SECSIZE] = {
2299838eb243Salnsn 0xfa, 0x76, 0x2a, 0x36, 0x80, 0xb7, 0x60, 0x07,
2300838eb243Salnsn 0x92, 0x8e, 0xd4, 0xa4, 0xf4, 0x9a, 0x94, 0x56,
2301838eb243Salnsn 0x03, 0x1b, 0x70, 0x47, 0x82, 0xe6, 0x5e, 0x16,
2302838eb243Salnsn 0xce, 0xcb, 0x54, 0xed, 0x7d, 0x01, 0x7b, 0x5e,
2303838eb243Salnsn 0x18, 0xab, 0xd6, 0x7b, 0x33, 0x8e, 0x81, 0x07,
2304838eb243Salnsn 0x8f, 0x21, 0xed, 0xb7, 0x86, 0x8d, 0x90, 0x1e,
2305838eb243Salnsn 0xbe, 0x9c, 0x73, 0x1a, 0x7c, 0x18, 0xb5, 0xe6,
2306838eb243Salnsn 0xde, 0xc1, 0xd6, 0xa7, 0x2e, 0x07, 0x8a, 0xc9,
2307838eb243Salnsn 0xa4, 0x26, 0x2f, 0x86, 0x0b, 0xee, 0xfa, 0x14,
2308838eb243Salnsn 0xf4, 0xe8, 0x21, 0x01, 0x82, 0x72, 0xe4, 0x11,
2309838eb243Salnsn 0xa9, 0x51, 0x50, 0x2b, 0x6e, 0x79, 0x06, 0x6e,
2310838eb243Salnsn 0x84, 0x25, 0x2c, 0x33, 0x46, 0xf3, 0xaa, 0x62,
2311838eb243Salnsn 0x34, 0x43, 0x51, 0xa2, 0x91, 0xd4, 0xbe, 0xdc,
2312838eb243Salnsn 0x7a, 0x07, 0x61, 0x8b, 0xde, 0xa2, 0xaf, 0x63,
2313838eb243Salnsn 0x14, 0x5c, 0xc7, 0xa4, 0xb8, 0xd4, 0x07, 0x06,
2314838eb243Salnsn 0x91, 0xae, 0x89, 0x0c, 0xd6, 0x57, 0x33, 0xe7,
2315838eb243Salnsn 0x94, 0x6e, 0x90, 0x21, 0xa1, 0xdf, 0xfc, 0x4c,
2316838eb243Salnsn 0x59, 0xf1, 0x59, 0x42, 0x5e, 0xe6, 0xd5, 0x0c,
2317838eb243Salnsn 0xa9, 0xb1, 0x35, 0xfa, 0x61, 0x62, 0xce, 0xa1,
2318838eb243Salnsn 0x8a, 0x93, 0x98, 0x38, 0xdc, 0x00, 0x0f, 0xb3,
2319838eb243Salnsn 0x86, 0xfa, 0xd0, 0x86, 0xac, 0xce, 0x5a, 0xc0,
2320838eb243Salnsn 0x7c, 0xb2, 0xec, 0xe7, 0xfd, 0x58, 0x0b, 0x00,
2321838eb243Salnsn 0xcf, 0xa5, 0xe9, 0x85, 0x89, 0x63, 0x1d, 0xc2,
2322838eb243Salnsn 0x5e, 0x8e, 0x2a, 0x3d, 0xaf, 0x2f, 0xfd, 0xec,
2323838eb243Salnsn 0x26, 0x53, 0x16, 0x59, 0x91, 0x2c, 0x9d, 0x8f,
2324838eb243Salnsn 0x7a, 0x15, 0xe5, 0x86, 0x5e, 0xa8, 0xfb, 0x58,
2325838eb243Salnsn 0x16, 0xd6, 0x20, 0x70, 0x52, 0xbd, 0x71, 0x28,
2326838eb243Salnsn 0xcd, 0x74, 0x3c, 0x12, 0xc8, 0x11, 0x87, 0x91,
2327838eb243Salnsn 0xa4, 0x73, 0x68, 0x11, 0x93, 0x5e, 0xb9, 0x82,
2328838eb243Salnsn 0xa5, 0x32, 0x34, 0x9e, 0x31, 0xdd, 0x40, 0x1e,
2329838eb243Salnsn 0x0b, 0x66, 0x0a, 0x56, 0x8c, 0xb1, 0xa4, 0x71,
2330838eb243Salnsn 0x1f, 0x55, 0x2f, 0x55, 0xde, 0xd5, 0x9f, 0x1f,
2331838eb243Salnsn 0x15, 0xbf, 0x71, 0x96, 0xb3, 0xca, 0x12, 0xa9,
2332838eb243Salnsn 0x1e, 0x48, 0x8e, 0xf5, 0x9d, 0x64, 0xf3, 0xa0,
2333838eb243Salnsn 0x2b, 0xf4, 0x52, 0x39, 0x49, 0x9a, 0xc6, 0x17,
2334838eb243Salnsn 0x6a, 0xe3, 0x21, 0xc4, 0xa2, 0x11, 0xec, 0x54,
2335838eb243Salnsn 0x53, 0x65, 0x97, 0x1c, 0x5d, 0x3f, 0x4f, 0x09,
2336838eb243Salnsn 0xd4, 0xeb, 0x13, 0x9b, 0xfd, 0xf2, 0x07, 0x3d,
2337838eb243Salnsn 0x33, 0x18, 0x0b, 0x21, 0x00, 0x2b, 0x65, 0xcc,
2338838eb243Salnsn 0x98, 0x65, 0xe7, 0x6c, 0xb2, 0x4c, 0xd9, 0x2c,
2339838eb243Salnsn 0x87, 0x4c, 0x24, 0xc1, 0x83, 0x50, 0x39, 0x9a,
2340838eb243Salnsn 0x93, 0x6a, 0xb3, 0x63, 0x70, 0x79, 0x29, 0x5d,
2341838eb243Salnsn 0x76, 0xc4, 0x17, 0x77, 0x6b, 0x94, 0xef, 0xce,
2342838eb243Salnsn 0x3a, 0x0e, 0xf7, 0x20, 0x6b, 0x15, 0x11, 0x05,
2343838eb243Salnsn 0x19, 0x65, 0x5c, 0x95, 0x6c, 0xbd, 0x8b, 0x24,
2344838eb243Salnsn 0x89, 0x40, 0x5e, 0xe2, 0xb0, 0x9a, 0x6b, 0x6e,
2345838eb243Salnsn 0xeb, 0xe0, 0xc5, 0x37, 0x90, 0xa1, 0x2a, 0x89,
2346838eb243Salnsn 0x98, 0x37, 0x8b, 0x33, 0xa5, 0xb7, 0x11, 0x59,
2347838eb243Salnsn 0x62, 0x5f, 0x4b, 0xa4, 0x9d, 0x2a, 0x2f, 0xdb,
2348838eb243Salnsn 0xa5, 0x9f, 0xbf, 0x08, 0x97, 0xbc, 0x7a, 0xab,
2349838eb243Salnsn 0xd8, 0xd7, 0x07, 0xdc, 0x14, 0x0a, 0x80, 0xf0,
2350838eb243Salnsn 0xf3, 0x09, 0xf8, 0x35, 0xd3, 0xda, 0x54, 0xab,
2351838eb243Salnsn 0x58, 0x4e, 0x50, 0x1d, 0xfa, 0x0e, 0xe9, 0x77,
2352838eb243Salnsn 0xfe, 0xc5, 0x43, 0xf7, 0x41, 0x86, 0xa8, 0x02,
2353838eb243Salnsn 0xb9, 0xa3, 0x7a, 0xdb, 0x3e, 0x82, 0x91, 0xec,
2354838eb243Salnsn 0xa0, 0x4d, 0x66, 0x52, 0x0d, 0x22, 0x9e, 0x60,
2355838eb243Salnsn 0x40, 0x1e, 0x72, 0x82, 0xbe, 0xf4, 0x86, 0xae,
2356838eb243Salnsn 0x05, 0x9a, 0xa7, 0x06, 0x96, 0xe0, 0xe3, 0x05,
2357838eb243Salnsn 0xd7, 0x77, 0x14, 0x0a, 0x7a, 0x88, 0x3e, 0xcd,
2358838eb243Salnsn 0xcb, 0x69, 0xb9, 0xff, 0x93, 0x8e, 0x8a, 0x42,
2359838eb243Salnsn 0x31, 0x86, 0x4c, 0x69, 0xca, 0x2c, 0x20, 0x43,
2360838eb243Salnsn 0xbe, 0xd0, 0x07, 0xff, 0x3e, 0x60, 0x5e, 0x01,
2361838eb243Salnsn 0x4b, 0xcf, 0x51, 0x81, 0x38, 0xdc, 0x3a, 0x25,
2362838eb243Salnsn 0xc5, 0xe2, 0x36, 0x17, 0x1a, 0x2d, 0x01, 0xd6,
2363838eb243Salnsn };
2364838eb243Salnsn
2365838eb243Salnsn /*
2366838eb243Salnsn * Vector 7 from IEEE 1619/D16, blkno 0xfd.
2367838eb243Salnsn */
2368*8f599c8aSmlelstv static const uint8_t aes_xts_256_vec7_ptxt[SECSIZE] __aligned(4) = {
2369838eb243Salnsn 0x8e, 0x41, 0xb7, 0x8c, 0x39, 0x0b, 0x5a, 0xf9,
2370838eb243Salnsn 0xd7, 0x58, 0xbb, 0x21, 0x4a, 0x67, 0xe9, 0xf6,
2371838eb243Salnsn 0xbf, 0x77, 0x27, 0xb0, 0x9a, 0xc6, 0x12, 0x40,
2372838eb243Salnsn 0x84, 0xc3, 0x76, 0x11, 0x39, 0x8f, 0xa4, 0x5d,
2373838eb243Salnsn 0xaa, 0xd9, 0x48, 0x68, 0x60, 0x0e, 0xd3, 0x91,
2374838eb243Salnsn 0xfb, 0x1a, 0xcd, 0x48, 0x57, 0xa9, 0x5b, 0x46,
2375838eb243Salnsn 0x6e, 0x62, 0xef, 0x9f, 0x4b, 0x37, 0x72, 0x44,
2376838eb243Salnsn 0xd1, 0xc1, 0x52, 0xe7, 0xb3, 0x0d, 0x73, 0x1a,
2377838eb243Salnsn 0xad, 0x30, 0xc7, 0x16, 0xd2, 0x14, 0xb7, 0x07,
2378838eb243Salnsn 0xae, 0xd9, 0x9e, 0xb5, 0xb5, 0xe5, 0x80, 0xb3,
2379838eb243Salnsn 0xe8, 0x87, 0xcf, 0x74, 0x97, 0x46, 0x56, 0x51,
2380838eb243Salnsn 0xd4, 0xb6, 0x0e, 0x60, 0x42, 0x05, 0x1d, 0xa3,
2381838eb243Salnsn 0x69, 0x3c, 0x3b, 0x78, 0xc1, 0x44, 0x89, 0x54,
2382838eb243Salnsn 0x3b, 0xe8, 0xb6, 0xad, 0x0b, 0xa6, 0x29, 0x56,
2383838eb243Salnsn 0x5b, 0xba, 0x20, 0x23, 0x13, 0xba, 0x7b, 0x0d,
2384838eb243Salnsn 0x0c, 0x94, 0xa3, 0x25, 0x2b, 0x67, 0x6f, 0x46,
2385838eb243Salnsn 0xcc, 0x02, 0xce, 0x0f, 0x8a, 0x7d, 0x34, 0xc0,
2386838eb243Salnsn 0xed, 0x22, 0x91, 0x29, 0x67, 0x3c, 0x1f, 0x61,
2387838eb243Salnsn 0xae, 0xd5, 0x79, 0xd0, 0x8a, 0x92, 0x03, 0xa2,
2388838eb243Salnsn 0x5a, 0xac, 0x3a, 0x77, 0xe9, 0xdb, 0x60, 0x26,
2389838eb243Salnsn 0x79, 0x96, 0xdb, 0x38, 0xdf, 0x63, 0x73, 0x56,
2390838eb243Salnsn 0xd9, 0xdc, 0xd1, 0x63, 0x2e, 0x36, 0x99, 0x39,
2391838eb243Salnsn 0xf2, 0xa2, 0x9d, 0x89, 0x34, 0x5c, 0x66, 0xe0,
2392838eb243Salnsn 0x50, 0x66, 0xf1, 0xa3, 0x67, 0x7a, 0xef, 0x18,
2393838eb243Salnsn 0xde, 0xa4, 0x11, 0x3f, 0xae, 0xb6, 0x29, 0xe4,
2394838eb243Salnsn 0x67, 0x21, 0xa6, 0x6d, 0x0a, 0x7e, 0x78, 0x5d,
2395838eb243Salnsn 0x3e, 0x29, 0xaf, 0x25, 0x94, 0xeb, 0x67, 0xdf,
2396838eb243Salnsn 0xa9, 0x82, 0xaf, 0xfe, 0x0a, 0xac, 0x05, 0x8f,
2397838eb243Salnsn 0x6e, 0x15, 0x86, 0x42, 0x69, 0xb1, 0x35, 0x41,
2398838eb243Salnsn 0x82, 0x61, 0xfc, 0x3a, 0xfb, 0x08, 0x94, 0x72,
2399838eb243Salnsn 0xcf, 0x68, 0xc4, 0x5d, 0xd7, 0xf2, 0x31, 0xc6,
2400838eb243Salnsn 0x24, 0x9b, 0xa0, 0x25, 0x5e, 0x1e, 0x03, 0x38,
2401838eb243Salnsn 0x33, 0xfc, 0x4d, 0x00, 0xa3, 0xfe, 0x02, 0x13,
2402838eb243Salnsn 0x2d, 0x7b, 0xc3, 0x87, 0x36, 0x14, 0xb8, 0xae,
2403838eb243Salnsn 0xe3, 0x42, 0x73, 0x58, 0x1e, 0xa0, 0x32, 0x5c,
2404838eb243Salnsn 0x81, 0xf0, 0x27, 0x0a, 0xff, 0xa1, 0x36, 0x41,
2405838eb243Salnsn 0xd0, 0x52, 0xd3, 0x6f, 0x07, 0x57, 0xd4, 0x84,
2406838eb243Salnsn 0x01, 0x43, 0x54, 0xd0, 0x2d, 0x68, 0x83, 0xca,
2407838eb243Salnsn 0x15, 0xc2, 0x4d, 0x8c, 0x39, 0x56, 0xb1, 0xbd,
2408838eb243Salnsn 0x02, 0x7b, 0xcf, 0x41, 0xf1, 0x51, 0xfd, 0x80,
2409838eb243Salnsn 0x23, 0xc5, 0x34, 0x0e, 0x56, 0x06, 0xf3, 0x7e,
2410838eb243Salnsn 0x90, 0xfd, 0xb8, 0x7c, 0x86, 0xfb, 0x4f, 0xa6,
2411838eb243Salnsn 0x34, 0xb3, 0x71, 0x8a, 0x30, 0xba, 0xce, 0x06,
2412838eb243Salnsn 0xa6, 0x6e, 0xaf, 0x8f, 0x63, 0xc4, 0xaa, 0x3b,
2413838eb243Salnsn 0x63, 0x78, 0x26, 0xa8, 0x7f, 0xe8, 0xcf, 0xa4,
2414838eb243Salnsn 0x42, 0x82, 0xe9, 0x2c, 0xb1, 0x61, 0x5a, 0xf3,
2415838eb243Salnsn 0xa2, 0x8e, 0x53, 0xbc, 0x74, 0xc7, 0xcb, 0xa1,
2416838eb243Salnsn 0xa0, 0x97, 0x7b, 0xe9, 0x06, 0x5d, 0x0c, 0x1a,
2417838eb243Salnsn 0x5d, 0xec, 0x6c, 0x54, 0xae, 0x38, 0xd3, 0x7f,
2418838eb243Salnsn 0x37, 0xaa, 0x35, 0x28, 0x3e, 0x04, 0x8e, 0x55,
2419838eb243Salnsn 0x30, 0xa8, 0x5c, 0x4e, 0x7a, 0x29, 0xd7, 0xb9,
2420838eb243Salnsn 0x2e, 0xc0, 0xc3, 0x16, 0x9c, 0xdf, 0x2a, 0x80,
2421838eb243Salnsn 0x5c, 0x76, 0x04, 0xbc, 0xe6, 0x00, 0x49, 0xb9,
2422838eb243Salnsn 0xfb, 0x7b, 0x8e, 0xaa, 0xc1, 0x0f, 0x51, 0xae,
2423838eb243Salnsn 0x23, 0x79, 0x4c, 0xeb, 0xa6, 0x8b, 0xb5, 0x81,
2424838eb243Salnsn 0x12, 0xe2, 0x93, 0xb9, 0xb6, 0x92, 0xca, 0x72,
2425838eb243Salnsn 0x1b, 0x37, 0xc6, 0x62, 0xf8, 0x57, 0x4e, 0xd4,
2426838eb243Salnsn 0xdb, 0xa6, 0xf8, 0x8e, 0x17, 0x08, 0x81, 0xc8,
2427838eb243Salnsn 0x2c, 0xdd, 0xc1, 0x03, 0x4a, 0x0c, 0xa7, 0xe2,
2428838eb243Salnsn 0x84, 0xbf, 0x09, 0x62, 0xb6, 0xb2, 0x62, 0x92,
2429838eb243Salnsn 0xd8, 0x36, 0xfa, 0x9f, 0x73, 0xc1, 0xac, 0x77,
2430838eb243Salnsn 0x0e, 0xef, 0x0f, 0x2d, 0x3a, 0x1e, 0xaf, 0x61,
2431838eb243Salnsn 0xd3, 0xe0, 0x35, 0x55, 0xfd, 0x42, 0x4e, 0xed,
2432838eb243Salnsn 0xd6, 0x7e, 0x18, 0xa1, 0x80, 0x94, 0xf8, 0x88,
2433838eb243Salnsn };
2434838eb243Salnsn
2435838eb243Salnsn static const uint8_t aes_xts_256_vec7_ctxt[SECSIZE] = {
2436838eb243Salnsn 0xd5, 0x5f, 0x68, 0x4f, 0x81, 0xf4, 0x42, 0x6e,
2437838eb243Salnsn 0x9f, 0xde, 0x92, 0xa5, 0xff, 0x02, 0xdf, 0x2a,
2438838eb243Salnsn 0xc8, 0x96, 0xaf, 0x63, 0x96, 0x28, 0x88, 0xa9,
2439838eb243Salnsn 0x79, 0x10, 0xc1, 0x37, 0x9e, 0x20, 0xb0, 0xa3,
2440838eb243Salnsn 0xb1, 0xdb, 0x61, 0x3f, 0xb7, 0xfe, 0x2e, 0x07,
2441838eb243Salnsn 0x00, 0x43, 0x29, 0xea, 0x5c, 0x22, 0xbf, 0xd3,
2442838eb243Salnsn 0x3e, 0x3d, 0xbe, 0x4c, 0xf5, 0x8c, 0xc6, 0x08,
2443838eb243Salnsn 0xc2, 0xc2, 0x6c, 0x19, 0xa2, 0xe2, 0xfe, 0x22,
2444838eb243Salnsn 0xf9, 0x87, 0x32, 0xc2, 0xb5, 0xcb, 0x84, 0x4c,
2445838eb243Salnsn 0xc6, 0xc0, 0x70, 0x2d, 0x91, 0xe1, 0xd5, 0x0f,
2446838eb243Salnsn 0xc4, 0x38, 0x2a, 0x7e, 0xba, 0x56, 0x35, 0xcd,
2447838eb243Salnsn 0x60, 0x24, 0x32, 0xa2, 0x30, 0x6a, 0xc4, 0xce,
2448838eb243Salnsn 0x82, 0xf8, 0xd7, 0x0c, 0x8d, 0x9b, 0xc1, 0x5f,
2449838eb243Salnsn 0x91, 0x8f, 0xe7, 0x1e, 0x74, 0xc6, 0x22, 0xd5,
2450838eb243Salnsn 0xcf, 0x71, 0x17, 0x8b, 0xf6, 0xe0, 0xb9, 0xcc,
2451838eb243Salnsn 0x9f, 0x2b, 0x41, 0xdd, 0x8d, 0xbe, 0x44, 0x1c,
2452838eb243Salnsn 0x41, 0xcd, 0x0c, 0x73, 0xa6, 0xdc, 0x47, 0xa3,
2453838eb243Salnsn 0x48, 0xf6, 0x70, 0x2f, 0x9d, 0x0e, 0x9b, 0x1b,
2454838eb243Salnsn 0x14, 0x31, 0xe9, 0x48, 0xe2, 0x99, 0xb9, 0xec,
2455838eb243Salnsn 0x22, 0x72, 0xab, 0x2c, 0x5f, 0x0c, 0x7b, 0xe8,
2456838eb243Salnsn 0x6a, 0xff, 0xa5, 0xde, 0xc8, 0x7a, 0x0b, 0xee,
2457838eb243Salnsn 0x81, 0xd3, 0xd5, 0x00, 0x07, 0xed, 0xaa, 0x2b,
2458838eb243Salnsn 0xcf, 0xcc, 0xb3, 0x56, 0x05, 0x15, 0x5f, 0xf3,
2459838eb243Salnsn 0x6e, 0xd8, 0xed, 0xd4, 0xa4, 0x0d, 0xcd, 0x4b,
2460838eb243Salnsn 0x24, 0x3a, 0xcd, 0x11, 0xb2, 0xb9, 0x87, 0xbd,
2461838eb243Salnsn 0xbf, 0xaf, 0x91, 0xa7, 0xca, 0xc2, 0x7e, 0x9c,
2462838eb243Salnsn 0x5a, 0xea, 0x52, 0x5e, 0xe5, 0x3d, 0xe7, 0xb2,
2463838eb243Salnsn 0xd3, 0x33, 0x2c, 0x86, 0x44, 0x40, 0x2b, 0x82,
2464838eb243Salnsn 0x3e, 0x94, 0xa7, 0xdb, 0x26, 0x27, 0x6d, 0x2d,
2465838eb243Salnsn 0x23, 0xaa, 0x07, 0x18, 0x0f, 0x76, 0xb4, 0xfd,
2466838eb243Salnsn 0x29, 0xb9, 0xc0, 0x82, 0x30, 0x99, 0xc9, 0xd6,
2467838eb243Salnsn 0x2c, 0x51, 0x98, 0x80, 0xae, 0xe7, 0xe9, 0x69,
2468838eb243Salnsn 0x76, 0x17, 0xc1, 0x49, 0x7d, 0x47, 0xbf, 0x3e,
2469838eb243Salnsn 0x57, 0x19, 0x50, 0x31, 0x14, 0x21, 0xb6, 0xb7,
2470838eb243Salnsn 0x34, 0xd3, 0x8b, 0x0d, 0xb9, 0x1e, 0xb8, 0x53,
2471838eb243Salnsn 0x31, 0xb9, 0x1e, 0xa9, 0xf6, 0x15, 0x30, 0xf5,
2472838eb243Salnsn 0x45, 0x12, 0xa5, 0xa5, 0x2a, 0x4b, 0xad, 0x58,
2473838eb243Salnsn 0x9e, 0xb6, 0x97, 0x81, 0xd5, 0x37, 0xf2, 0x32,
2474838eb243Salnsn 0x97, 0xbb, 0x45, 0x9b, 0xda, 0xd2, 0x94, 0x8a,
2475838eb243Salnsn 0x29, 0xe1, 0x55, 0x0b, 0xf4, 0x78, 0x7e, 0x0b,
2476838eb243Salnsn 0xe9, 0x5b, 0xb1, 0x73, 0xcf, 0x5f, 0xab, 0x17,
2477838eb243Salnsn 0xda, 0xb7, 0xa1, 0x3a, 0x05, 0x2a, 0x63, 0x45,
2478838eb243Salnsn 0x3d, 0x97, 0xcc, 0xec, 0x1a, 0x32, 0x19, 0x54,
2479838eb243Salnsn 0x88, 0x6b, 0x7a, 0x12, 0x99, 0xfa, 0xae, 0xec,
2480838eb243Salnsn 0xae, 0x35, 0xc6, 0xea, 0xac, 0xa7, 0x53, 0xb0,
2481838eb243Salnsn 0x41, 0xb5, 0xe5, 0xf0, 0x93, 0xbf, 0x83, 0x39,
2482838eb243Salnsn 0x7f, 0xd2, 0x1d, 0xd6, 0xb3, 0x01, 0x20, 0x66,
2483838eb243Salnsn 0xfc, 0xc0, 0x58, 0xcc, 0x32, 0xc3, 0xb0, 0x9d,
2484838eb243Salnsn 0x75, 0x62, 0xde, 0xe2, 0x95, 0x09, 0xb5, 0x83,
2485838eb243Salnsn 0x93, 0x92, 0xc9, 0xff, 0x05, 0xf5, 0x1f, 0x31,
2486838eb243Salnsn 0x66, 0xaa, 0xac, 0x4a, 0xc5, 0xf2, 0x38, 0x03,
2487838eb243Salnsn 0x8a, 0x30, 0x45, 0xe6, 0xf7, 0x2e, 0x48, 0xef,
2488838eb243Salnsn 0x0f, 0xe8, 0xbc, 0x67, 0x5e, 0x82, 0xc3, 0x18,
2489838eb243Salnsn 0xa2, 0x68, 0xe4, 0x39, 0x70, 0x27, 0x1b, 0xf1,
2490838eb243Salnsn 0x19, 0xb8, 0x1b, 0xf6, 0xa9, 0x82, 0x74, 0x65,
2491838eb243Salnsn 0x54, 0xf8, 0x4e, 0x72, 0xb9, 0xf0, 0x02, 0x80,
2492838eb243Salnsn 0xa3, 0x20, 0xa0, 0x81, 0x42, 0x92, 0x3c, 0x23,
2493838eb243Salnsn 0xc8, 0x83, 0x42, 0x3f, 0xf9, 0x49, 0x82, 0x7f,
2494838eb243Salnsn 0x29, 0xbb, 0xac, 0xdc, 0x1c, 0xcd, 0xb0, 0x49,
2495838eb243Salnsn 0x38, 0xce, 0x60, 0x98, 0xc9, 0x5b, 0xa6, 0xb3,
2496838eb243Salnsn 0x25, 0x28, 0xf4, 0xef, 0x78, 0xee, 0xd7, 0x78,
2497838eb243Salnsn 0xb2, 0xe1, 0x22, 0xdd, 0xfd, 0x1c, 0xbd, 0xd1,
2498838eb243Salnsn 0x1d, 0x1c, 0x0a, 0x67, 0x83, 0xe0, 0x11, 0xfc,
2499838eb243Salnsn 0x53, 0x6d, 0x63, 0xd0, 0x53, 0x26, 0x06, 0x37,
2500838eb243Salnsn };
2501838eb243Salnsn
2502838eb243Salnsn /*
2503838eb243Salnsn * Vector 8 from IEEE 1619/D16, blkno 0xfe.
2504838eb243Salnsn */
2505*8f599c8aSmlelstv static const uint8_t aes_xts_256_vec8_ptxt[SECSIZE] __aligned(4) = {
2506838eb243Salnsn 0xd5, 0x5f, 0x68, 0x4f, 0x81, 0xf4, 0x42, 0x6e,
2507838eb243Salnsn 0x9f, 0xde, 0x92, 0xa5, 0xff, 0x02, 0xdf, 0x2a,
2508838eb243Salnsn 0xc8, 0x96, 0xaf, 0x63, 0x96, 0x28, 0x88, 0xa9,
2509838eb243Salnsn 0x79, 0x10, 0xc1, 0x37, 0x9e, 0x20, 0xb0, 0xa3,
2510838eb243Salnsn 0xb1, 0xdb, 0x61, 0x3f, 0xb7, 0xfe, 0x2e, 0x07,
2511838eb243Salnsn 0x00, 0x43, 0x29, 0xea, 0x5c, 0x22, 0xbf, 0xd3,
2512838eb243Salnsn 0x3e, 0x3d, 0xbe, 0x4c, 0xf5, 0x8c, 0xc6, 0x08,
2513838eb243Salnsn 0xc2, 0xc2, 0x6c, 0x19, 0xa2, 0xe2, 0xfe, 0x22,
2514838eb243Salnsn 0xf9, 0x87, 0x32, 0xc2, 0xb5, 0xcb, 0x84, 0x4c,
2515838eb243Salnsn 0xc6, 0xc0, 0x70, 0x2d, 0x91, 0xe1, 0xd5, 0x0f,
2516838eb243Salnsn 0xc4, 0x38, 0x2a, 0x7e, 0xba, 0x56, 0x35, 0xcd,
2517838eb243Salnsn 0x60, 0x24, 0x32, 0xa2, 0x30, 0x6a, 0xc4, 0xce,
2518838eb243Salnsn 0x82, 0xf8, 0xd7, 0x0c, 0x8d, 0x9b, 0xc1, 0x5f,
2519838eb243Salnsn 0x91, 0x8f, 0xe7, 0x1e, 0x74, 0xc6, 0x22, 0xd5,
2520838eb243Salnsn 0xcf, 0x71, 0x17, 0x8b, 0xf6, 0xe0, 0xb9, 0xcc,
2521838eb243Salnsn 0x9f, 0x2b, 0x41, 0xdd, 0x8d, 0xbe, 0x44, 0x1c,
2522838eb243Salnsn 0x41, 0xcd, 0x0c, 0x73, 0xa6, 0xdc, 0x47, 0xa3,
2523838eb243Salnsn 0x48, 0xf6, 0x70, 0x2f, 0x9d, 0x0e, 0x9b, 0x1b,
2524838eb243Salnsn 0x14, 0x31, 0xe9, 0x48, 0xe2, 0x99, 0xb9, 0xec,
2525838eb243Salnsn 0x22, 0x72, 0xab, 0x2c, 0x5f, 0x0c, 0x7b, 0xe8,
2526838eb243Salnsn 0x6a, 0xff, 0xa5, 0xde, 0xc8, 0x7a, 0x0b, 0xee,
2527838eb243Salnsn 0x81, 0xd3, 0xd5, 0x00, 0x07, 0xed, 0xaa, 0x2b,
2528838eb243Salnsn 0xcf, 0xcc, 0xb3, 0x56, 0x05, 0x15, 0x5f, 0xf3,
2529838eb243Salnsn 0x6e, 0xd8, 0xed, 0xd4, 0xa4, 0x0d, 0xcd, 0x4b,
2530838eb243Salnsn 0x24, 0x3a, 0xcd, 0x11, 0xb2, 0xb9, 0x87, 0xbd,
2531838eb243Salnsn 0xbf, 0xaf, 0x91, 0xa7, 0xca, 0xc2, 0x7e, 0x9c,
2532838eb243Salnsn 0x5a, 0xea, 0x52, 0x5e, 0xe5, 0x3d, 0xe7, 0xb2,
2533838eb243Salnsn 0xd3, 0x33, 0x2c, 0x86, 0x44, 0x40, 0x2b, 0x82,
2534838eb243Salnsn 0x3e, 0x94, 0xa7, 0xdb, 0x26, 0x27, 0x6d, 0x2d,
2535838eb243Salnsn 0x23, 0xaa, 0x07, 0x18, 0x0f, 0x76, 0xb4, 0xfd,
2536838eb243Salnsn 0x29, 0xb9, 0xc0, 0x82, 0x30, 0x99, 0xc9, 0xd6,
2537838eb243Salnsn 0x2c, 0x51, 0x98, 0x80, 0xae, 0xe7, 0xe9, 0x69,
2538838eb243Salnsn 0x76, 0x17, 0xc1, 0x49, 0x7d, 0x47, 0xbf, 0x3e,
2539838eb243Salnsn 0x57, 0x19, 0x50, 0x31, 0x14, 0x21, 0xb6, 0xb7,
2540838eb243Salnsn 0x34, 0xd3, 0x8b, 0x0d, 0xb9, 0x1e, 0xb8, 0x53,
2541838eb243Salnsn 0x31, 0xb9, 0x1e, 0xa9, 0xf6, 0x15, 0x30, 0xf5,
2542838eb243Salnsn 0x45, 0x12, 0xa5, 0xa5, 0x2a, 0x4b, 0xad, 0x58,
2543838eb243Salnsn 0x9e, 0xb6, 0x97, 0x81, 0xd5, 0x37, 0xf2, 0x32,
2544838eb243Salnsn 0x97, 0xbb, 0x45, 0x9b, 0xda, 0xd2, 0x94, 0x8a,
2545838eb243Salnsn 0x29, 0xe1, 0x55, 0x0b, 0xf4, 0x78, 0x7e, 0x0b,
2546838eb243Salnsn 0xe9, 0x5b, 0xb1, 0x73, 0xcf, 0x5f, 0xab, 0x17,
2547838eb243Salnsn 0xda, 0xb7, 0xa1, 0x3a, 0x05, 0x2a, 0x63, 0x45,
2548838eb243Salnsn 0x3d, 0x97, 0xcc, 0xec, 0x1a, 0x32, 0x19, 0x54,
2549838eb243Salnsn 0x88, 0x6b, 0x7a, 0x12, 0x99, 0xfa, 0xae, 0xec,
2550838eb243Salnsn 0xae, 0x35, 0xc6, 0xea, 0xac, 0xa7, 0x53, 0xb0,
2551838eb243Salnsn 0x41, 0xb5, 0xe5, 0xf0, 0x93, 0xbf, 0x83, 0x39,
2552838eb243Salnsn 0x7f, 0xd2, 0x1d, 0xd6, 0xb3, 0x01, 0x20, 0x66,
2553838eb243Salnsn 0xfc, 0xc0, 0x58, 0xcc, 0x32, 0xc3, 0xb0, 0x9d,
2554838eb243Salnsn 0x75, 0x62, 0xde, 0xe2, 0x95, 0x09, 0xb5, 0x83,
2555838eb243Salnsn 0x93, 0x92, 0xc9, 0xff, 0x05, 0xf5, 0x1f, 0x31,
2556838eb243Salnsn 0x66, 0xaa, 0xac, 0x4a, 0xc5, 0xf2, 0x38, 0x03,
2557838eb243Salnsn 0x8a, 0x30, 0x45, 0xe6, 0xf7, 0x2e, 0x48, 0xef,
2558838eb243Salnsn 0x0f, 0xe8, 0xbc, 0x67, 0x5e, 0x82, 0xc3, 0x18,
2559838eb243Salnsn 0xa2, 0x68, 0xe4, 0x39, 0x70, 0x27, 0x1b, 0xf1,
2560838eb243Salnsn 0x19, 0xb8, 0x1b, 0xf6, 0xa9, 0x82, 0x74, 0x65,
2561838eb243Salnsn 0x54, 0xf8, 0x4e, 0x72, 0xb9, 0xf0, 0x02, 0x80,
2562838eb243Salnsn 0xa3, 0x20, 0xa0, 0x81, 0x42, 0x92, 0x3c, 0x23,
2563838eb243Salnsn 0xc8, 0x83, 0x42, 0x3f, 0xf9, 0x49, 0x82, 0x7f,
2564838eb243Salnsn 0x29, 0xbb, 0xac, 0xdc, 0x1c, 0xcd, 0xb0, 0x49,
2565838eb243Salnsn 0x38, 0xce, 0x60, 0x98, 0xc9, 0x5b, 0xa6, 0xb3,
2566838eb243Salnsn 0x25, 0x28, 0xf4, 0xef, 0x78, 0xee, 0xd7, 0x78,
2567838eb243Salnsn 0xb2, 0xe1, 0x22, 0xdd, 0xfd, 0x1c, 0xbd, 0xd1,
2568838eb243Salnsn 0x1d, 0x1c, 0x0a, 0x67, 0x83, 0xe0, 0x11, 0xfc,
2569838eb243Salnsn 0x53, 0x6d, 0x63, 0xd0, 0x53, 0x26, 0x06, 0x37,
2570838eb243Salnsn };
2571838eb243Salnsn
2572838eb243Salnsn static const uint8_t aes_xts_256_vec8_ctxt[SECSIZE] = {
2573838eb243Salnsn 0x72, 0xef, 0xc1, 0xeb, 0xfe, 0x1e, 0xe2, 0x59,
2574838eb243Salnsn 0x75, 0xa6, 0xeb, 0x3a, 0xa8, 0x58, 0x9d, 0xda,
2575838eb243Salnsn 0x2b, 0x26, 0x1f, 0x1c, 0x85, 0xbd, 0xab, 0x44,
2576838eb243Salnsn 0x2a, 0x9e, 0x5b, 0x2d, 0xd1, 0xd7, 0xc3, 0x95,
2577838eb243Salnsn 0x7a, 0x16, 0xfc, 0x08, 0xe5, 0x26, 0xd4, 0xb1,
2578838eb243Salnsn 0x22, 0x3f, 0x1b, 0x12, 0x32, 0xa1, 0x1a, 0xf2,
2579838eb243Salnsn 0x74, 0xc3, 0xd7, 0x0d, 0xac, 0x57, 0xf8, 0x3e,
2580838eb243Salnsn 0x09, 0x83, 0xc4, 0x98, 0xf1, 0xa6, 0xf1, 0xae,
2581838eb243Salnsn 0xcb, 0x02, 0x1c, 0x3e, 0x70, 0x08, 0x5a, 0x1e,
2582838eb243Salnsn 0x52, 0x7f, 0x1c, 0xe4, 0x1e, 0xe5, 0x91, 0x1a,
2583838eb243Salnsn 0x82, 0x02, 0x01, 0x61, 0x52, 0x9c, 0xd8, 0x27,
2584838eb243Salnsn 0x73, 0x76, 0x2d, 0xaf, 0x54, 0x59, 0xde, 0x94,
2585838eb243Salnsn 0xa0, 0xa8, 0x2a, 0xda, 0xe7, 0xe1, 0x70, 0x3c,
2586838eb243Salnsn 0x80, 0x85, 0x43, 0xc2, 0x9e, 0xd6, 0xfb, 0x32,
2587838eb243Salnsn 0xd9, 0xe0, 0x04, 0x32, 0x7c, 0x13, 0x55, 0x18,
2588838eb243Salnsn 0x0c, 0x99, 0x5a, 0x07, 0x74, 0x14, 0x93, 0xa0,
2589838eb243Salnsn 0x9c, 0x21, 0xba, 0x01, 0xa3, 0x87, 0x88, 0x2d,
2590838eb243Salnsn 0xa4, 0xf6, 0x25, 0x34, 0xb8, 0x7b, 0xb1, 0x5d,
2591838eb243Salnsn 0x60, 0xd1, 0x97, 0x20, 0x1c, 0x0f, 0xd3, 0xbf,
2592838eb243Salnsn 0x30, 0xc1, 0x50, 0x0a, 0x3e, 0xcf, 0xec, 0xdd,
2593838eb243Salnsn 0x66, 0xd8, 0x72, 0x1f, 0x90, 0xbc, 0xc4, 0xc1,
2594838eb243Salnsn 0x7e, 0xe9, 0x25, 0xc6, 0x1b, 0x0a, 0x03, 0x72,
2595838eb243Salnsn 0x7a, 0x9c, 0x0d, 0x5f, 0x5c, 0xa4, 0x62, 0xfb,
2596838eb243Salnsn 0xfa, 0x0a, 0xf1, 0xc2, 0x51, 0x3a, 0x9d, 0x9d,
2597838eb243Salnsn 0x4b, 0x53, 0x45, 0xbd, 0x27, 0xa5, 0xf6, 0xe6,
2598838eb243Salnsn 0x53, 0xf7, 0x51, 0x69, 0x3e, 0x6b, 0x6a, 0x2b,
2599838eb243Salnsn 0x8e, 0xad, 0x57, 0xd5, 0x11, 0xe0, 0x0e, 0x58,
2600838eb243Salnsn 0xc4, 0x5b, 0x7b, 0x8d, 0x00, 0x5a, 0xf7, 0x92,
2601838eb243Salnsn 0x88, 0xf5, 0xc7, 0xc2, 0x2f, 0xd4, 0xf1, 0xbf,
2602838eb243Salnsn 0x7a, 0x89, 0x8b, 0x03, 0xa5, 0x63, 0x4c, 0x6a,
2603838eb243Salnsn 0x1a, 0xe3, 0xf9, 0xfa, 0xe5, 0xde, 0x4f, 0x29,
2604838eb243Salnsn 0x6a, 0x28, 0x96, 0xb2, 0x3e, 0x7e, 0xd4, 0x3e,
2605838eb243Salnsn 0xd1, 0x4f, 0xa5, 0xa2, 0x80, 0x3f, 0x4d, 0x28,
2606838eb243Salnsn 0xf0, 0xd3, 0xff, 0xcf, 0x24, 0x75, 0x76, 0x77,
2607838eb243Salnsn 0xae, 0xbd, 0xb4, 0x7b, 0xb3, 0x88, 0x37, 0x87,
2608838eb243Salnsn 0x08, 0x94, 0x8a, 0x8d, 0x41, 0x26, 0xed, 0x18,
2609838eb243Salnsn 0x39, 0xe0, 0xda, 0x29, 0xa5, 0x37, 0xa8, 0xc1,
2610838eb243Salnsn 0x98, 0xb3, 0xc6, 0x6a, 0xb0, 0x07, 0x12, 0xdd,
2611838eb243Salnsn 0x26, 0x16, 0x74, 0xbf, 0x45, 0xa7, 0x3d, 0x67,
2612838eb243Salnsn 0xf7, 0x69, 0x14, 0xf8, 0x30, 0xca, 0x01, 0x4b,
2613838eb243Salnsn 0x65, 0x59, 0x6f, 0x27, 0xe4, 0xcf, 0x62, 0xde,
2614838eb243Salnsn 0x66, 0x12, 0x5a, 0x55, 0x66, 0xdf, 0x99, 0x75,
2615838eb243Salnsn 0x15, 0x56, 0x28, 0xb4, 0x00, 0xfb, 0xfb, 0x3a,
2616838eb243Salnsn 0x29, 0x04, 0x0e, 0xd5, 0x0f, 0xaf, 0xfd, 0xbb,
2617838eb243Salnsn 0x18, 0xae, 0xce, 0x7c, 0x5c, 0x44, 0x69, 0x32,
2618838eb243Salnsn 0x60, 0xaa, 0xb3, 0x86, 0xc0, 0xa3, 0x7b, 0x11,
2619838eb243Salnsn 0xb1, 0x14, 0xf1, 0xc4, 0x15, 0xae, 0xbb, 0x65,
2620838eb243Salnsn 0x3b, 0xe4, 0x68, 0x17, 0x94, 0x28, 0xd4, 0x3a,
2621838eb243Salnsn 0x4d, 0x8b, 0xc3, 0xec, 0x38, 0x81, 0x3e, 0xca,
2622838eb243Salnsn 0x30, 0xa1, 0x3c, 0xf1, 0xbb, 0x18, 0xd5, 0x24,
2623838eb243Salnsn 0xf1, 0x99, 0x2d, 0x44, 0xd8, 0xb1, 0xa4, 0x2e,
2624838eb243Salnsn 0xa3, 0x0b, 0x22, 0xe6, 0xc9, 0x5b, 0x19, 0x9d,
2625838eb243Salnsn 0x8d, 0x18, 0x2f, 0x88, 0x40, 0xb0, 0x9d, 0x05,
2626838eb243Salnsn 0x95, 0x85, 0xc3, 0x1a, 0xd6, 0x91, 0xfa, 0x06,
2627838eb243Salnsn 0x19, 0xff, 0x03, 0x8a, 0xca, 0x2c, 0x39, 0xa9,
2628838eb243Salnsn 0x43, 0x42, 0x11, 0x57, 0x36, 0x17, 0x17, 0xc4,
2629838eb243Salnsn 0x9d, 0x32, 0x20, 0x28, 0xa7, 0x46, 0x48, 0x11,
2630838eb243Salnsn 0x3b, 0xd8, 0xc9, 0xd7, 0xec, 0x77, 0xcf, 0x3c,
2631838eb243Salnsn 0x89, 0xc1, 0xec, 0x87, 0x18, 0xce, 0xff, 0x85,
2632838eb243Salnsn 0x16, 0xd9, 0x6b, 0x34, 0xc3, 0xc6, 0x14, 0xf1,
2633838eb243Salnsn 0x06, 0x99, 0xc9, 0xab, 0xc4, 0xed, 0x04, 0x11,
2634838eb243Salnsn 0x50, 0x62, 0x23, 0xbe, 0xa1, 0x6a, 0xf3, 0x5c,
2635838eb243Salnsn 0x88, 0x3a, 0xcc, 0xdb, 0xe1, 0x10, 0x4e, 0xef,
2636838eb243Salnsn 0x0c, 0xfd, 0xb5, 0x4e, 0x12, 0xfb, 0x23, 0x0a,
2637838eb243Salnsn };
2638838eb243Salnsn
2639838eb243Salnsn /*
2640838eb243Salnsn * Vector 9 from IEEE 1619/D16, blkno 0xff.
2641838eb243Salnsn */
2642*8f599c8aSmlelstv static const uint8_t aes_xts_256_vec9_ptxt[SECSIZE] __aligned(4) = {
2643838eb243Salnsn 0x72, 0xef, 0xc1, 0xeb, 0xfe, 0x1e, 0xe2, 0x59,
2644838eb243Salnsn 0x75, 0xa6, 0xeb, 0x3a, 0xa8, 0x58, 0x9d, 0xda,
2645838eb243Salnsn 0x2b, 0x26, 0x1f, 0x1c, 0x85, 0xbd, 0xab, 0x44,
2646838eb243Salnsn 0x2a, 0x9e, 0x5b, 0x2d, 0xd1, 0xd7, 0xc3, 0x95,
2647838eb243Salnsn 0x7a, 0x16, 0xfc, 0x08, 0xe5, 0x26, 0xd4, 0xb1,
2648838eb243Salnsn 0x22, 0x3f, 0x1b, 0x12, 0x32, 0xa1, 0x1a, 0xf2,
2649838eb243Salnsn 0x74, 0xc3, 0xd7, 0x0d, 0xac, 0x57, 0xf8, 0x3e,
2650838eb243Salnsn 0x09, 0x83, 0xc4, 0x98, 0xf1, 0xa6, 0xf1, 0xae,
2651838eb243Salnsn 0xcb, 0x02, 0x1c, 0x3e, 0x70, 0x08, 0x5a, 0x1e,
2652838eb243Salnsn 0x52, 0x7f, 0x1c, 0xe4, 0x1e, 0xe5, 0x91, 0x1a,
2653838eb243Salnsn 0x82, 0x02, 0x01, 0x61, 0x52, 0x9c, 0xd8, 0x27,
2654838eb243Salnsn 0x73, 0x76, 0x2d, 0xaf, 0x54, 0x59, 0xde, 0x94,
2655838eb243Salnsn 0xa0, 0xa8, 0x2a, 0xda, 0xe7, 0xe1, 0x70, 0x3c,
2656838eb243Salnsn 0x80, 0x85, 0x43, 0xc2, 0x9e, 0xd6, 0xfb, 0x32,
2657838eb243Salnsn 0xd9, 0xe0, 0x04, 0x32, 0x7c, 0x13, 0x55, 0x18,
2658838eb243Salnsn 0x0c, 0x99, 0x5a, 0x07, 0x74, 0x14, 0x93, 0xa0,
2659838eb243Salnsn 0x9c, 0x21, 0xba, 0x01, 0xa3, 0x87, 0x88, 0x2d,
2660838eb243Salnsn 0xa4, 0xf6, 0x25, 0x34, 0xb8, 0x7b, 0xb1, 0x5d,
2661838eb243Salnsn 0x60, 0xd1, 0x97, 0x20, 0x1c, 0x0f, 0xd3, 0xbf,
2662838eb243Salnsn 0x30, 0xc1, 0x50, 0x0a, 0x3e, 0xcf, 0xec, 0xdd,
2663838eb243Salnsn 0x66, 0xd8, 0x72, 0x1f, 0x90, 0xbc, 0xc4, 0xc1,
2664838eb243Salnsn 0x7e, 0xe9, 0x25, 0xc6, 0x1b, 0x0a, 0x03, 0x72,
2665838eb243Salnsn 0x7a, 0x9c, 0x0d, 0x5f, 0x5c, 0xa4, 0x62, 0xfb,
2666838eb243Salnsn 0xfa, 0x0a, 0xf1, 0xc2, 0x51, 0x3a, 0x9d, 0x9d,
2667838eb243Salnsn 0x4b, 0x53, 0x45, 0xbd, 0x27, 0xa5, 0xf6, 0xe6,
2668838eb243Salnsn 0x53, 0xf7, 0x51, 0x69, 0x3e, 0x6b, 0x6a, 0x2b,
2669838eb243Salnsn 0x8e, 0xad, 0x57, 0xd5, 0x11, 0xe0, 0x0e, 0x58,
2670838eb243Salnsn 0xc4, 0x5b, 0x7b, 0x8d, 0x00, 0x5a, 0xf7, 0x92,
2671838eb243Salnsn 0x88, 0xf5, 0xc7, 0xc2, 0x2f, 0xd4, 0xf1, 0xbf,
2672838eb243Salnsn 0x7a, 0x89, 0x8b, 0x03, 0xa5, 0x63, 0x4c, 0x6a,
2673838eb243Salnsn 0x1a, 0xe3, 0xf9, 0xfa, 0xe5, 0xde, 0x4f, 0x29,
2674838eb243Salnsn 0x6a, 0x28, 0x96, 0xb2, 0x3e, 0x7e, 0xd4, 0x3e,
2675838eb243Salnsn 0xd1, 0x4f, 0xa5, 0xa2, 0x80, 0x3f, 0x4d, 0x28,
2676838eb243Salnsn 0xf0, 0xd3, 0xff, 0xcf, 0x24, 0x75, 0x76, 0x77,
2677838eb243Salnsn 0xae, 0xbd, 0xb4, 0x7b, 0xb3, 0x88, 0x37, 0x87,
2678838eb243Salnsn 0x08, 0x94, 0x8a, 0x8d, 0x41, 0x26, 0xed, 0x18,
2679838eb243Salnsn 0x39, 0xe0, 0xda, 0x29, 0xa5, 0x37, 0xa8, 0xc1,
2680838eb243Salnsn 0x98, 0xb3, 0xc6, 0x6a, 0xb0, 0x07, 0x12, 0xdd,
2681838eb243Salnsn 0x26, 0x16, 0x74, 0xbf, 0x45, 0xa7, 0x3d, 0x67,
2682838eb243Salnsn 0xf7, 0x69, 0x14, 0xf8, 0x30, 0xca, 0x01, 0x4b,
2683838eb243Salnsn 0x65, 0x59, 0x6f, 0x27, 0xe4, 0xcf, 0x62, 0xde,
2684838eb243Salnsn 0x66, 0x12, 0x5a, 0x55, 0x66, 0xdf, 0x99, 0x75,
2685838eb243Salnsn 0x15, 0x56, 0x28, 0xb4, 0x00, 0xfb, 0xfb, 0x3a,
2686838eb243Salnsn 0x29, 0x04, 0x0e, 0xd5, 0x0f, 0xaf, 0xfd, 0xbb,
2687838eb243Salnsn 0x18, 0xae, 0xce, 0x7c, 0x5c, 0x44, 0x69, 0x32,
2688838eb243Salnsn 0x60, 0xaa, 0xb3, 0x86, 0xc0, 0xa3, 0x7b, 0x11,
2689838eb243Salnsn 0xb1, 0x14, 0xf1, 0xc4, 0x15, 0xae, 0xbb, 0x65,
2690838eb243Salnsn 0x3b, 0xe4, 0x68, 0x17, 0x94, 0x28, 0xd4, 0x3a,
2691838eb243Salnsn 0x4d, 0x8b, 0xc3, 0xec, 0x38, 0x81, 0x3e, 0xca,
2692838eb243Salnsn 0x30, 0xa1, 0x3c, 0xf1, 0xbb, 0x18, 0xd5, 0x24,
2693838eb243Salnsn 0xf1, 0x99, 0x2d, 0x44, 0xd8, 0xb1, 0xa4, 0x2e,
2694838eb243Salnsn 0xa3, 0x0b, 0x22, 0xe6, 0xc9, 0x5b, 0x19, 0x9d,
2695838eb243Salnsn 0x8d, 0x18, 0x2f, 0x88, 0x40, 0xb0, 0x9d, 0x05,
2696838eb243Salnsn 0x95, 0x85, 0xc3, 0x1a, 0xd6, 0x91, 0xfa, 0x06,
2697838eb243Salnsn 0x19, 0xff, 0x03, 0x8a, 0xca, 0x2c, 0x39, 0xa9,
2698838eb243Salnsn 0x43, 0x42, 0x11, 0x57, 0x36, 0x17, 0x17, 0xc4,
2699838eb243Salnsn 0x9d, 0x32, 0x20, 0x28, 0xa7, 0x46, 0x48, 0x11,
2700838eb243Salnsn 0x3b, 0xd8, 0xc9, 0xd7, 0xec, 0x77, 0xcf, 0x3c,
2701838eb243Salnsn 0x89, 0xc1, 0xec, 0x87, 0x18, 0xce, 0xff, 0x85,
2702838eb243Salnsn 0x16, 0xd9, 0x6b, 0x34, 0xc3, 0xc6, 0x14, 0xf1,
2703838eb243Salnsn 0x06, 0x99, 0xc9, 0xab, 0xc4, 0xed, 0x04, 0x11,
2704838eb243Salnsn 0x50, 0x62, 0x23, 0xbe, 0xa1, 0x6a, 0xf3, 0x5c,
2705838eb243Salnsn 0x88, 0x3a, 0xcc, 0xdb, 0xe1, 0x10, 0x4e, 0xef,
2706838eb243Salnsn 0x0c, 0xfd, 0xb5, 0x4e, 0x12, 0xfb, 0x23, 0x0a,
2707838eb243Salnsn };
2708838eb243Salnsn
2709838eb243Salnsn static const uint8_t aes_xts_256_vec9_ctxt[SECSIZE] = {
2710838eb243Salnsn 0x32, 0x60, 0xae, 0x8d, 0xad, 0x1f, 0x4a, 0x32,
2711838eb243Salnsn 0xc5, 0xca, 0xfe, 0x3a, 0xb0, 0xeb, 0x95, 0x54,
2712838eb243Salnsn 0x9d, 0x46, 0x1a, 0x67, 0xce, 0xb9, 0xe5, 0xaa,
2713838eb243Salnsn 0x2d, 0x3a, 0xfb, 0x62, 0xde, 0xce, 0x05, 0x53,
2714838eb243Salnsn 0x19, 0x3b, 0xa5, 0x0c, 0x75, 0xbe, 0x25, 0x1e,
2715838eb243Salnsn 0x08, 0xd1, 0xd0, 0x8f, 0x10, 0x88, 0x57, 0x6c,
2716838eb243Salnsn 0x7e, 0xfd, 0xfa, 0xaf, 0x3f, 0x45, 0x95, 0x59,
2717838eb243Salnsn 0x57, 0x1e, 0x12, 0x51, 0x17, 0x53, 0xb0, 0x7a,
2718838eb243Salnsn 0xf0, 0x73, 0xf3, 0x5d, 0xa0, 0x6a, 0xf0, 0xce,
2719838eb243Salnsn 0x0b, 0xbf, 0x6b, 0x8f, 0x5c, 0xcc, 0x5c, 0xea,
2720838eb243Salnsn 0x50, 0x0e, 0xc1, 0xb2, 0x11, 0xbd, 0x51, 0xf6,
2721838eb243Salnsn 0x3b, 0x60, 0x6b, 0xf6, 0x52, 0x87, 0x96, 0xca,
2722838eb243Salnsn 0x12, 0x17, 0x3b, 0xa3, 0x9b, 0x89, 0x35, 0xee,
2723838eb243Salnsn 0x44, 0xcc, 0xce, 0x64, 0x6f, 0x90, 0xa4, 0x5b,
2724838eb243Salnsn 0xf9, 0xcc, 0xc5, 0x67, 0xf0, 0xac, 0xe1, 0x3d,
2725838eb243Salnsn 0xc2, 0xd5, 0x3e, 0xbe, 0xed, 0xc8, 0x1f, 0x58,
2726838eb243Salnsn 0xb2, 0xe4, 0x11, 0x79, 0xdd, 0xdf, 0x0d, 0x5a,
2727838eb243Salnsn 0x5c, 0x42, 0xf5, 0xd8, 0x50, 0x6c, 0x1a, 0x5d,
2728838eb243Salnsn 0x2f, 0x8f, 0x59, 0xf3, 0xea, 0x87, 0x3c, 0xbc,
2729838eb243Salnsn 0xd0, 0xee, 0xc1, 0x9a, 0xcb, 0xf3, 0x25, 0x42,
2730838eb243Salnsn 0x3b, 0xd3, 0xdc, 0xb8, 0xc2, 0xb1, 0xbf, 0x1d,
2731838eb243Salnsn 0x1e, 0xae, 0xd0, 0xeb, 0xa7, 0xf0, 0x69, 0x8e,
2732838eb243Salnsn 0x43, 0x14, 0xfb, 0xeb, 0x2f, 0x15, 0x66, 0xd1,
2733838eb243Salnsn 0xb9, 0x25, 0x30, 0x08, 0xcb, 0xcc, 0xf4, 0x5a,
2734838eb243Salnsn 0x2b, 0x0d, 0x9c, 0x5c, 0x9c, 0x21, 0x47, 0x4f,
2735838eb243Salnsn 0x40, 0x76, 0xe0, 0x2b, 0xe2, 0x60, 0x50, 0xb9,
2736838eb243Salnsn 0x9d, 0xee, 0x4f, 0xd6, 0x8a, 0x4c, 0xf8, 0x90,
2737838eb243Salnsn 0xe4, 0x96, 0xe4, 0xfc, 0xae, 0x7b, 0x70, 0xf9,
2738838eb243Salnsn 0x4e, 0xa5, 0xa9, 0x06, 0x2d, 0xa0, 0xda, 0xeb,
2739838eb243Salnsn 0xa1, 0x99, 0x3d, 0x2c, 0xcd, 0x1d, 0xd3, 0xc2,
2740838eb243Salnsn 0x44, 0xb8, 0x42, 0x88, 0x01, 0x49, 0x5a, 0x58,
2741838eb243Salnsn 0xb2, 0x16, 0x54, 0x7e, 0x7e, 0x84, 0x7c, 0x46,
2742838eb243Salnsn 0xd1, 0xd7, 0x56, 0x37, 0x7b, 0x62, 0x42, 0xd2,
2743838eb243Salnsn 0xe5, 0xfb, 0x83, 0xbf, 0x75, 0x2b, 0x54, 0xe0,
2744838eb243Salnsn 0xdf, 0x71, 0xe8, 0x89, 0xf3, 0xa2, 0xbb, 0x0f,
2745838eb243Salnsn 0x4c, 0x10, 0x80, 0x5b, 0xf3, 0xc5, 0x90, 0x37,
2746838eb243Salnsn 0x6e, 0x3c, 0x24, 0xe2, 0x2f, 0xf5, 0x7f, 0x7f,
2747838eb243Salnsn 0xa9, 0x65, 0x57, 0x73, 0x75, 0x32, 0x5c, 0xea,
2748838eb243Salnsn 0x5d, 0x92, 0x0d, 0xb9, 0x4b, 0x9c, 0x33, 0x6b,
2749838eb243Salnsn 0x45, 0x5f, 0x6e, 0x89, 0x4c, 0x01, 0x86, 0x6f,
2750838eb243Salnsn 0xe9, 0xfb, 0xb8, 0xc8, 0xd3, 0xf7, 0x0a, 0x29,
2751838eb243Salnsn 0x57, 0x28, 0x5f, 0x6d, 0xfb, 0x5d, 0xcd, 0x8c,
2752838eb243Salnsn 0xbf, 0x54, 0x78, 0x2f, 0x8f, 0xe7, 0x76, 0x6d,
2753838eb243Salnsn 0x47, 0x23, 0x81, 0x99, 0x13, 0xac, 0x77, 0x34,
2754838eb243Salnsn 0x21, 0xe3, 0xa3, 0x10, 0x95, 0x86, 0x6b, 0xad,
2755838eb243Salnsn 0x22, 0xc8, 0x6a, 0x60, 0x36, 0xb2, 0x51, 0x8b,
2756838eb243Salnsn 0x20, 0x59, 0xb4, 0x22, 0x9d, 0x18, 0xc8, 0xc2,
2757838eb243Salnsn 0xcc, 0xbd, 0xf9, 0x06, 0xc6, 0xcc, 0x6e, 0x82,
2758838eb243Salnsn 0x46, 0x4e, 0xe5, 0x7b, 0xdd, 0xb0, 0xbe, 0xbc,
2759838eb243Salnsn 0xb1, 0xdc, 0x64, 0x53, 0x25, 0xbf, 0xb3, 0xe6,
2760838eb243Salnsn 0x65, 0xef, 0x72, 0x51, 0x08, 0x2c, 0x88, 0xeb,
2761838eb243Salnsn 0xb1, 0xcf, 0x20, 0x3b, 0xd7, 0x79, 0xfd, 0xd3,
2762838eb243Salnsn 0x86, 0x75, 0x71, 0x3c, 0x8d, 0xaa, 0xdd, 0x17,
2763838eb243Salnsn 0xe1, 0xca, 0xbe, 0xe4, 0x32, 0xb0, 0x97, 0x87,
2764838eb243Salnsn 0xb6, 0xdd, 0xf3, 0x30, 0x4e, 0x38, 0xb7, 0x31,
2765838eb243Salnsn 0xb4, 0x5d, 0xf5, 0xdf, 0x51, 0xb7, 0x8f, 0xcf,
2766838eb243Salnsn 0xb3, 0xd3, 0x24, 0x66, 0x02, 0x8d, 0x0b, 0xa3,
2767838eb243Salnsn 0x65, 0x55, 0xe7, 0xe1, 0x1a, 0xb0, 0xee, 0x06,
2768838eb243Salnsn 0x66, 0x06, 0x1d, 0x16, 0x45, 0xd9, 0x62, 0x44,
2769838eb243Salnsn 0x4b, 0xc4, 0x7a, 0x38, 0x18, 0x89, 0x30, 0xa8,
2770838eb243Salnsn 0x4b, 0x4d, 0x56, 0x13, 0x95, 0xc7, 0x3c, 0x08,
2771838eb243Salnsn 0x70, 0x21, 0x92, 0x7c, 0xa6, 0x38, 0xb7, 0xaf,
2772838eb243Salnsn 0xc8, 0xa8, 0x67, 0x9c, 0xcb, 0x84, 0xc2, 0x65,
2773838eb243Salnsn 0x55, 0x44, 0x0e, 0xc7, 0xf1, 0x04, 0x45, 0xcd,
2774838eb243Salnsn };
2775838eb243Salnsn
2776838eb243Salnsn const struct testvec aes_xts_256_vectors[] = {
2777838eb243Salnsn {
2778838eb243Salnsn .blkno = 0,
2779838eb243Salnsn .ptxt = aes_xts_256_vec4_ptxt,
2780838eb243Salnsn .ctxt = aes_xts_256_vec4_ctxt,
2781838eb243Salnsn },
2782838eb243Salnsn {
2783838eb243Salnsn .blkno = 1,
2784838eb243Salnsn .ptxt = aes_xts_256_vec5_ptxt,
2785838eb243Salnsn .ctxt = aes_xts_256_vec5_ctxt,
2786838eb243Salnsn },
2787838eb243Salnsn {
2788838eb243Salnsn .blkno = 2,
2789838eb243Salnsn .ptxt = aes_xts_256_vec6_ptxt,
2790838eb243Salnsn .ctxt = aes_xts_256_vec6_ctxt,
2791838eb243Salnsn },
2792838eb243Salnsn {
2793838eb243Salnsn .blkno = 0xfd,
2794838eb243Salnsn .ptxt = aes_xts_256_vec7_ptxt,
2795838eb243Salnsn .ctxt = aes_xts_256_vec7_ctxt,
2796838eb243Salnsn },
2797838eb243Salnsn {
2798838eb243Salnsn .blkno = 0xfe,
2799838eb243Salnsn .ptxt = aes_xts_256_vec8_ptxt,
2800838eb243Salnsn .ctxt = aes_xts_256_vec8_ctxt,
2801838eb243Salnsn },
2802838eb243Salnsn {
2803838eb243Salnsn .blkno = 0xff,
2804838eb243Salnsn .ptxt = aes_xts_256_vec9_ptxt,
2805838eb243Salnsn .ctxt = aes_xts_256_vec9_ctxt,
2806838eb243Salnsn },
2807838eb243Salnsn };
2808838eb243Salnsn
2809838eb243Salnsn /*
2810838eb243Salnsn * Vector 10 from IEEE 1619/D16, blkno 0xff.
2811838eb243Salnsn */
2812838eb243Salnsn static const uint8_t aes_xts_512_vec10_ptxt[SECSIZE] = {
2813838eb243Salnsn 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
2814838eb243Salnsn 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
2815838eb243Salnsn 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
2816838eb243Salnsn 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f,
2817838eb243Salnsn 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27,
2818838eb243Salnsn 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f,
2819838eb243Salnsn 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37,
2820838eb243Salnsn 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
2821838eb243Salnsn 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47,
2822838eb243Salnsn 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f,
2823838eb243Salnsn 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57,
2824838eb243Salnsn 0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f,
2825838eb243Salnsn 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67,
2826838eb243Salnsn 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f,
2827838eb243Salnsn 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77,
2828838eb243Salnsn 0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f,
2829838eb243Salnsn 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
2830838eb243Salnsn 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
2831838eb243Salnsn 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
2832838eb243Salnsn 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f,
2833838eb243Salnsn 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
2834838eb243Salnsn 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
2835838eb243Salnsn 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
2836838eb243Salnsn 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
2837838eb243Salnsn 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
2838838eb243Salnsn 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
2839838eb243Salnsn 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
2840838eb243Salnsn 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
2841838eb243Salnsn 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
2842838eb243Salnsn 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
2843838eb243Salnsn 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
2844838eb243Salnsn 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff,
2845838eb243Salnsn 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
2846838eb243Salnsn 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
2847838eb243Salnsn 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
2848838eb243Salnsn 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f,
2849838eb243Salnsn 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27,
2850838eb243Salnsn 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f,
2851838eb243Salnsn 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37,
2852838eb243Salnsn 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
2853838eb243Salnsn 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47,
2854838eb243Salnsn 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f,
2855838eb243Salnsn 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57,
2856838eb243Salnsn 0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f,
2857838eb243Salnsn 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67,
2858838eb243Salnsn 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f,
2859838eb243Salnsn 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77,
2860838eb243Salnsn 0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f,
2861838eb243Salnsn 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
2862838eb243Salnsn 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
2863838eb243Salnsn 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
2864838eb243Salnsn 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f,
2865838eb243Salnsn 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
2866838eb243Salnsn 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
2867838eb243Salnsn 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
2868838eb243Salnsn 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
2869838eb243Salnsn 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
2870838eb243Salnsn 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
2871838eb243Salnsn 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
2872838eb243Salnsn 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
2873838eb243Salnsn 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
2874838eb243Salnsn 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
2875838eb243Salnsn 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
2876838eb243Salnsn 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff,
2877838eb243Salnsn };
2878838eb243Salnsn
2879838eb243Salnsn static const uint8_t aes_xts_512_vec10_ctxt[SECSIZE] = {
2880838eb243Salnsn 0x1c, 0x3b, 0x3a, 0x10, 0x2f, 0x77, 0x03, 0x86,
2881838eb243Salnsn 0xe4, 0x83, 0x6c, 0x99, 0xe3, 0x70, 0xcf, 0x9b,
2882838eb243Salnsn 0xea, 0x00, 0x80, 0x3f, 0x5e, 0x48, 0x23, 0x57,
2883838eb243Salnsn 0xa4, 0xae, 0x12, 0xd4, 0x14, 0xa3, 0xe6, 0x3b,
2884838eb243Salnsn 0x5d, 0x31, 0xe2, 0x76, 0xf8, 0xfe, 0x4a, 0x8d,
2885838eb243Salnsn 0x66, 0xb3, 0x17, 0xf9, 0xac, 0x68, 0x3f, 0x44,
2886838eb243Salnsn 0x68, 0x0a, 0x86, 0xac, 0x35, 0xad, 0xfc, 0x33,
2887838eb243Salnsn 0x45, 0xbe, 0xfe, 0xcb, 0x4b, 0xb1, 0x88, 0xfd,
2888838eb243Salnsn 0x57, 0x76, 0x92, 0x6c, 0x49, 0xa3, 0x09, 0x5e,
2889838eb243Salnsn 0xb1, 0x08, 0xfd, 0x10, 0x98, 0xba, 0xec, 0x70,
2890838eb243Salnsn 0xaa, 0xa6, 0x69, 0x99, 0xa7, 0x2a, 0x82, 0xf2,
2891838eb243Salnsn 0x7d, 0x84, 0x8b, 0x21, 0xd4, 0xa7, 0x41, 0xb0,
2892838eb243Salnsn 0xc5, 0xcd, 0x4d, 0x5f, 0xff, 0x9d, 0xac, 0x89,
2893838eb243Salnsn 0xae, 0xba, 0x12, 0x29, 0x61, 0xd0, 0x3a, 0x75,
2894838eb243Salnsn 0x71, 0x23, 0xe9, 0x87, 0x0f, 0x8a, 0xcf, 0x10,
2895838eb243Salnsn 0x00, 0x02, 0x08, 0x87, 0x89, 0x14, 0x29, 0xca,
2896838eb243Salnsn 0x2a, 0x3e, 0x7a, 0x7d, 0x7d, 0xf7, 0xb1, 0x03,
2897838eb243Salnsn 0x55, 0x16, 0x5c, 0x8b, 0x9a, 0x6d, 0x0a, 0x7d,
2898838eb243Salnsn 0xe8, 0xb0, 0x62, 0xc4, 0x50, 0x0d, 0xc4, 0xcd,
2899838eb243Salnsn 0x12, 0x0c, 0x0f, 0x74, 0x18, 0xda, 0xe3, 0xd0,
2900838eb243Salnsn 0xb5, 0x78, 0x1c, 0x34, 0x80, 0x3f, 0xa7, 0x54,
2901838eb243Salnsn 0x21, 0xc7, 0x90, 0xdf, 0xe1, 0xde, 0x18, 0x34,
2902838eb243Salnsn 0xf2, 0x80, 0xd7, 0x66, 0x7b, 0x32, 0x7f, 0x6c,
2903838eb243Salnsn 0x8c, 0xd7, 0x55, 0x7e, 0x12, 0xac, 0x3a, 0x0f,
2904838eb243Salnsn 0x93, 0xec, 0x05, 0xc5, 0x2e, 0x04, 0x93, 0xef,
2905838eb243Salnsn 0x31, 0xa1, 0x2d, 0x3d, 0x92, 0x60, 0xf7, 0x9a,
2906838eb243Salnsn 0x28, 0x9d, 0x6a, 0x37, 0x9b, 0xc7, 0x0c, 0x50,
2907838eb243Salnsn 0x84, 0x14, 0x73, 0xd1, 0xa8, 0xcc, 0x81, 0xec,
2908838eb243Salnsn 0x58, 0x3e, 0x96, 0x45, 0xe0, 0x7b, 0x8d, 0x96,
2909838eb243Salnsn 0x70, 0x65, 0x5b, 0xa5, 0xbb, 0xcf, 0xec, 0xc6,
2910838eb243Salnsn 0xdc, 0x39, 0x66, 0x38, 0x0a, 0xd8, 0xfe, 0xcb,
2911838eb243Salnsn 0x17, 0xb6, 0xba, 0x02, 0x46, 0x9a, 0x02, 0x0a,
2912838eb243Salnsn 0x84, 0xe1, 0x8e, 0x8f, 0x84, 0x25, 0x20, 0x70,
2913838eb243Salnsn 0xc1, 0x3e, 0x9f, 0x1f, 0x28, 0x9b, 0xe5, 0x4f,
2914838eb243Salnsn 0xbc, 0x48, 0x14, 0x57, 0x77, 0x8f, 0x61, 0x60,
2915838eb243Salnsn 0x15, 0xe1, 0x32, 0x7a, 0x02, 0xb1, 0x40, 0xf1,
2916838eb243Salnsn 0x50, 0x5e, 0xb3, 0x09, 0x32, 0x6d, 0x68, 0x37,
2917838eb243Salnsn 0x8f, 0x83, 0x74, 0x59, 0x5c, 0x84, 0x9d, 0x84,
2918838eb243Salnsn 0xf4, 0xc3, 0x33, 0xec, 0x44, 0x23, 0x88, 0x51,
2919838eb243Salnsn 0x43, 0xcb, 0x47, 0xbd, 0x71, 0xc5, 0xed, 0xae,
2920838eb243Salnsn 0x9b, 0xe6, 0x9a, 0x2f, 0xfe, 0xce, 0xb1, 0xbe,
2921838eb243Salnsn 0xc9, 0xde, 0x24, 0x4f, 0xbe, 0x15, 0x99, 0x2b,
2922838eb243Salnsn 0x11, 0xb7, 0x7c, 0x04, 0x0f, 0x12, 0xbd, 0x8f,
2923838eb243Salnsn 0x6a, 0x97, 0x5a, 0x44, 0xa0, 0xf9, 0x0c, 0x29,
2924838eb243Salnsn 0xa9, 0xab, 0xc3, 0xd4, 0xd8, 0x93, 0x92, 0x72,
2925838eb243Salnsn 0x84, 0xc5, 0x87, 0x54, 0xcc, 0xe2, 0x94, 0x52,
2926838eb243Salnsn 0x9f, 0x86, 0x14, 0xdc, 0xd2, 0xab, 0xa9, 0x91,
2927838eb243Salnsn 0x92, 0x5f, 0xed, 0xc4, 0xae, 0x74, 0xff, 0xac,
2928838eb243Salnsn 0x6e, 0x33, 0x3b, 0x93, 0xeb, 0x4a, 0xff, 0x04,
2929838eb243Salnsn 0x79, 0xda, 0x9a, 0x41, 0x0e, 0x44, 0x50, 0xe0,
2930838eb243Salnsn 0xdd, 0x7a, 0xe4, 0xc6, 0xe2, 0x91, 0x09, 0x00,
2931838eb243Salnsn 0x57, 0x5d, 0xa4, 0x01, 0xfc, 0x07, 0x05, 0x9f,
2932838eb243Salnsn 0x64, 0x5e, 0x8b, 0x7e, 0x9b, 0xfd, 0xef, 0x33,
2933838eb243Salnsn 0x94, 0x30, 0x54, 0xff, 0x84, 0x01, 0x14, 0x93,
2934838eb243Salnsn 0xc2, 0x7b, 0x34, 0x29, 0xea, 0xed, 0xb4, 0xed,
2935838eb243Salnsn 0x53, 0x76, 0x44, 0x1a, 0x77, 0xed, 0x43, 0x85,
2936838eb243Salnsn 0x1a, 0xd7, 0x7f, 0x16, 0xf5, 0x41, 0xdf, 0xd2,
2937838eb243Salnsn 0x69, 0xd5, 0x0d, 0x6a, 0x5f, 0x14, 0xfb, 0x0a,
2938838eb243Salnsn 0xab, 0x1c, 0xbb, 0x4c, 0x15, 0x50, 0xbe, 0x97,
2939838eb243Salnsn 0xf7, 0xab, 0x40, 0x66, 0x19, 0x3c, 0x4c, 0xaa,
2940838eb243Salnsn 0x77, 0x3d, 0xad, 0x38, 0x01, 0x4b, 0xd2, 0x09,
2941838eb243Salnsn 0x2f, 0xa7, 0x55, 0xc8, 0x24, 0xbb, 0x5e, 0x54,
2942838eb243Salnsn 0xc4, 0xf3, 0x6f, 0xfd, 0xa9, 0xfc, 0xea, 0x70,
2943838eb243Salnsn 0xb9, 0xc6, 0xe6, 0x93, 0xe1, 0x48, 0xc1, 0x51,
2944838eb243Salnsn };
2945838eb243Salnsn
2946838eb243Salnsn /*
2947838eb243Salnsn * Vector 11 from IEEE 1619/D16, blkno 0xffff.
2948838eb243Salnsn */
2949838eb243Salnsn static const uint8_t aes_xts_512_vec11_ptxt[SECSIZE] = {
2950838eb243Salnsn 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
2951838eb243Salnsn 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
2952838eb243Salnsn 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
2953838eb243Salnsn 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f,
2954838eb243Salnsn 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27,
2955838eb243Salnsn 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f,
2956838eb243Salnsn 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37,
2957838eb243Salnsn 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
2958838eb243Salnsn 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47,
2959838eb243Salnsn 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f,
2960838eb243Salnsn 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57,
2961838eb243Salnsn 0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f,
2962838eb243Salnsn 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67,
2963838eb243Salnsn 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f,
2964838eb243Salnsn 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77,
2965838eb243Salnsn 0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f,
2966838eb243Salnsn 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
2967838eb243Salnsn 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
2968838eb243Salnsn 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
2969838eb243Salnsn 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f,
2970838eb243Salnsn 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
2971838eb243Salnsn 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
2972838eb243Salnsn 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
2973838eb243Salnsn 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
2974838eb243Salnsn 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
2975838eb243Salnsn 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
2976838eb243Salnsn 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
2977838eb243Salnsn 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
2978838eb243Salnsn 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
2979838eb243Salnsn 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
2980838eb243Salnsn 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
2981838eb243Salnsn 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff,
2982838eb243Salnsn 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
2983838eb243Salnsn 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
2984838eb243Salnsn 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
2985838eb243Salnsn 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f,
2986838eb243Salnsn 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27,
2987838eb243Salnsn 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f,
2988838eb243Salnsn 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37,
2989838eb243Salnsn 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
2990838eb243Salnsn 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47,
2991838eb243Salnsn 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f,
2992838eb243Salnsn 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57,
2993838eb243Salnsn 0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f,
2994838eb243Salnsn 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67,
2995838eb243Salnsn 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f,
2996838eb243Salnsn 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77,
2997838eb243Salnsn 0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f,
2998838eb243Salnsn 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
2999838eb243Salnsn 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
3000838eb243Salnsn 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
3001838eb243Salnsn 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f,
3002838eb243Salnsn 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
3003838eb243Salnsn 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
3004838eb243Salnsn 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
3005838eb243Salnsn 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
3006838eb243Salnsn 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
3007838eb243Salnsn 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
3008838eb243Salnsn 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
3009838eb243Salnsn 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
3010838eb243Salnsn 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
3011838eb243Salnsn 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
3012838eb243Salnsn 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
3013838eb243Salnsn 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff,
3014838eb243Salnsn };
3015838eb243Salnsn
3016838eb243Salnsn static const uint8_t aes_xts_512_vec11_ctxt[SECSIZE] = {
3017838eb243Salnsn 0x77, 0xa3, 0x12, 0x51, 0x61, 0x8a, 0x15, 0xe6,
3018838eb243Salnsn 0xb9, 0x2d, 0x1d, 0x66, 0xdf, 0xfe, 0x7b, 0x50,
3019838eb243Salnsn 0xb5, 0x0b, 0xad, 0x55, 0x23, 0x05, 0xba, 0x02,
3020838eb243Salnsn 0x17, 0xa6, 0x10, 0x68, 0x8e, 0xff, 0x7e, 0x11,
3021838eb243Salnsn 0xe1, 0xd0, 0x22, 0x54, 0x38, 0xe0, 0x93, 0x24,
3022838eb243Salnsn 0x2d, 0x6d, 0xb2, 0x74, 0xfd, 0xe8, 0x01, 0xd4,
3023838eb243Salnsn 0xca, 0xe0, 0x6f, 0x20, 0x92, 0xc7, 0x28, 0xb2,
3024838eb243Salnsn 0x47, 0x85, 0x59, 0xdf, 0x58, 0xe8, 0x37, 0xc2,
3025838eb243Salnsn 0x46, 0x9e, 0xe4, 0xa4, 0xfa, 0x79, 0x4e, 0x4b,
3026838eb243Salnsn 0xbc, 0x7f, 0x39, 0xbc, 0x02, 0x6e, 0x3c, 0xb7,
3027838eb243Salnsn 0x2c, 0x33, 0xb0, 0x88, 0x8f, 0x25, 0xb4, 0xac,
3028838eb243Salnsn 0xf5, 0x6a, 0x2a, 0x98, 0x04, 0xf1, 0xce, 0x6d,
3029838eb243Salnsn 0x3d, 0x6e, 0x1d, 0xc6, 0xca, 0x18, 0x1d, 0x4b,
3030838eb243Salnsn 0x54, 0x61, 0x79, 0xd5, 0x55, 0x44, 0xaa, 0x77,
3031838eb243Salnsn 0x60, 0xc4, 0x0d, 0x06, 0x74, 0x15, 0x39, 0xc7,
3032838eb243Salnsn 0xe3, 0xcd, 0x9d, 0x2f, 0x66, 0x50, 0xb2, 0x01,
3033838eb243Salnsn 0x3f, 0xd0, 0xee, 0xb8, 0xc2, 0xb8, 0xe3, 0xd8,
3034838eb243Salnsn 0xd2, 0x40, 0xcc, 0xae, 0x2d, 0x4c, 0x98, 0x32,
3035838eb243Salnsn 0x0a, 0x74, 0x42, 0xe1, 0xc8, 0xd7, 0x5a, 0x42,
3036838eb243Salnsn 0xd6, 0xe6, 0xcf, 0xa4, 0xc2, 0xec, 0xa1, 0x79,
3037838eb243Salnsn 0x8d, 0x15, 0x8c, 0x7a, 0xec, 0xdf, 0x82, 0x49,
3038838eb243Salnsn 0x0f, 0x24, 0xbb, 0x9b, 0x38, 0xe1, 0x08, 0xbc,
3039838eb243Salnsn 0xda, 0x12, 0xc3, 0xfa, 0xf9, 0xa2, 0x11, 0x41,
3040838eb243Salnsn 0xc3, 0x61, 0x3b, 0x58, 0x36, 0x7f, 0x92, 0x2a,
3041838eb243Salnsn 0xaa, 0x26, 0xcd, 0x22, 0xf2, 0x3d, 0x70, 0x8d,
3042838eb243Salnsn 0xae, 0x69, 0x9a, 0xd7, 0xcb, 0x40, 0xa8, 0xad,
3043838eb243Salnsn 0x0b, 0x6e, 0x27, 0x84, 0x97, 0x3d, 0xcb, 0x60,
3044838eb243Salnsn 0x56, 0x84, 0xc0, 0x8b, 0x8d, 0x69, 0x98, 0xc6,
3045838eb243Salnsn 0x9a, 0xac, 0x04, 0x99, 0x21, 0x87, 0x1e, 0xbb,
3046838eb243Salnsn 0x65, 0x30, 0x1a, 0x46, 0x19, 0xca, 0x80, 0xec,
3047838eb243Salnsn 0xb4, 0x85, 0xa3, 0x1d, 0x74, 0x42, 0x23, 0xce,
3048838eb243Salnsn 0x8d, 0xdc, 0x23, 0x94, 0x82, 0x8d, 0x6a, 0x80,
3049838eb243Salnsn 0x47, 0x0c, 0x09, 0x2f, 0x5b, 0xa4, 0x13, 0xc3,
3050838eb243Salnsn 0x37, 0x8f, 0xa6, 0x05, 0x42, 0x55, 0xc6, 0xf9,
3051838eb243Salnsn 0xdf, 0x44, 0x95, 0x86, 0x2b, 0xbb, 0x32, 0x87,
3052838eb243Salnsn 0x68, 0x1f, 0x93, 0x1b, 0x68, 0x7c, 0x88, 0x8a,
3053838eb243Salnsn 0xbf, 0x84, 0x4d, 0xfc, 0x8f, 0xc2, 0x83, 0x31,
3054838eb243Salnsn 0xe5, 0x79, 0x92, 0x8c, 0xd1, 0x2b, 0xd2, 0x39,
3055838eb243Salnsn 0x0a, 0xe1, 0x23, 0xcf, 0x03, 0x81, 0x8d, 0x14,
3056838eb243Salnsn 0xde, 0xdd, 0xe5, 0xc0, 0xc2, 0x4c, 0x8a, 0xb0,
3057838eb243Salnsn 0x18, 0xbf, 0xca, 0x75, 0xca, 0x09, 0x6f, 0x2d,
3058838eb243Salnsn 0x53, 0x1f, 0x3d, 0x16, 0x19, 0xe7, 0x85, 0xf1,
3059838eb243Salnsn 0xad, 0xa4, 0x37, 0xca, 0xb9, 0x2e, 0x98, 0x05,
3060838eb243Salnsn 0x58, 0xb3, 0xdc, 0xe1, 0x47, 0x4a, 0xfb, 0x75,
3061838eb243Salnsn 0xbf, 0xed, 0xbf, 0x8f, 0xf5, 0x4c, 0xb2, 0x61,
3062838eb243Salnsn 0x8e, 0x02, 0x44, 0xc9, 0xac, 0x0d, 0x3c, 0x66,
3063838eb243Salnsn 0xfb, 0x51, 0x59, 0x8c, 0xd2, 0xdb, 0x11, 0xf9,
3064838eb243Salnsn 0xbe, 0x39, 0x79, 0x1a, 0xbe, 0x44, 0x7c, 0x63,
3065838eb243Salnsn 0x09, 0x4f, 0x7c, 0x45, 0x3b, 0x7f, 0xf8, 0x7c,
3066838eb243Salnsn 0xb5, 0xbb, 0x36, 0xb7, 0xc7, 0x9e, 0xfb, 0x08,
3067838eb243Salnsn 0x72, 0xd1, 0x70, 0x58, 0xb8, 0x3b, 0x15, 0xab,
3068838eb243Salnsn 0x08, 0x66, 0xad, 0x8a, 0x58, 0x65, 0x6c, 0x5a,
3069838eb243Salnsn 0x7e, 0x20, 0xdb, 0xdf, 0x30, 0x8b, 0x24, 0x61,
3070838eb243Salnsn 0xd9, 0x7c, 0x0e, 0xc0, 0x02, 0x4a, 0x27, 0x15,
3071838eb243Salnsn 0x05, 0x52, 0x49, 0xcf, 0x3b, 0x47, 0x8d, 0xdd,
3072838eb243Salnsn 0x47, 0x40, 0xde, 0x65, 0x4f, 0x75, 0xca, 0x68,
3073838eb243Salnsn 0x6e, 0x0d, 0x73, 0x45, 0xc6, 0x9e, 0xd5, 0x0c,
3074838eb243Salnsn 0xdc, 0x2a, 0x8b, 0x33, 0x2b, 0x1f, 0x88, 0x24,
3075838eb243Salnsn 0x10, 0x8a, 0xc9, 0x37, 0xeb, 0x05, 0x05, 0x85,
3076838eb243Salnsn 0x60, 0x8e, 0xe7, 0x34, 0x09, 0x7f, 0xc0, 0x90,
3077838eb243Salnsn 0x54, 0xfb, 0xff, 0x89, 0xee, 0xae, 0xea, 0x79,
3078838eb243Salnsn 0x1f, 0x4a, 0x7a, 0xb1, 0xf9, 0x86, 0x82, 0x94,
3079838eb243Salnsn 0xa4, 0xf9, 0xe2, 0x7b, 0x42, 0xaf, 0x81, 0x00,
3080838eb243Salnsn 0xcb, 0x9d, 0x59, 0xce, 0xf9, 0x64, 0x58, 0x03,
3081838eb243Salnsn };
3082838eb243Salnsn
3083838eb243Salnsn const struct testvec aes_xts_512_vectors[] = {
3084838eb243Salnsn {
3085838eb243Salnsn .blkno = 0xff,
3086838eb243Salnsn .ptxt = aes_xts_512_vec10_ptxt,
3087838eb243Salnsn .ctxt = aes_xts_512_vec10_ctxt,
3088838eb243Salnsn },
3089838eb243Salnsn {
3090838eb243Salnsn .blkno = 0xffff,
3091838eb243Salnsn .ptxt = aes_xts_512_vec11_ptxt,
3092838eb243Salnsn .ctxt = aes_xts_512_vec11_ctxt,
3093838eb243Salnsn },
3094838eb243Salnsn };
3095838eb243Salnsn
3096838eb243Salnsn static int
open_disk(const char * devpath,const char * imgpath,size_t size)3097838eb243Salnsn open_disk(const char *devpath, const char *imgpath, size_t size)
3098838eb243Salnsn {
3099838eb243Salnsn int fd;
3100838eb243Salnsn
310154ef2b19Salnsn fd = open(imgpath, O_CREAT | O_RDWR | O_TRUNC, 0600);
3102838eb243Salnsn if (fd < 0)
3103838eb243Salnsn return -1;
3104838eb243Salnsn
3105838eb243Salnsn if (ftruncate(fd, size) < 0)
3106838eb243Salnsn goto fail;
3107838eb243Salnsn
3108838eb243Salnsn if (rump_pub_etfs_register_withsize(devpath,
3109838eb243Salnsn imgpath, RUMP_ETFS_BLK, 0, size) < 0) {
3110838eb243Salnsn goto fail;
3111838eb243Salnsn }
3112838eb243Salnsn
3113838eb243Salnsn unlink(imgpath);
3114838eb243Salnsn return fd;
3115838eb243Salnsn fail:
3116838eb243Salnsn close(fd);
3117838eb243Salnsn unlink(imgpath);
3118838eb243Salnsn return -1;
3119838eb243Salnsn }
3120838eb243Salnsn
3121838eb243Salnsn static int
open_cgd(int devno)3122838eb243Salnsn open_cgd(int devno)
3123838eb243Salnsn {
3124838eb243Salnsn char devpath[32];
3125838eb243Salnsn
3126838eb243Salnsn sprintf(devpath, "/dev/rcgd%d%c", devno, getrawpartition() + 'a');
3127838eb243Salnsn
3128838eb243Salnsn return rump_sys_open(devpath, O_RDWR, 0);
3129838eb243Salnsn }
3130838eb243Salnsn
3131838eb243Salnsn static int
configure_cgd(int fd,const char * dkpath,const char * alg,const char * ivmethod,const char * key,size_t keylen)3132838eb243Salnsn configure_cgd(int fd, const char *dkpath, const char *alg,
3133838eb243Salnsn const char *ivmethod, const char *key, size_t keylen)
3134838eb243Salnsn {
3135838eb243Salnsn struct cgd_ioctl ci;
3136838eb243Salnsn
3137838eb243Salnsn memset(&ci, 0, sizeof(ci));
3138838eb243Salnsn ci.ci_disk = dkpath;
3139838eb243Salnsn ci.ci_alg = alg;
3140838eb243Salnsn ci.ci_ivmethod = ivmethod;
3141838eb243Salnsn ci.ci_keylen = 8 * keylen - 8; /* Exclude the NUL terminator. */
3142838eb243Salnsn ci.ci_key = key;
3143838eb243Salnsn ci.ci_blocksize = 128;
3144838eb243Salnsn
3145838eb243Salnsn return rump_sys_ioctl(fd, CGDIOCSET, &ci);
3146838eb243Salnsn }
3147838eb243Salnsn
3148838eb243Salnsn static int
unconfigure_cgd(int fd)3149838eb243Salnsn unconfigure_cgd(int fd)
3150838eb243Salnsn {
3151838eb243Salnsn struct cgd_ioctl ci;
3152838eb243Salnsn
3153838eb243Salnsn return rump_sys_ioctl(fd, CGDIOCCLR, &ci);
3154838eb243Salnsn }
3155838eb243Salnsn
3156838eb243Salnsn static int
write_testvec(int cgdfd,const struct testvec * tv)3157838eb243Salnsn write_testvec(int cgdfd, const struct testvec *tv)
3158838eb243Salnsn {
3159e771598cSalnsn ssize_t written;
3160838eb243Salnsn
3161838eb243Salnsn if (rump_sys_lseek(cgdfd, tv->blkno * SECSIZE, SEEK_SET) < 0)
3162838eb243Salnsn return -1;
3163838eb243Salnsn
3164e771598cSalnsn written = rump_sys_write(cgdfd, tv->ptxt, SECSIZE);
3165e771598cSalnsn if (written < 0)
3166838eb243Salnsn return -1;
3167e771598cSalnsn if (written != SECSIZE) {
3168e771598cSalnsn errno = EDOM; /* Something distinct. */
3169e771598cSalnsn return -1;
3170e771598cSalnsn }
3171838eb243Salnsn
3172838eb243Salnsn return 0;
3173838eb243Salnsn }
3174838eb243Salnsn
3175838eb243Salnsn static int
read_testvec(int cgdfd,const struct testvec * tv)3176838eb243Salnsn read_testvec(int cgdfd, const struct testvec *tv)
3177838eb243Salnsn {
3178838eb243Salnsn char *buf;
3179838eb243Salnsn int res = -1;
3180838eb243Salnsn
3181838eb243Salnsn buf = malloc(SECSIZE);
3182838eb243Salnsn if (buf == NULL)
3183838eb243Salnsn return -1;
3184838eb243Salnsn
3185838eb243Salnsn if (rump_sys_lseek(cgdfd, tv->blkno * SECSIZE, SEEK_SET) < 0)
3186838eb243Salnsn goto fail;
3187838eb243Salnsn
3188838eb243Salnsn if (rump_sys_read(cgdfd, buf, SECSIZE) != SECSIZE)
3189838eb243Salnsn goto fail;
3190838eb243Salnsn
3191838eb243Salnsn res = memcmp(buf, tv->ptxt, SECSIZE);
3192838eb243Salnsn fail:
3193838eb243Salnsn free(buf);
3194838eb243Salnsn return res;
3195838eb243Salnsn }
3196838eb243Salnsn
3197838eb243Salnsn static int
check_testvec(int dkfd,const struct testvec * tv)3198838eb243Salnsn check_testvec(int dkfd, const struct testvec *tv)
3199838eb243Salnsn {
3200838eb243Salnsn char *buf;
3201838eb243Salnsn int res = -1;
3202838eb243Salnsn
3203838eb243Salnsn buf = malloc(SECSIZE);
3204838eb243Salnsn if (buf == NULL)
3205838eb243Salnsn return -1;
3206838eb243Salnsn
3207838eb243Salnsn if (lseek(dkfd, tv->blkno * SECSIZE, SEEK_SET) < 0)
3208838eb243Salnsn goto fail;
3209838eb243Salnsn
3210838eb243Salnsn if (read(dkfd, buf, SECSIZE) != SECSIZE)
3211838eb243Salnsn goto fail;
3212838eb243Salnsn
3213838eb243Salnsn res = memcmp(buf, tv->ctxt, SECSIZE);
3214838eb243Salnsn fail:
3215838eb243Salnsn free(buf);
3216838eb243Salnsn return res;
3217838eb243Salnsn }
3218838eb243Salnsn
3219911f4379Salnsn ATF_TC(cgd_aes_cbc_128_encblkno1);
ATF_TC_HEAD(cgd_aes_cbc_128_encblkno1,tc)3220911f4379Salnsn ATF_TC_HEAD(cgd_aes_cbc_128_encblkno1, tc)
3221911f4379Salnsn {
3222911f4379Salnsn atf_tc_set_md_var(tc, "descr",
3223911f4379Salnsn "Test aes-cbc with 128 bits key, ivmethod encblkno1");
3224911f4379Salnsn }
3225911f4379Salnsn
ATF_TC_BODY(cgd_aes_cbc_128_encblkno1,tc)3226911f4379Salnsn ATF_TC_BODY(cgd_aes_cbc_128_encblkno1, tc)
3227911f4379Salnsn {
3228911f4379Salnsn const char imgpath[] = "aes-cbc-128-encblkno1.img";
3229911f4379Salnsn const char *dkpath = "/dev/dk";
3230911f4379Salnsn const size_t dksize = 4 * SECSIZE; /* Last blkno is 3. */
3231911f4379Salnsn int dkfd, cgdfd;
3232911f4379Salnsn
3233911f4379Salnsn rump_init();
3234911f4379Salnsn
3235911f4379Salnsn RL(dkfd = open_disk(dkpath, imgpath, dksize));
3236911f4379Salnsn
3237911f4379Salnsn RL(cgdfd = open_cgd(0));
3238911f4379Salnsn RL(configure_cgd(cgdfd, dkpath, "aes-cbc", "encblkno1",
3239911f4379Salnsn aes_cbc_128_key, sizeof(aes_cbc_128_key)));
3240911f4379Salnsn
3241e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_cbc_128_1_vectors[0]), -1);
3242e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_cbc_128_1_vectors[1]), -1);
3243e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_cbc_128_1_vectors[2]), -1);
3244e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_cbc_128_1_vectors[3]), -1);
3245911f4379Salnsn
3246911f4379Salnsn RL(unconfigure_cgd(cgdfd));
3247911f4379Salnsn RL(configure_cgd(cgdfd, dkpath, "aes-cbc", "encblkno1",
3248911f4379Salnsn aes_cbc_128_key, sizeof(aes_cbc_128_key)));
3249911f4379Salnsn
3250911f4379Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_128_1_vectors[0]), 0);
3251911f4379Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_128_1_vectors[1]), 0);
3252911f4379Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_128_1_vectors[2]), 0);
3253911f4379Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_128_1_vectors[3]), 0);
3254911f4379Salnsn
3255911f4379Salnsn RL(unconfigure_cgd(cgdfd));
3256911f4379Salnsn RL(rump_sys_close(cgdfd));
3257911f4379Salnsn
3258911f4379Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_128_1_vectors[0]), 0);
3259911f4379Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_128_1_vectors[1]), 0);
3260911f4379Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_128_1_vectors[2]), 0);
3261911f4379Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_128_1_vectors[3]), 0);
3262911f4379Salnsn
3263911f4379Salnsn RL(close(dkfd));
3264911f4379Salnsn }
3265911f4379Salnsn
3266911f4379Salnsn ATF_TC(cgd_aes_cbc_128_encblkno8);
ATF_TC_HEAD(cgd_aes_cbc_128_encblkno8,tc)3267911f4379Salnsn ATF_TC_HEAD(cgd_aes_cbc_128_encblkno8, tc)
3268911f4379Salnsn {
3269911f4379Salnsn atf_tc_set_md_var(tc, "descr",
3270911f4379Salnsn "Test aes-cbc with 128 bits key, ivmethod encblkno8");
3271911f4379Salnsn }
3272911f4379Salnsn
ATF_TC_BODY(cgd_aes_cbc_128_encblkno8,tc)3273911f4379Salnsn ATF_TC_BODY(cgd_aes_cbc_128_encblkno8, tc)
3274911f4379Salnsn {
3275911f4379Salnsn const char imgpath[] = "aes-cbc-128-encblkno8.img";
3276911f4379Salnsn const char *dkpath = "/dev/dk";
3277911f4379Salnsn const size_t dksize = 4 * SECSIZE; /* Last blkno is 3. */
3278911f4379Salnsn int dkfd, cgdfd;
3279911f4379Salnsn
3280911f4379Salnsn rump_init();
3281911f4379Salnsn
3282911f4379Salnsn RL(dkfd = open_disk(dkpath, imgpath, dksize));
3283911f4379Salnsn
3284911f4379Salnsn RL(cgdfd = open_cgd(0));
3285911f4379Salnsn RL(configure_cgd(cgdfd, dkpath, "aes-cbc", "encblkno8",
3286911f4379Salnsn aes_cbc_128_key, sizeof(aes_cbc_128_key)));
3287911f4379Salnsn
3288e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_cbc_128_8_vectors[0]), -1);
3289e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_cbc_128_8_vectors[1]), -1);
3290e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_cbc_128_8_vectors[2]), -1);
3291e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_cbc_128_8_vectors[3]), -1);
3292911f4379Salnsn
3293911f4379Salnsn RL(unconfigure_cgd(cgdfd));
3294911f4379Salnsn RL(configure_cgd(cgdfd, dkpath, "aes-cbc", "encblkno8",
3295911f4379Salnsn aes_cbc_128_key, sizeof(aes_cbc_128_key)));
3296911f4379Salnsn
3297911f4379Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_128_8_vectors[0]), 0);
3298911f4379Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_128_8_vectors[1]), 0);
3299911f4379Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_128_8_vectors[2]), 0);
3300911f4379Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_128_8_vectors[3]), 0);
3301911f4379Salnsn
3302911f4379Salnsn RL(unconfigure_cgd(cgdfd));
3303911f4379Salnsn RL(rump_sys_close(cgdfd));
3304911f4379Salnsn
3305911f4379Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_128_8_vectors[0]), 0);
3306911f4379Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_128_8_vectors[1]), 0);
3307911f4379Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_128_8_vectors[2]), 0);
3308911f4379Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_128_8_vectors[3]), 0);
3309911f4379Salnsn
3310911f4379Salnsn RL(close(dkfd));
3311911f4379Salnsn }
3312911f4379Salnsn
3313911f4379Salnsn ATF_TC(cgd_aes_cbc_192_encblkno1);
ATF_TC_HEAD(cgd_aes_cbc_192_encblkno1,tc)3314911f4379Salnsn ATF_TC_HEAD(cgd_aes_cbc_192_encblkno1, tc)
3315911f4379Salnsn {
3316911f4379Salnsn atf_tc_set_md_var(tc, "descr",
3317911f4379Salnsn "Test aes-cbc with 192 bits key, ivmethod encblkno1");
3318911f4379Salnsn }
3319911f4379Salnsn
ATF_TC_BODY(cgd_aes_cbc_192_encblkno1,tc)3320911f4379Salnsn ATF_TC_BODY(cgd_aes_cbc_192_encblkno1, tc)
3321911f4379Salnsn {
3322911f4379Salnsn const char imgpath[] = "aes-cbc-192-encblkno1.img";
3323911f4379Salnsn const char *dkpath = "/dev/dk";
3324911f4379Salnsn const size_t dksize = 4 * SECSIZE; /* Last blkno is 3. */
3325911f4379Salnsn int dkfd, cgdfd;
3326911f4379Salnsn
3327911f4379Salnsn rump_init();
3328911f4379Salnsn
3329911f4379Salnsn RL(dkfd = open_disk(dkpath, imgpath, dksize));
3330911f4379Salnsn
3331911f4379Salnsn RL(cgdfd = open_cgd(0));
3332911f4379Salnsn RL(configure_cgd(cgdfd, dkpath, "aes-cbc", "encblkno1",
3333911f4379Salnsn aes_cbc_192_key, sizeof(aes_cbc_192_key)));
3334911f4379Salnsn
3335e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_cbc_192_1_vectors[0]), -1);
3336e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_cbc_192_1_vectors[1]), -1);
3337e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_cbc_192_1_vectors[2]), -1);
3338e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_cbc_192_1_vectors[3]), -1);
3339911f4379Salnsn
3340911f4379Salnsn RL(unconfigure_cgd(cgdfd));
3341911f4379Salnsn RL(configure_cgd(cgdfd, dkpath, "aes-cbc", "encblkno1",
3342911f4379Salnsn aes_cbc_192_key, sizeof(aes_cbc_192_key)));
3343911f4379Salnsn
3344911f4379Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_192_1_vectors[0]), 0);
3345911f4379Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_192_1_vectors[1]), 0);
3346911f4379Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_192_1_vectors[2]), 0);
3347911f4379Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_192_1_vectors[3]), 0);
3348911f4379Salnsn
3349911f4379Salnsn RL(unconfigure_cgd(cgdfd));
3350911f4379Salnsn RL(rump_sys_close(cgdfd));
3351911f4379Salnsn
3352911f4379Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_192_1_vectors[0]), 0);
3353911f4379Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_192_1_vectors[1]), 0);
3354911f4379Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_192_1_vectors[2]), 0);
3355911f4379Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_192_1_vectors[3]), 0);
3356911f4379Salnsn
3357911f4379Salnsn RL(close(dkfd));
3358911f4379Salnsn }
3359911f4379Salnsn
3360911f4379Salnsn ATF_TC(cgd_aes_cbc_192_encblkno8);
ATF_TC_HEAD(cgd_aes_cbc_192_encblkno8,tc)3361911f4379Salnsn ATF_TC_HEAD(cgd_aes_cbc_192_encblkno8, tc)
3362911f4379Salnsn {
3363911f4379Salnsn atf_tc_set_md_var(tc, "descr",
3364911f4379Salnsn "Test aes-cbc with 192 bits key, ivmethod encblkno8");
3365911f4379Salnsn }
3366911f4379Salnsn
ATF_TC_BODY(cgd_aes_cbc_192_encblkno8,tc)3367911f4379Salnsn ATF_TC_BODY(cgd_aes_cbc_192_encblkno8, tc)
3368911f4379Salnsn {
3369911f4379Salnsn const char imgpath[] = "aes-cbc-192-encblkno8.img";
3370911f4379Salnsn const char *dkpath = "/dev/dk";
3371911f4379Salnsn const size_t dksize = 4 * SECSIZE; /* Last blkno is 3. */
3372911f4379Salnsn int dkfd, cgdfd;
3373911f4379Salnsn
3374911f4379Salnsn rump_init();
3375911f4379Salnsn
3376911f4379Salnsn RL(dkfd = open_disk(dkpath, imgpath, dksize));
3377911f4379Salnsn
3378911f4379Salnsn RL(cgdfd = open_cgd(0));
3379911f4379Salnsn RL(configure_cgd(cgdfd, dkpath, "aes-cbc", "encblkno8",
3380911f4379Salnsn aes_cbc_192_key, sizeof(aes_cbc_192_key)));
3381911f4379Salnsn
3382e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_cbc_192_8_vectors[0]), -1);
3383e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_cbc_192_8_vectors[1]), -1);
3384e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_cbc_192_8_vectors[2]), -1);
3385e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_cbc_192_8_vectors[3]), -1);
3386911f4379Salnsn
3387911f4379Salnsn RL(unconfigure_cgd(cgdfd));
3388911f4379Salnsn RL(configure_cgd(cgdfd, dkpath, "aes-cbc", "encblkno8",
3389911f4379Salnsn aes_cbc_192_key, sizeof(aes_cbc_192_key)));
3390911f4379Salnsn
3391911f4379Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_192_8_vectors[0]), 0);
3392911f4379Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_192_8_vectors[1]), 0);
3393911f4379Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_192_8_vectors[2]), 0);
3394911f4379Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_192_8_vectors[3]), 0);
3395911f4379Salnsn
3396911f4379Salnsn RL(unconfigure_cgd(cgdfd));
3397911f4379Salnsn RL(rump_sys_close(cgdfd));
3398911f4379Salnsn
3399911f4379Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_192_8_vectors[0]), 0);
3400911f4379Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_192_8_vectors[1]), 0);
3401911f4379Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_192_8_vectors[2]), 0);
3402911f4379Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_192_8_vectors[3]), 0);
3403911f4379Salnsn
3404911f4379Salnsn RL(close(dkfd));
3405911f4379Salnsn }
3406911f4379Salnsn
3407911f4379Salnsn ATF_TC(cgd_aes_cbc_256_encblkno1);
ATF_TC_HEAD(cgd_aes_cbc_256_encblkno1,tc)3408911f4379Salnsn ATF_TC_HEAD(cgd_aes_cbc_256_encblkno1, tc)
3409911f4379Salnsn {
3410911f4379Salnsn atf_tc_set_md_var(tc, "descr",
3411911f4379Salnsn "Test aes-cbc with 256 bits key, ivmethod encblkno1");
3412911f4379Salnsn }
3413911f4379Salnsn
ATF_TC_BODY(cgd_aes_cbc_256_encblkno1,tc)3414911f4379Salnsn ATF_TC_BODY(cgd_aes_cbc_256_encblkno1, tc)
3415911f4379Salnsn {
3416911f4379Salnsn const char imgpath[] = "aes-cbc-256-encblkno1.img";
3417911f4379Salnsn const char *dkpath = "/dev/dk";
3418911f4379Salnsn const size_t dksize = 4 * SECSIZE; /* Last blkno is 3. */
3419911f4379Salnsn int dkfd, cgdfd;
3420911f4379Salnsn
3421911f4379Salnsn rump_init();
3422911f4379Salnsn
3423911f4379Salnsn RL(dkfd = open_disk(dkpath, imgpath, dksize));
3424911f4379Salnsn
3425911f4379Salnsn RL(cgdfd = open_cgd(0));
3426911f4379Salnsn RL(configure_cgd(cgdfd, dkpath, "aes-cbc", "encblkno1",
3427911f4379Salnsn aes_cbc_256_key, sizeof(aes_cbc_256_key)));
3428911f4379Salnsn
3429e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_cbc_256_1_vectors[0]), -1);
3430e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_cbc_256_1_vectors[1]), -1);
3431e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_cbc_256_1_vectors[2]), -1);
3432e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_cbc_256_1_vectors[3]), -1);
3433911f4379Salnsn
3434911f4379Salnsn RL(unconfigure_cgd(cgdfd));
3435911f4379Salnsn RL(configure_cgd(cgdfd, dkpath, "aes-cbc", "encblkno1",
3436911f4379Salnsn aes_cbc_256_key, sizeof(aes_cbc_256_key)));
3437911f4379Salnsn
3438911f4379Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_256_1_vectors[0]), 0);
3439911f4379Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_256_1_vectors[1]), 0);
3440911f4379Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_256_1_vectors[2]), 0);
3441911f4379Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_256_1_vectors[3]), 0);
3442911f4379Salnsn
3443911f4379Salnsn RL(unconfigure_cgd(cgdfd));
3444911f4379Salnsn RL(rump_sys_close(cgdfd));
3445911f4379Salnsn
3446911f4379Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_256_1_vectors[0]), 0);
3447911f4379Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_256_1_vectors[1]), 0);
3448911f4379Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_256_1_vectors[2]), 0);
3449911f4379Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_256_1_vectors[3]), 0);
3450911f4379Salnsn
3451911f4379Salnsn RL(close(dkfd));
3452911f4379Salnsn }
3453911f4379Salnsn
3454911f4379Salnsn ATF_TC(cgd_aes_cbc_256_encblkno8);
ATF_TC_HEAD(cgd_aes_cbc_256_encblkno8,tc)3455911f4379Salnsn ATF_TC_HEAD(cgd_aes_cbc_256_encblkno8, tc)
3456911f4379Salnsn {
3457911f4379Salnsn atf_tc_set_md_var(tc, "descr",
3458911f4379Salnsn "Test aes-cbc with 256 bits key, ivmethod encblkno8");
3459911f4379Salnsn }
3460911f4379Salnsn
ATF_TC_BODY(cgd_aes_cbc_256_encblkno8,tc)3461911f4379Salnsn ATF_TC_BODY(cgd_aes_cbc_256_encblkno8, tc)
3462911f4379Salnsn {
3463911f4379Salnsn const char imgpath[] = "aes-cbc-256-encblkno8.img";
3464911f4379Salnsn const char *dkpath = "/dev/dk";
3465911f4379Salnsn const size_t dksize = 4 * SECSIZE; /* Last blkno is 3. */
3466911f4379Salnsn int dkfd, cgdfd;
3467911f4379Salnsn
3468911f4379Salnsn rump_init();
3469911f4379Salnsn
3470911f4379Salnsn RL(dkfd = open_disk(dkpath, imgpath, dksize));
3471911f4379Salnsn
3472911f4379Salnsn RL(cgdfd = open_cgd(0));
3473911f4379Salnsn RL(configure_cgd(cgdfd, dkpath, "aes-cbc", "encblkno8",
3474911f4379Salnsn aes_cbc_256_key, sizeof(aes_cbc_256_key)));
3475911f4379Salnsn
3476e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_cbc_256_8_vectors[0]), -1);
3477e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_cbc_256_8_vectors[1]), -1);
3478e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_cbc_256_8_vectors[2]), -1);
3479e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_cbc_256_8_vectors[3]), -1);
3480911f4379Salnsn
3481911f4379Salnsn RL(unconfigure_cgd(cgdfd));
3482911f4379Salnsn RL(configure_cgd(cgdfd, dkpath, "aes-cbc", "encblkno8",
3483911f4379Salnsn aes_cbc_256_key, sizeof(aes_cbc_256_key)));
3484911f4379Salnsn
3485911f4379Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_256_8_vectors[0]), 0);
3486911f4379Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_256_8_vectors[1]), 0);
3487911f4379Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_256_8_vectors[2]), 0);
3488911f4379Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_cbc_256_8_vectors[3]), 0);
3489911f4379Salnsn
3490911f4379Salnsn RL(unconfigure_cgd(cgdfd));
3491911f4379Salnsn RL(rump_sys_close(cgdfd));
3492911f4379Salnsn
3493911f4379Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_256_8_vectors[0]), 0);
3494911f4379Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_256_8_vectors[1]), 0);
3495911f4379Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_256_8_vectors[2]), 0);
3496911f4379Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_cbc_256_8_vectors[3]), 0);
3497911f4379Salnsn
3498911f4379Salnsn RL(close(dkfd));
3499911f4379Salnsn }
3500911f4379Salnsn
3501838eb243Salnsn ATF_TC(cgd_aes_xts_256);
ATF_TC_HEAD(cgd_aes_xts_256,tc)3502838eb243Salnsn ATF_TC_HEAD(cgd_aes_xts_256, tc)
3503838eb243Salnsn {
3504838eb243Salnsn atf_tc_set_md_var(tc, "descr", "Test aes-xts with 256 bits key");
3505838eb243Salnsn }
3506838eb243Salnsn
ATF_TC_BODY(cgd_aes_xts_256,tc)3507838eb243Salnsn ATF_TC_BODY(cgd_aes_xts_256, tc)
3508838eb243Salnsn {
350954ef2b19Salnsn const char imgpath[] = "aes-xts-256.img";
3510838eb243Salnsn const char *dkpath = "/dev/dk";
3511838eb243Salnsn const size_t dksize = 256 * SECSIZE; /* Last blkno is 0xff. */
3512838eb243Salnsn int dkfd, cgdfd;
3513838eb243Salnsn
3514838eb243Salnsn rump_init();
3515838eb243Salnsn
3516838eb243Salnsn RL(dkfd = open_disk(dkpath, imgpath, dksize));
3517838eb243Salnsn
3518838eb243Salnsn RL(cgdfd = open_cgd(0));
3519911f4379Salnsn RL(configure_cgd(cgdfd, dkpath, "aes-xts", "encblkno1",
3520838eb243Salnsn aes_xts_256_key, sizeof(aes_xts_256_key)));
3521838eb243Salnsn
3522e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_xts_256_vectors[0]), -1);
3523e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_xts_256_vectors[1]), -1);
3524e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_xts_256_vectors[2]), -1);
3525e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_xts_256_vectors[3]), -1);
3526e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_xts_256_vectors[4]), -1);
3527e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_xts_256_vectors[5]), -1);
3528838eb243Salnsn
3529838eb243Salnsn RL(unconfigure_cgd(cgdfd));
3530911f4379Salnsn RL(configure_cgd(cgdfd, dkpath, "aes-xts", "encblkno1",
3531838eb243Salnsn aes_xts_256_key, sizeof(aes_xts_256_key)));
3532838eb243Salnsn
3533838eb243Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_xts_256_vectors[0]), 0);
3534838eb243Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_xts_256_vectors[1]), 0);
3535838eb243Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_xts_256_vectors[2]), 0);
3536838eb243Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_xts_256_vectors[3]), 0);
3537838eb243Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_xts_256_vectors[4]), 0);
3538838eb243Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_xts_256_vectors[5]), 0);
3539838eb243Salnsn
3540838eb243Salnsn RL(unconfigure_cgd(cgdfd));
3541838eb243Salnsn RL(rump_sys_close(cgdfd));
3542838eb243Salnsn
3543838eb243Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_xts_256_vectors[0]), 0);
3544838eb243Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_xts_256_vectors[1]), 0);
3545838eb243Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_xts_256_vectors[2]), 0);
3546838eb243Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_xts_256_vectors[3]), 0);
3547838eb243Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_xts_256_vectors[4]), 0);
3548838eb243Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_xts_256_vectors[5]), 0);
3549838eb243Salnsn
3550838eb243Salnsn RL(close(dkfd));
3551838eb243Salnsn }
3552838eb243Salnsn
3553838eb243Salnsn ATF_TC(cgd_aes_xts_512);
ATF_TC_HEAD(cgd_aes_xts_512,tc)3554838eb243Salnsn ATF_TC_HEAD(cgd_aes_xts_512, tc)
3555838eb243Salnsn {
3556838eb243Salnsn atf_tc_set_md_var(tc, "descr", "Test aes-xts with 512 bits key");
3557838eb243Salnsn }
3558838eb243Salnsn
ATF_TC_BODY(cgd_aes_xts_512,tc)3559838eb243Salnsn ATF_TC_BODY(cgd_aes_xts_512, tc)
3560838eb243Salnsn {
356154ef2b19Salnsn const char imgpath[] = "aes-xts-512.img";
3562838eb243Salnsn const char *dkpath = "/dev/dk";
3563838eb243Salnsn const size_t dksize = 65536 * SECSIZE; /* Last blkno is 0xffff. */
3564838eb243Salnsn int dkfd, cgdfd;
3565838eb243Salnsn
3566838eb243Salnsn rump_init();
3567838eb243Salnsn
35680509bcf9Smartin dkfd = open_disk(dkpath, imgpath, dksize);
35690509bcf9Smartin if (dkfd == -1 && errno == ENOSPC) {
35700509bcf9Smartin atf_tc_skip("not enough space");
35710509bcf9Smartin } else {
35720509bcf9Smartin ATF_CHECK_MSG(dkfd != -1, "open_disk: %s", strerror(errno));
35730509bcf9Smartin }
3574838eb243Salnsn
3575838eb243Salnsn RL(cgdfd = open_cgd(0));
3576911f4379Salnsn RL(configure_cgd(cgdfd, dkpath, "aes-xts", "encblkno1",
3577838eb243Salnsn aes_xts_512_key, sizeof(aes_xts_512_key)));
3578838eb243Salnsn
3579e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_xts_512_vectors[0]), -1);
3580e771598cSalnsn CHECK_LIBC(write_testvec(cgdfd, &aes_xts_512_vectors[1]), -1);
3581838eb243Salnsn
3582838eb243Salnsn RL(unconfigure_cgd(cgdfd));
3583911f4379Salnsn RL(configure_cgd(cgdfd, dkpath, "aes-xts", "encblkno1",
3584838eb243Salnsn aes_xts_512_key, sizeof(aes_xts_512_key)));
3585838eb243Salnsn
3586838eb243Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_xts_512_vectors[0]), 0);
3587838eb243Salnsn ATF_CHECK_EQ(read_testvec(cgdfd, &aes_xts_512_vectors[1]), 0);
3588838eb243Salnsn
3589838eb243Salnsn RL(unconfigure_cgd(cgdfd));
3590838eb243Salnsn RL(rump_sys_close(cgdfd));
3591838eb243Salnsn
3592838eb243Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_xts_512_vectors[0]), 0);
3593838eb243Salnsn ATF_CHECK_EQ(check_testvec(dkfd, &aes_xts_512_vectors[1]), 0);
3594838eb243Salnsn
3595838eb243Salnsn RL(close(dkfd));
3596838eb243Salnsn }
3597838eb243Salnsn
ATF_TP_ADD_TCS(tp)3598838eb243Salnsn ATF_TP_ADD_TCS(tp)
3599838eb243Salnsn {
3600838eb243Salnsn
3601911f4379Salnsn ATF_TP_ADD_TC(tp, cgd_aes_cbc_128_encblkno1);
3602911f4379Salnsn ATF_TP_ADD_TC(tp, cgd_aes_cbc_128_encblkno8);
3603911f4379Salnsn ATF_TP_ADD_TC(tp, cgd_aes_cbc_192_encblkno1);
3604911f4379Salnsn ATF_TP_ADD_TC(tp, cgd_aes_cbc_192_encblkno8);
3605911f4379Salnsn ATF_TP_ADD_TC(tp, cgd_aes_cbc_256_encblkno1);
3606911f4379Salnsn ATF_TP_ADD_TC(tp, cgd_aes_cbc_256_encblkno8);
3607838eb243Salnsn ATF_TP_ADD_TC(tp, cgd_aes_xts_256);
3608838eb243Salnsn ATF_TP_ADD_TC(tp, cgd_aes_xts_512);
3609838eb243Salnsn
3610838eb243Salnsn return atf_no_error();
3611838eb243Salnsn }
3612