1809f0800SChristian Ehrhardt/*-
2809f0800SChristian Ehrhardt *   BSD LICENSE
3809f0800SChristian Ehrhardt *
4809f0800SChristian Ehrhardt *   Copyright(c) 2016 Intel Corporation. All rights reserved.
5809f0800SChristian Ehrhardt *
6809f0800SChristian Ehrhardt *   Redistribution and use in source and binary forms, with or without
7809f0800SChristian Ehrhardt *   modification, are permitted provided that the following conditions
8809f0800SChristian Ehrhardt *   are met:
9809f0800SChristian Ehrhardt *
10809f0800SChristian Ehrhardt *	 * Redistributions of source code must retain the above copyright
11809f0800SChristian Ehrhardt *	   notice, this list of conditions and the following disclaimer.
12809f0800SChristian Ehrhardt *	 * Redistributions in binary form must reproduce the above copyright
13809f0800SChristian Ehrhardt *	   notice, this list of conditions and the following disclaimer in
14809f0800SChristian Ehrhardt *	   the documentation and/or other materials provided with the
15809f0800SChristian Ehrhardt *	   distribution.
16809f0800SChristian Ehrhardt *	 * Neither the name of Intel Corporation nor the names of its
17809f0800SChristian Ehrhardt *	   contributors may be used to endorse or promote products derived
18809f0800SChristian Ehrhardt *	   from this software without specific prior written permission.
19809f0800SChristian Ehrhardt *
20809f0800SChristian Ehrhardt *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21809f0800SChristian Ehrhardt *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22809f0800SChristian Ehrhardt *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23809f0800SChristian Ehrhardt *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24809f0800SChristian Ehrhardt *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25809f0800SChristian Ehrhardt *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26809f0800SChristian Ehrhardt *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27809f0800SChristian Ehrhardt *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28809f0800SChristian Ehrhardt *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29809f0800SChristian Ehrhardt *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30809f0800SChristian Ehrhardt *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31809f0800SChristian Ehrhardt */
32809f0800SChristian Ehrhardt
33809f0800SChristian Ehrhardt#ifndef TEST_CRYPTODEV_KASUMI_HASH_TEST_VECTORS_H_
34809f0800SChristian Ehrhardt#define TEST_CRYPTODEV_KASUMI_HASH_TEST_VECTORS_H_
35809f0800SChristian Ehrhardt
36809f0800SChristian Ehrhardtstruct kasumi_hash_test_data {
37809f0800SChristian Ehrhardt	struct {
38809f0800SChristian Ehrhardt		uint8_t data[16];
39809f0800SChristian Ehrhardt		unsigned len;
40809f0800SChristian Ehrhardt	} key;
41809f0800SChristian Ehrhardt
42809f0800SChristian Ehrhardt	/* Includes: COUNT (4 bytes) and FRESH (4 bytes) */
43809f0800SChristian Ehrhardt	struct {
44809f0800SChristian Ehrhardt		uint8_t data[8];
45809f0800SChristian Ehrhardt		unsigned len;
46809f0800SChristian Ehrhardt	} aad;
47809f0800SChristian Ehrhardt
48809f0800SChristian Ehrhardt	/* Includes message and DIRECTION (1 bit), plus 1 0*,
49809f0800SChristian Ehrhardt	 * with enough 0s, so total length is multiple of 64 bits */
50809f0800SChristian Ehrhardt	struct {
51809f0800SChristian Ehrhardt		uint8_t data[2056];
52809f0800SChristian Ehrhardt		unsigned len; /* length must be in Bits */
53809f0800SChristian Ehrhardt	} plaintext;
54809f0800SChristian Ehrhardt
55809f0800SChristian Ehrhardt	/* Actual length of data to be hashed */
56809f0800SChristian Ehrhardt	struct {
57809f0800SChristian Ehrhardt		unsigned len;
58809f0800SChristian Ehrhardt	} validAuthLenInBits;
59809f0800SChristian Ehrhardt
60809f0800SChristian Ehrhardt	struct {
61809f0800SChristian Ehrhardt		unsigned len;
62809f0800SChristian Ehrhardt	} validAuthOffsetLenInBits;
63809f0800SChristian Ehrhardt
64809f0800SChristian Ehrhardt	struct {
65809f0800SChristian Ehrhardt		uint8_t data[64];
66809f0800SChristian Ehrhardt		unsigned len;
67809f0800SChristian Ehrhardt	} digest;
68809f0800SChristian Ehrhardt};
69809f0800SChristian Ehrhardt
70809f0800SChristian Ehrhardtstruct kasumi_hash_test_data kasumi_hash_test_case_1 = {
71809f0800SChristian Ehrhardt	.key = {
72809f0800SChristian Ehrhardt		.data = {
73809f0800SChristian Ehrhardt			0x2B, 0xD6, 0x45, 0x9F, 0x82, 0xC5, 0xB3, 0x00,
74809f0800SChristian Ehrhardt			0x95, 0x2C, 0x49, 0x10, 0x48, 0x81, 0xFF, 0x48
75809f0800SChristian Ehrhardt		},
76809f0800SChristian Ehrhardt		.len = 16
77809f0800SChristian Ehrhardt	},
78809f0800SChristian Ehrhardt	.aad = {
79809f0800SChristian Ehrhardt		.data = {
80809f0800SChristian Ehrhardt			0x38, 0xA6, 0xF0, 0x56, 0x05, 0xD2, 0xEC, 0x49,
81809f0800SChristian Ehrhardt		},
82809f0800SChristian Ehrhardt		.len = 8
83809f0800SChristian Ehrhardt	},
84809f0800SChristian Ehrhardt	.plaintext = {
85809f0800SChristian Ehrhardt		.data = {
86809f0800SChristian Ehrhardt			0x6B, 0x22, 0x77, 0x37, 0x29, 0x6F, 0x39, 0x3C,
87809f0800SChristian Ehrhardt			0x80, 0x79, 0x35, 0x3E, 0xDC, 0x87, 0xE2, 0xE8,
88809f0800SChristian Ehrhardt			0x05, 0xD2, 0xEC, 0x49, 0xA4, 0xF2, 0xD8, 0xE2
89809f0800SChristian Ehrhardt		},
90809f0800SChristian Ehrhardt		.len = 192
91809f0800SChristian Ehrhardt	},
92809f0800SChristian Ehrhardt	.validAuthLenInBits = {
93809f0800SChristian Ehrhardt		.len = 189
94809f0800SChristian Ehrhardt	},
95809f0800SChristian Ehrhardt	.validAuthOffsetLenInBits = {
96809f0800SChristian Ehrhardt		.len = 64
97809f0800SChristian Ehrhardt	},
98809f0800SChristian Ehrhardt	.digest = {
99809f0800SChristian Ehrhardt		.data = {0xF6, 0x3B, 0xD7, 0x2C},
100809f0800SChristian Ehrhardt		.len  = 4
101809f0800SChristian Ehrhardt	}
102809f0800SChristian Ehrhardt};
103809f0800SChristian Ehrhardt
104809f0800SChristian Ehrhardtstruct kasumi_hash_test_data kasumi_hash_test_case_2 = {
105809f0800SChristian Ehrhardt	.key = {
106809f0800SChristian Ehrhardt		.data = {
107809f0800SChristian Ehrhardt			0xD4, 0x2F, 0x68, 0x24, 0x28, 0x20, 0x1C, 0xAF,
108809f0800SChristian Ehrhardt			0xCD, 0x9F, 0x97, 0x94, 0x5E, 0x6D, 0xE7, 0xB7
109809f0800SChristian Ehrhardt		},
110809f0800SChristian Ehrhardt		.len = 16
111809f0800SChristian Ehrhardt	},
112809f0800SChristian Ehrhardt	.aad = {
113809f0800SChristian Ehrhardt		.data = {
114809f0800SChristian Ehrhardt			0x3E, 0xDC, 0x87, 0xE2, 0xA4, 0xF2, 0xD8, 0xE2,
115809f0800SChristian Ehrhardt		},
116809f0800SChristian Ehrhardt		.len = 8
117809f0800SChristian Ehrhardt	},
118809f0800SChristian Ehrhardt	.plaintext = {
119809f0800SChristian Ehrhardt		.data = {
120809f0800SChristian Ehrhardt			0xB5, 0x92, 0x43, 0x84, 0x32, 0x8A, 0x4A, 0xE0,
121809f0800SChristian Ehrhardt			0x0B, 0x73, 0x71, 0x09, 0xF8, 0xB6, 0xC8, 0xDD,
122809f0800SChristian Ehrhardt			0x2B, 0x4D, 0xB6, 0x3D, 0xD5, 0x33, 0x98, 0x1C,
123809f0800SChristian Ehrhardt			0xEB, 0x19, 0xAA, 0xD5, 0x2A, 0x5B, 0x2B, 0xC3
124809f0800SChristian Ehrhardt		},
125809f0800SChristian Ehrhardt		.len = 256
126809f0800SChristian Ehrhardt	},
127809f0800SChristian Ehrhardt	.validAuthLenInBits = {
128809f0800SChristian Ehrhardt		.len = 254
129809f0800SChristian Ehrhardt	},
130809f0800SChristian Ehrhardt	.validAuthOffsetLenInBits = {
131809f0800SChristian Ehrhardt		.len = 64
132809f0800SChristian Ehrhardt	},
133809f0800SChristian Ehrhardt	.digest = {
134809f0800SChristian Ehrhardt		.data = {0xA9, 0xDA, 0xF1, 0xFF},
135809f0800SChristian Ehrhardt		.len  = 4
136809f0800SChristian Ehrhardt	}
137809f0800SChristian Ehrhardt};
138809f0800SChristian Ehrhardt
139809f0800SChristian Ehrhardtstruct kasumi_hash_test_data kasumi_hash_test_case_3 = {
140809f0800SChristian Ehrhardt	.key = {
141809f0800SChristian Ehrhardt		.data = {
142809f0800SChristian Ehrhardt			0xFD, 0xB9, 0xCF, 0xDF, 0x28, 0x93, 0x6C, 0xC4,
143809f0800SChristian Ehrhardt			0x83, 0xA3, 0x18, 0x69, 0xD8, 0x1B, 0x8F, 0xAB
144809f0800SChristian Ehrhardt		},
145809f0800SChristian Ehrhardt		.len = 16
146809f0800SChristian Ehrhardt	},
147809f0800SChristian Ehrhardt	.aad = {
148809f0800SChristian Ehrhardt		.data = {
149809f0800SChristian Ehrhardt			0x36, 0xAF, 0x61, 0x44, 0x98, 0x38, 0xF0, 0x3A,
150809f0800SChristian Ehrhardt		},
151809f0800SChristian Ehrhardt		.len = 8
152809f0800SChristian Ehrhardt	},
153809f0800SChristian Ehrhardt	.plaintext = {
154809f0800SChristian Ehrhardt		.data = {
155809f0800SChristian Ehrhardt			0x59, 0x32, 0xBC, 0x0A, 0xCE, 0x2B, 0x0A, 0xBA,
156809f0800SChristian Ehrhardt			0x33, 0xD8, 0xAC, 0x18, 0x8A, 0xC5, 0x4F, 0x34,
157809f0800SChristian Ehrhardt			0x6F, 0xAD, 0x10, 0xBF, 0x9D, 0xEE, 0x29, 0x20,
158809f0800SChristian Ehrhardt			0xB4, 0x3B, 0xD0, 0xC5, 0x3A, 0x91, 0x5C, 0xB7,
159809f0800SChristian Ehrhardt			0xDF, 0x6C, 0xAA, 0x72, 0x05, 0x3A, 0xBF, 0xF3,
160809f0800SChristian Ehrhardt			0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
161809f0800SChristian Ehrhardt		},
162809f0800SChristian Ehrhardt		.len = 384
163809f0800SChristian Ehrhardt	},
164809f0800SChristian Ehrhardt	.validAuthLenInBits = {
165809f0800SChristian Ehrhardt		.len = 319
166809f0800SChristian Ehrhardt	},
167809f0800SChristian Ehrhardt	.validAuthOffsetLenInBits = {
168809f0800SChristian Ehrhardt		.len = 64
169809f0800SChristian Ehrhardt	},
170809f0800SChristian Ehrhardt	.digest = {
171809f0800SChristian Ehrhardt		.data = {0x15, 0x37, 0xD3, 0x16},
172809f0800SChristian Ehrhardt		.len  = 4
173809f0800SChristian Ehrhardt	}
174809f0800SChristian Ehrhardt};
175809f0800SChristian Ehrhardt
176809f0800SChristian Ehrhardtstruct kasumi_hash_test_data kasumi_hash_test_case_4 = {
177809f0800SChristian Ehrhardt	.key = {
178809f0800SChristian Ehrhardt		.data = {
179809f0800SChristian Ehrhardt			0xC7, 0x36, 0xC6, 0xAA, 0xB2, 0x2B, 0xFF, 0xF9,
180809f0800SChristian Ehrhardt			0x1E, 0x26, 0x98, 0xD2, 0xE2, 0x2A, 0xD5, 0x7E
181809f0800SChristian Ehrhardt		},
182809f0800SChristian Ehrhardt	.len = 16
183809f0800SChristian Ehrhardt	},
184809f0800SChristian Ehrhardt	.aad = {
185809f0800SChristian Ehrhardt		.data = {
186809f0800SChristian Ehrhardt			0x14, 0x79, 0x3E, 0x41, 0x03, 0x97, 0xE8, 0xFD
187809f0800SChristian Ehrhardt		},
188809f0800SChristian Ehrhardt		.len = 8
189809f0800SChristian Ehrhardt	},
190809f0800SChristian Ehrhardt	.plaintext = {
191809f0800SChristian Ehrhardt		.data = {
192809f0800SChristian Ehrhardt			0xD0, 0xA7, 0xD4, 0x63, 0xDF, 0x9F, 0xB2, 0xB2,
193809f0800SChristian Ehrhardt			0x78, 0x83, 0x3F, 0xA0, 0x2E, 0x23, 0x5A, 0xA1,
194809f0800SChristian Ehrhardt			0x72, 0xBD, 0x97, 0x0C, 0x14, 0x73, 0xE1, 0x29,
195809f0800SChristian Ehrhardt			0x07, 0xFB, 0x64, 0x8B, 0x65, 0x99, 0xAA, 0xA0,
196809f0800SChristian Ehrhardt			0xB2, 0x4A, 0x03, 0x86, 0x65, 0x42, 0x2B, 0x20,
197809f0800SChristian Ehrhardt			0xA4, 0x99, 0x27, 0x6A, 0x50, 0x42, 0x70, 0x09,
198809f0800SChristian Ehrhardt			0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
199809f0800SChristian Ehrhardt		},
200809f0800SChristian Ehrhardt		.len = 448
201809f0800SChristian Ehrhardt	},
202809f0800SChristian Ehrhardt	.validAuthLenInBits = {
203809f0800SChristian Ehrhardt		.len = 384
204809f0800SChristian Ehrhardt		},
205809f0800SChristian Ehrhardt	.validAuthOffsetLenInBits = {
206809f0800SChristian Ehrhardt		.len = 64
207809f0800SChristian Ehrhardt	},
208809f0800SChristian Ehrhardt	.digest = {
209809f0800SChristian Ehrhardt		.data = {0xDD, 0x7D, 0xFA, 0xDD },
210809f0800SChristian Ehrhardt		.len  = 4
211809f0800SChristian Ehrhardt	}
212809f0800SChristian Ehrhardt};
213809f0800SChristian Ehrhardt
214809f0800SChristian Ehrhardtstruct kasumi_hash_test_data kasumi_hash_test_case_5 = {
215809f0800SChristian Ehrhardt	.key = {
216809f0800SChristian Ehrhardt		.data = {
217809f0800SChristian Ehrhardt			0xF4, 0xEB, 0xEC, 0x69, 0xE7, 0x3E, 0xAF, 0x2E,
218809f0800SChristian Ehrhardt			0xB2, 0xCF, 0x6A, 0xF4, 0xB3, 0x12, 0x0F, 0xFD
219809f0800SChristian Ehrhardt		},
220809f0800SChristian Ehrhardt		.len = 16
221809f0800SChristian Ehrhardt	},
222809f0800SChristian Ehrhardt	.aad = {
223809f0800SChristian Ehrhardt		.data = {
224809f0800SChristian Ehrhardt			0x29, 0x6F, 0x39, 0x3C, 0x6B, 0x22, 0x77, 0x37,
225809f0800SChristian Ehrhardt		},
226809f0800SChristian Ehrhardt		.len = 8
227809f0800SChristian Ehrhardt	},
228809f0800SChristian Ehrhardt	.plaintext = {
229809f0800SChristian Ehrhardt		.data = {
230809f0800SChristian Ehrhardt			0x10, 0xBF, 0xFF, 0x83, 0x9E, 0x0C, 0x71, 0x65,
231809f0800SChristian Ehrhardt			0x8D, 0xBB, 0x2D, 0x17, 0x07, 0xE1, 0x45, 0x72,
232809f0800SChristian Ehrhardt			0x4F, 0x41, 0xC1, 0x6F, 0x48, 0xBF, 0x40, 0x3C,
233809f0800SChristian Ehrhardt			0x3B, 0x18, 0xE3, 0x8F, 0xD5, 0xD1, 0x66, 0x3B,
234809f0800SChristian Ehrhardt			0x6F, 0x6D, 0x90, 0x01, 0x93, 0xE3, 0xCE, 0xA8,
235809f0800SChristian Ehrhardt			0xBB, 0x4F, 0x1B, 0x4F, 0x5B, 0xE8, 0x22, 0x03,
236809f0800SChristian Ehrhardt			0x22, 0x32, 0xA7, 0x8D, 0x7D, 0x75, 0x23, 0x8D,
237809f0800SChristian Ehrhardt			0x5E, 0x6D, 0xAE, 0xCD, 0x3B, 0x43, 0x22, 0xCF,
238809f0800SChristian Ehrhardt			0x59, 0xBC, 0x7E, 0xA8, 0x4A, 0xB1, 0x88, 0x11,
239809f0800SChristian Ehrhardt			0xB5, 0xBF, 0xB7, 0xBC, 0x55, 0x3F, 0x4F, 0xE4,
240809f0800SChristian Ehrhardt			0x44, 0x78, 0xCE, 0x28, 0x7A, 0x14, 0x87, 0x99,
241809f0800SChristian Ehrhardt			0x90, 0xD1, 0x8D, 0x12, 0xCA, 0x79, 0xD2, 0xC8,
242809f0800SChristian Ehrhardt			0x55, 0x14, 0x90, 0x21, 0xCD, 0x5C, 0xE8, 0xCA,
243809f0800SChristian Ehrhardt			0x03, 0x71, 0xCA, 0x04, 0xFC, 0xCE, 0x14, 0x3E,
244809f0800SChristian Ehrhardt			0x3D, 0x7C, 0xFE, 0xE9, 0x45, 0x85, 0xB5, 0x88,
245809f0800SChristian Ehrhardt			0x5C, 0xAC, 0x46, 0x06, 0x8B, 0xC0, 0x00, 0x00
246809f0800SChristian Ehrhardt		},
247809f0800SChristian Ehrhardt		.len = 1024
248809f0800SChristian Ehrhardt	},
249809f0800SChristian Ehrhardt	.validAuthLenInBits = {
250809f0800SChristian Ehrhardt		.len = 1000
251809f0800SChristian Ehrhardt	},
252809f0800SChristian Ehrhardt	.validAuthOffsetLenInBits = {
253809f0800SChristian Ehrhardt		.len = 64
254809f0800SChristian Ehrhardt	},
255809f0800SChristian Ehrhardt	.digest = {
256809f0800SChristian Ehrhardt		.data = {0xC3, 0x83, 0x83, 0x9D},
257809f0800SChristian Ehrhardt		.len  = 4
258809f0800SChristian Ehrhardt	}
259809f0800SChristian Ehrhardt};
2603d9b7210SChristian Ehrhardt
2613d9b7210SChristian Ehrhardtstruct kasumi_hash_test_data kasumi_hash_test_case_6 = {
2623d9b7210SChristian Ehrhardt	.key = {
2633d9b7210SChristian Ehrhardt		.data = {
2643d9b7210SChristian Ehrhardt			0x83, 0xFD, 0x23, 0xA2, 0x44, 0xA7, 0x4C, 0xF3,
2653d9b7210SChristian Ehrhardt			0x58, 0xDA, 0x30, 0x19, 0xF1, 0x72, 0x26, 0x35
2663d9b7210SChristian Ehrhardt		},
2673d9b7210SChristian Ehrhardt		.len = 16
2683d9b7210SChristian Ehrhardt	},
2693d9b7210SChristian Ehrhardt	.aad = {
2703d9b7210SChristian Ehrhardt		.data = {
2713d9b7210SChristian Ehrhardt			0x36, 0xAF, 0x61, 0x44, 0x4F, 0x30, 0x2A, 0xD2
2723d9b7210SChristian Ehrhardt		},
2733d9b7210SChristian Ehrhardt		.len = 8
2743d9b7210SChristian Ehrhardt	},
2753d9b7210SChristian Ehrhardt	.plaintext = {
2763d9b7210SChristian Ehrhardt		.data = {
2773d9b7210SChristian Ehrhardt			0x35, 0xC6, 0x87, 0x16, 0x63, 0x3C, 0x66, 0xFB,
2783d9b7210SChristian Ehrhardt			0x75, 0x0C, 0x26, 0x68, 0x65, 0xD5, 0x3C, 0x11,
2793d9b7210SChristian Ehrhardt			0xEA, 0x05, 0xB1, 0xE9, 0xFA, 0x49, 0xC8, 0x39,
2803d9b7210SChristian Ehrhardt			0x8D, 0x48, 0xE1, 0xEF, 0xA5, 0x90, 0x9D, 0x39,
2813d9b7210SChristian Ehrhardt			0x47, 0x90, 0x28, 0x37, 0xF5, 0xAE, 0x96, 0xD5,
2823d9b7210SChristian Ehrhardt			0xA0, 0x5B, 0xC8, 0xD6, 0x1C, 0xA8, 0xDB, 0xEF,
2833d9b7210SChristian Ehrhardt			0x1B, 0x13, 0xA4, 0xB4, 0xAB, 0xFE, 0x4F, 0xB1,
2843d9b7210SChristian Ehrhardt			0x00, 0x60, 0x45, 0xB6, 0x74, 0xBB, 0x54, 0x72,
2853d9b7210SChristian Ehrhardt			0x93, 0x04, 0xC3, 0x82, 0xBE, 0x53, 0xA5, 0xAF,
2863d9b7210SChristian Ehrhardt			0x05, 0x55, 0x61, 0x76, 0xF6, 0xEA, 0xA2, 0xEF,
2873d9b7210SChristian Ehrhardt			0x1D, 0x05, 0xE4, 0xB0, 0x83, 0x18, 0x1E, 0xE6,
2883d9b7210SChristian Ehrhardt			0x74, 0xCD, 0xA5, 0xA4, 0x85, 0xF7, 0x4D, 0x7A,
2893d9b7210SChristian Ehrhardt			0xC0
2903d9b7210SChristian Ehrhardt		},
2913d9b7210SChristian Ehrhardt		.len = 776
2923d9b7210SChristian Ehrhardt	},
2933d9b7210SChristian Ehrhardt	.validAuthLenInBits = {
2943d9b7210SChristian Ehrhardt		.len = 768
2953d9b7210SChristian Ehrhardt	},
2963d9b7210SChristian Ehrhardt	.validAuthOffsetLenInBits = {
2973d9b7210SChristian Ehrhardt		.len = 64
2983d9b7210SChristian Ehrhardt	},
2993d9b7210SChristian Ehrhardt	.digest = {
3003d9b7210SChristian Ehrhardt		.data = {0x95, 0xAE, 0x41, 0xBA},
3013d9b7210SChristian Ehrhardt		.len  = 4
3023d9b7210SChristian Ehrhardt	}
3033d9b7210SChristian Ehrhardt};
3043d9b7210SChristian Ehrhardt
3053d9b7210SChristian Ehrhardtstruct kasumi_hash_test_data kasumi_hash_test_case_7 = {
3063d9b7210SChristian Ehrhardt	.key = {
3073d9b7210SChristian Ehrhardt		.data = {
3083d9b7210SChristian Ehrhardt			0x5A, 0xCB, 0x1D, 0x64, 0x4C, 0x0D, 0x51, 0x20,
3093d9b7210SChristian Ehrhardt			0x4E, 0xA5, 0xF1, 0x45, 0x10, 0x10, 0xD8, 0x52
3103d9b7210SChristian Ehrhardt		},
3113d9b7210SChristian Ehrhardt		.len = 16
3123d9b7210SChristian Ehrhardt	},
3133d9b7210SChristian Ehrhardt	.aad = {
3143d9b7210SChristian Ehrhardt		.data = {
3153d9b7210SChristian Ehrhardt			0x38, 0xA6, 0xF0, 0x56, 0x05, 0xD2, 0xEC, 0x49,
3163d9b7210SChristian Ehrhardt		},
3173d9b7210SChristian Ehrhardt		.len = 8
3183d9b7210SChristian Ehrhardt	},
3193d9b7210SChristian Ehrhardt	.plaintext = {
3203d9b7210SChristian Ehrhardt		.data = {
3213d9b7210SChristian Ehrhardt			0xAD, 0x9C, 0x44, 0x1F, 0x89, 0x0B, 0x38, 0xC4,
3223d9b7210SChristian Ehrhardt			0x57, 0xA4, 0x9D, 0x42, 0x14, 0x07, 0xE8, 0xC0
3233d9b7210SChristian Ehrhardt		},
3243d9b7210SChristian Ehrhardt		.len = 128
3253d9b7210SChristian Ehrhardt	},
3263d9b7210SChristian Ehrhardt	.validAuthLenInBits = {
3273d9b7210SChristian Ehrhardt		.len = 120
3283d9b7210SChristian Ehrhardt	},
3293d9b7210SChristian Ehrhardt	.validAuthOffsetLenInBits = {
3303d9b7210SChristian Ehrhardt		.len = 64
3313d9b7210SChristian Ehrhardt	},
3323d9b7210SChristian Ehrhardt	.digest = {
3333d9b7210SChristian Ehrhardt		.data = {0x87, 0x5F, 0xE4, 0x89},
3343d9b7210SChristian Ehrhardt		.len  = 4
3353d9b7210SChristian Ehrhardt	}
3363d9b7210SChristian Ehrhardt};
337809f0800SChristian Ehrhardt#endif /* TEST_CRYPTODEV_KASUMI_HASH_TEST_VECTORS_H_ */
338