13d9b7210SChristian Ehrhardt/*
23d9b7210SChristian Ehrhardt *   BSD LICENSE
33d9b7210SChristian Ehrhardt *
43d9b7210SChristian Ehrhardt *   Copyright(c) 2016 Intel Corporation. All rights reserved.
53d9b7210SChristian Ehrhardt *
63d9b7210SChristian Ehrhardt *   Redistribution and use in source and binary forms, with or without
73d9b7210SChristian Ehrhardt *   modification, are permitted provided that the following conditions
83d9b7210SChristian Ehrhardt *   are met:
93d9b7210SChristian Ehrhardt *
103d9b7210SChristian Ehrhardt *	 * Redistributions of source code must retain the above copyright
113d9b7210SChristian Ehrhardt *	   notice, this list of conditions and the following disclaimer.
123d9b7210SChristian Ehrhardt *	 * Redistributions in binary form must reproduce the above copyright
133d9b7210SChristian Ehrhardt *	   notice, this list of conditions and the following disclaimer in
143d9b7210SChristian Ehrhardt *	   the documentation and/or other materials provided with the
153d9b7210SChristian Ehrhardt *	   distribution.
163d9b7210SChristian Ehrhardt *	 * Neither the name of Intel Corporation nor the names of its
173d9b7210SChristian Ehrhardt *	   contributors may be used to endorse or promote products derived
183d9b7210SChristian Ehrhardt *	   from this software without specific prior written permission.
193d9b7210SChristian Ehrhardt *
203d9b7210SChristian Ehrhardt *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
213d9b7210SChristian Ehrhardt *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
223d9b7210SChristian Ehrhardt *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
233d9b7210SChristian Ehrhardt *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
243d9b7210SChristian Ehrhardt *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
253d9b7210SChristian Ehrhardt *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
263d9b7210SChristian Ehrhardt *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
273d9b7210SChristian Ehrhardt *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
283d9b7210SChristian Ehrhardt *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
293d9b7210SChristian Ehrhardt *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
303d9b7210SChristian Ehrhardt *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
313d9b7210SChristian Ehrhardt */
323d9b7210SChristian Ehrhardt
333d9b7210SChristian Ehrhardt#ifndef TEST_CRYPTODEV_AES_TEST_VECTORS_H_
343d9b7210SChristian Ehrhardt#define TEST_CRYPTODEV_AES_TEST_VECTORS_H_
353d9b7210SChristian Ehrhardt
363d9b7210SChristian Ehrhardt/* test vectors */
373d9b7210SChristian Ehrhardtstatic const uint8_t plaintext_aes128ctr[] = {
383d9b7210SChristian Ehrhardt	0x6B, 0xC1, 0xBE, 0xE2, 0x2E, 0x40, 0x9F, 0x96,
393d9b7210SChristian Ehrhardt	0xE9, 0x3D, 0x7E, 0x11, 0x73, 0x93, 0x17, 0x2A,
403d9b7210SChristian Ehrhardt	0xAE, 0x2D, 0x8A, 0x57, 0x1E, 0x03, 0xAC, 0x9C,
413d9b7210SChristian Ehrhardt	0x9E, 0xB7, 0x6F, 0xAC, 0x45, 0xAF, 0x8E, 0x51,
423d9b7210SChristian Ehrhardt	0x30, 0xC8, 0x1C, 0x46, 0xA3, 0x5C, 0xE4, 0x11,
433d9b7210SChristian Ehrhardt	0xE5, 0xFB, 0xC1, 0x19, 0x1A, 0x0A, 0x52, 0xEF,
443d9b7210SChristian Ehrhardt	0xF6, 0x9F, 0x24, 0x45, 0xDF, 0x4F, 0x9B, 0x17,
453d9b7210SChristian Ehrhardt	0xAD, 0x2B, 0x41, 0x7B, 0xE6, 0x6C, 0x37, 0x10
463d9b7210SChristian Ehrhardt};
473d9b7210SChristian Ehrhardt
483d9b7210SChristian Ehrhardtstatic const uint8_t ciphertext64_aes128ctr[] = {
493d9b7210SChristian Ehrhardt	0x87, 0x4D, 0x61, 0x91, 0xB6, 0x20, 0xE3, 0x26,
503d9b7210SChristian Ehrhardt	0x1B, 0xEF, 0x68, 0x64, 0x99, 0x0D, 0xB6, 0xCE,
513d9b7210SChristian Ehrhardt	0x98, 0x06, 0xF6, 0x6B, 0x79, 0x70, 0xFD, 0xFF,
523d9b7210SChristian Ehrhardt	0x86, 0x17, 0x18, 0x7B, 0xB9, 0xFF, 0xFD, 0xFF,
533d9b7210SChristian Ehrhardt	0x5A, 0xE4, 0xDF, 0x3E, 0xDB, 0xD5, 0xD3, 0x5E,
543d9b7210SChristian Ehrhardt	0x5B, 0x4F, 0x09, 0x02, 0x0D, 0xB0, 0x3E, 0xAB,
553d9b7210SChristian Ehrhardt	0x1E, 0x03, 0x1D, 0xDA, 0x2F, 0xBE, 0x03, 0xD1,
563d9b7210SChristian Ehrhardt	0x79, 0x21, 0x70, 0xA0, 0xF3, 0x00, 0x9C, 0xEE
573d9b7210SChristian Ehrhardt};
583d9b7210SChristian Ehrhardt
593d9b7210SChristian Ehrhardtstatic const uint8_t plaintext_aes192ctr[] = {
603d9b7210SChristian Ehrhardt	0x01, 0x0F, 0x10, 0x1F, 0x20, 0x1C, 0x0E, 0xB8,
613d9b7210SChristian Ehrhardt	0xFB, 0x5C, 0xCD, 0xCC, 0x1F, 0xF9, 0xAF, 0x0B,
623d9b7210SChristian Ehrhardt	0x95, 0x03, 0x74, 0x99, 0x49, 0xE7, 0x62, 0x55,
633d9b7210SChristian Ehrhardt	0xDA, 0xEA, 0x13, 0x20, 0x1D, 0xC6, 0xCC, 0xCC,
643d9b7210SChristian Ehrhardt	0xD1, 0x70, 0x75, 0x47, 0x02, 0x2F, 0xFB, 0x86,
653d9b7210SChristian Ehrhardt	0xBB, 0x6B, 0x23, 0xD2, 0xC9, 0x74, 0xD7, 0x7B,
663d9b7210SChristian Ehrhardt	0x08, 0x03, 0x3B, 0x79, 0x39, 0xBB, 0x91, 0x29,
673d9b7210SChristian Ehrhardt	0xDA, 0x14, 0x39, 0x8D, 0xFF, 0x81, 0x50, 0x96,
683d9b7210SChristian Ehrhardt};
693d9b7210SChristian Ehrhardt
703d9b7210SChristian Ehrhardtstatic const uint8_t ciphertext64_aes192ctr[] = {
713d9b7210SChristian Ehrhardt	0x4A, 0x6C, 0xC8, 0xCC, 0x96, 0x2A, 0x13, 0x84,
723d9b7210SChristian Ehrhardt	0x1C, 0x36, 0x88, 0xE9, 0xE5, 0x94, 0x70, 0xB2,
733d9b7210SChristian Ehrhardt	0x14, 0x5B, 0x13, 0x80, 0xEA, 0xD8, 0x8D, 0x37,
743d9b7210SChristian Ehrhardt	0xFD, 0x70, 0xA8, 0x83, 0xE8, 0x2B, 0x88, 0x1E,
753d9b7210SChristian Ehrhardt	0xBA, 0x94, 0x3F, 0xF6, 0xB3, 0x1F, 0xDE, 0x34,
763d9b7210SChristian Ehrhardt	0xF3, 0x5B, 0x80, 0xE9, 0xAB, 0xF5, 0x1C, 0x29,
773d9b7210SChristian Ehrhardt	0xB6, 0xD9, 0x76, 0x2B, 0x06, 0xC6, 0x74, 0xF1,
783d9b7210SChristian Ehrhardt	0x59, 0x5E, 0x9E, 0xA5, 0x7B, 0x2D, 0xD7, 0xF0
793d9b7210SChristian Ehrhardt};
803d9b7210SChristian Ehrhardt
813d9b7210SChristian Ehrhardtstatic const uint8_t plaintext_aes256ctr[] = {
823d9b7210SChristian Ehrhardt	0x6B, 0xC1, 0xBE, 0xE2, 0x2E, 0x40, 0x9F, 0x96,
833d9b7210SChristian Ehrhardt	0xE9, 0x3D, 0x7E, 0x11, 0x73, 0x93, 0x17, 0x2A,
843d9b7210SChristian Ehrhardt	0xAE, 0x2D, 0x8A, 0x57, 0x1E, 0x03, 0xAC, 0x9C,
853d9b7210SChristian Ehrhardt	0x9E, 0xB7, 0x6F, 0xAC, 0x45, 0xAF, 0x8E, 0x51,
863d9b7210SChristian Ehrhardt	0x30, 0xC8, 0x1C, 0x46, 0xA3, 0x5C, 0xE4, 0x11,
873d9b7210SChristian Ehrhardt	0xE5, 0xFB, 0xC1, 0x19, 0x1A, 0x0A, 0x52, 0xEF,
883d9b7210SChristian Ehrhardt	0xF6, 0x9F, 0x24, 0x45, 0xDF, 0x4F, 0x9B, 0x17,
893d9b7210SChristian Ehrhardt	0xAD, 0x2B, 0x41, 0x7B, 0xE6, 0x6C, 0x37, 0x10
903d9b7210SChristian Ehrhardt};
913d9b7210SChristian Ehrhardt
923d9b7210SChristian Ehrhardtstatic const uint8_t ciphertext64_aes256ctr[] = {
933d9b7210SChristian Ehrhardt	0x60, 0x1E, 0xC3, 0x13, 0x77, 0x57, 0x89, 0xA5,
943d9b7210SChristian Ehrhardt	0xB7, 0xA7, 0xF5, 0x04, 0xBB, 0xF3, 0xD2, 0x28,
953d9b7210SChristian Ehrhardt	0xF4, 0x43, 0xE3, 0xCA, 0x4D, 0x62, 0xB5, 0x9A,
963d9b7210SChristian Ehrhardt	0xCA, 0x84, 0xE9, 0x90, 0xCA, 0xCA, 0xF5, 0xC5,
973d9b7210SChristian Ehrhardt	0x2B, 0x09, 0x30, 0xDA, 0xA2, 0x3D, 0xE9, 0x4C,
983d9b7210SChristian Ehrhardt	0xE8, 0x70, 0x17, 0xBA, 0x2D, 0x84, 0x98, 0x8D,
993d9b7210SChristian Ehrhardt	0xDF, 0xC9, 0xC5, 0x8D, 0xB6, 0x7A, 0xAD, 0xA6,
1003d9b7210SChristian Ehrhardt	0x13, 0xC2, 0xDD, 0x08, 0x45, 0x79, 0x41, 0xA6
1013d9b7210SChristian Ehrhardt};
1023d9b7210SChristian Ehrhardt
1033d9b7210SChristian Ehrhardtstatic const uint8_t plaintext_aes_common[] = {
1043d9b7210SChristian Ehrhardt	"What a lousy earth! He wondered how many people "
1053d9b7210SChristian Ehrhardt	"were destitute that same night even in his own "
1063d9b7210SChristian Ehrhardt	"prosperous country, how many homes were "
1073d9b7210SChristian Ehrhardt	"shanties, how many husbands were drunk and "
1083d9b7210SChristian Ehrhardt	"wives socked, and how many children were "
1093d9b7210SChristian Ehrhardt	"bullied, abused, or abandoned. How many "
1103d9b7210SChristian Ehrhardt	"families hungered for food they could not "
1113d9b7210SChristian Ehrhardt	"afford to buy? How many hearts were broken? How "
1123d9b7210SChristian Ehrhardt	"many suicides would take place that same night, "
1133d9b7210SChristian Ehrhardt	"how many people would go insane? How many "
1143d9b7210SChristian Ehrhardt	"cockroaches and landlords would triumph? How "
1153d9b7210SChristian Ehrhardt	"many winners were losers, successes failures, "
1163d9b7210SChristian Ehrhardt	"and rich men poor men? How many wise guys were "
1173d9b7210SChristian Ehrhardt	"stupid? How many happy endings were unhappy "
1183d9b7210SChristian Ehrhardt	"endings? How many honest men were liars, brave "
1193d9b7210SChristian Ehrhardt	"men cowards, loyal men traitors, how many "
1203d9b7210SChristian Ehrhardt	"sainted men were corrupt, how many people in "
1213d9b7210SChristian Ehrhardt	"positions of trust had sold their souls to "
1223d9b7210SChristian Ehrhardt	"bodyguards, how many had never had souls? How "
1233d9b7210SChristian Ehrhardt	"many straight-and-narrow paths were crooked "
1243d9b7210SChristian Ehrhardt	"paths? How many best families were worst "
1253d9b7210SChristian Ehrhardt	"families and how many good people were bad "
1263d9b7210SChristian Ehrhardt	"people? When you added them all up and then "
1273d9b7210SChristian Ehrhardt	"subtracted, you might be left with only the "
1283d9b7210SChristian Ehrhardt	"children, and perhaps with Albert Einstein and "
1293d9b7210SChristian Ehrhardt	"an old violinist or sculptor somewhere."
1303d9b7210SChristian Ehrhardt};
1313d9b7210SChristian Ehrhardt
1323d9b7210SChristian Ehrhardtstatic const uint8_t ciphertext512_aes128cbc[] = {
1333d9b7210SChristian Ehrhardt	0x8B, 0x4D, 0xDA, 0x1B, 0xCF, 0x04, 0xA0, 0x31,
1343d9b7210SChristian Ehrhardt	0xB4, 0xBF, 0xBD, 0x68, 0x43, 0x20, 0x7E, 0x76,
1353d9b7210SChristian Ehrhardt	0xB1, 0x96, 0x8B, 0xA2, 0x7C, 0xA2, 0x83, 0x9E,
1363d9b7210SChristian Ehrhardt	0x39, 0x5A, 0x2F, 0x7E, 0x92, 0xB4, 0x48, 0x1A,
1373d9b7210SChristian Ehrhardt	0x3F, 0x6B, 0x5D, 0xDF, 0x52, 0x85, 0x5F, 0x8E,
1383d9b7210SChristian Ehrhardt	0x42, 0x3C, 0xFB, 0xE9, 0x1A, 0x24, 0xD6, 0x08,
1393d9b7210SChristian Ehrhardt	0xDD, 0xFD, 0x16, 0xFB, 0xE9, 0x55, 0xEF, 0xF0,
1403d9b7210SChristian Ehrhardt	0xA0, 0x8D, 0x13, 0xAB, 0x81, 0xC6, 0x90, 0x01,
1413d9b7210SChristian Ehrhardt	0xB5, 0x18, 0x84, 0xB3, 0xF6, 0xE6, 0x11, 0x57,
1423d9b7210SChristian Ehrhardt	0xD6, 0x71, 0xC6, 0x3C, 0x3F, 0x2F, 0x33, 0xEE,
1433d9b7210SChristian Ehrhardt	0x24, 0x42, 0x6E, 0xAC, 0x0B, 0xCA, 0xEC, 0xF9,
1443d9b7210SChristian Ehrhardt	0x84, 0xF8, 0x22, 0xAA, 0x60, 0xF0, 0x32, 0xA9,
1453d9b7210SChristian Ehrhardt	0x75, 0x75, 0x3B, 0xCB, 0x70, 0x21, 0x0A, 0x8D,
1463d9b7210SChristian Ehrhardt	0x0F, 0xE0, 0xC4, 0x78, 0x2B, 0xF8, 0x97, 0xE3,
1473d9b7210SChristian Ehrhardt	0xE4, 0x26, 0x4B, 0x29, 0xDA, 0x88, 0xCD, 0x46,
1483d9b7210SChristian Ehrhardt	0xEC, 0xAA, 0xF9, 0x7F, 0xF1, 0x15, 0xEA, 0xC3,
1493d9b7210SChristian Ehrhardt	0x87, 0xE6, 0x31, 0xF2, 0xCF, 0xDE, 0x4D, 0x80,
1503d9b7210SChristian Ehrhardt	0x70, 0x91, 0x7E, 0x0C, 0xF7, 0x26, 0x3A, 0x92,
1513d9b7210SChristian Ehrhardt	0x4F, 0x18, 0x83, 0xC0, 0x8F, 0x59, 0x01, 0xA5,
1523d9b7210SChristian Ehrhardt	0x88, 0xD1, 0xDB, 0x26, 0x71, 0x27, 0x16, 0xF5,
1533d9b7210SChristian Ehrhardt	0xEE, 0x10, 0x82, 0xAC, 0x68, 0x26, 0x9B, 0xE2,
1543d9b7210SChristian Ehrhardt	0x6D, 0xD8, 0x9A, 0x80, 0xDF, 0x04, 0x31, 0xD5,
1553d9b7210SChristian Ehrhardt	0xF1, 0x35, 0x5C, 0x3B, 0xDD, 0x9A, 0x65, 0xBA,
1563d9b7210SChristian Ehrhardt	0x58, 0x34, 0x85, 0x61, 0x1C, 0x42, 0x10, 0x76,
1573d9b7210SChristian Ehrhardt	0x73, 0x02, 0x42, 0xC9, 0x23, 0x18, 0x8E, 0xB4,
1583d9b7210SChristian Ehrhardt	0x6F, 0xB4, 0xA3, 0x54, 0x6E, 0x88, 0x3B, 0x62,
1593d9b7210SChristian Ehrhardt	0x7C, 0x02, 0x8D, 0x4C, 0x9F, 0xC8, 0x45, 0xF4,
1603d9b7210SChristian Ehrhardt	0xC9, 0xDE, 0x4F, 0xEB, 0x22, 0x83, 0x1B, 0xE4,
1613d9b7210SChristian Ehrhardt	0x49, 0x37, 0xE4, 0xAD, 0xE7, 0xCD, 0x21, 0x54,
1623d9b7210SChristian Ehrhardt	0xBC, 0x1C, 0xC2, 0x04, 0x97, 0xB4, 0x10, 0x61,
1633d9b7210SChristian Ehrhardt	0xF0, 0xE4, 0xEF, 0x27, 0x63, 0x3A, 0xDA, 0x91,
1643d9b7210SChristian Ehrhardt	0x41, 0x25, 0x62, 0x1C, 0x5C, 0xB6, 0x38, 0x4A,
1653d9b7210SChristian Ehrhardt	0x88, 0x71, 0x59, 0x5A, 0x8D, 0xA0, 0x09, 0xAF,
1663d9b7210SChristian Ehrhardt	0x72, 0x94, 0xD7, 0x79, 0x5C, 0x60, 0x7C, 0x8F,
1673d9b7210SChristian Ehrhardt	0x4C, 0xF5, 0xD9, 0xA1, 0x39, 0x6D, 0x81, 0x28,
1683d9b7210SChristian Ehrhardt	0xEF, 0x13, 0x28, 0xDF, 0xF5, 0x3E, 0xF7, 0x8E,
1693d9b7210SChristian Ehrhardt	0x09, 0x9C, 0x78, 0x18, 0x79, 0xB8, 0x68, 0xD7,
1703d9b7210SChristian Ehrhardt	0xA8, 0x29, 0x62, 0xAD, 0xDE, 0xE1, 0x61, 0x76,
1713d9b7210SChristian Ehrhardt	0x1B, 0x05, 0x16, 0xCD, 0xBF, 0x02, 0x8E, 0xA6,
1723d9b7210SChristian Ehrhardt	0x43, 0x6E, 0x92, 0x55, 0x4F, 0x60, 0x9C, 0x03,
1733d9b7210SChristian Ehrhardt	0xB8, 0x4F, 0xA3, 0x02, 0xAC, 0xA8, 0xA7, 0x0C,
1743d9b7210SChristian Ehrhardt	0x1E, 0xB5, 0x6B, 0xF8, 0xC8, 0x4D, 0xDE, 0xD2,
1753d9b7210SChristian Ehrhardt	0xB0, 0x29, 0x6E, 0x40, 0xE6, 0xD6, 0xC9, 0xE6,
1763d9b7210SChristian Ehrhardt	0xB9, 0x0F, 0xB6, 0x63, 0xF5, 0xAA, 0x2B, 0x96,
1773d9b7210SChristian Ehrhardt	0xA7, 0x16, 0xAC, 0x4E, 0x0A, 0x33, 0x1C, 0xA6,
1783d9b7210SChristian Ehrhardt	0xE6, 0xBD, 0x8A, 0xCF, 0x40, 0xA9, 0xB2, 0xFA,
1793d9b7210SChristian Ehrhardt	0x63, 0x27, 0xFD, 0x9B, 0xD9, 0xFC, 0xD5, 0x87,
1803d9b7210SChristian Ehrhardt	0x8D, 0x4C, 0xB6, 0xA4, 0xCB, 0xE7, 0x74, 0x55,
1813d9b7210SChristian Ehrhardt	0xF4, 0xFB, 0x41, 0x25, 0xB5, 0x4B, 0x0A, 0x1B,
1823d9b7210SChristian Ehrhardt	0xB1, 0xD6, 0xB7, 0xD9, 0x47, 0x2A, 0xC3, 0x98,
1833d9b7210SChristian Ehrhardt	0x6A, 0xC4, 0x03, 0x73, 0x1F, 0x93, 0x6E, 0x53,
1843d9b7210SChristian Ehrhardt	0x19, 0x25, 0x64, 0x15, 0x83, 0xF9, 0x73, 0x2A,
1853d9b7210SChristian Ehrhardt	0x74, 0xB4, 0x93, 0x69, 0xC4, 0x72, 0xFC, 0x26,
1863d9b7210SChristian Ehrhardt	0xA2, 0x9F, 0x43, 0x45, 0xDD, 0xB9, 0xEF, 0x36,
1873d9b7210SChristian Ehrhardt	0xC8, 0x3A, 0xCD, 0x99, 0x9B, 0x54, 0x1A, 0x36,
1883d9b7210SChristian Ehrhardt	0xC1, 0x59, 0xF8, 0x98, 0xA8, 0xCC, 0x28, 0x0D,
1893d9b7210SChristian Ehrhardt	0x73, 0x4C, 0xEE, 0x98, 0xCB, 0x7C, 0x58, 0x7E,
1903d9b7210SChristian Ehrhardt	0x20, 0x75, 0x1E, 0xB7, 0xC9, 0xF8, 0xF2, 0x0E,
1913d9b7210SChristian Ehrhardt	0x63, 0x9E, 0x05, 0x78, 0x1A, 0xB6, 0xA8, 0x7A,
1923d9b7210SChristian Ehrhardt	0xF9, 0x98, 0x6A, 0xA6, 0x46, 0x84, 0x2E, 0xF6,
1933d9b7210SChristian Ehrhardt	0x4B, 0xDC, 0x9B, 0x8F, 0x9B, 0x8F, 0xEE, 0xB4,
1943d9b7210SChristian Ehrhardt	0xAA, 0x3F, 0xEE, 0xC0, 0x37, 0x27, 0x76, 0xC7,
1953d9b7210SChristian Ehrhardt	0x95, 0xBB, 0x26, 0x74, 0x69, 0x12, 0x7F, 0xF1,
1963d9b7210SChristian Ehrhardt	0xBB, 0xFF, 0xAE, 0xB5, 0x99, 0x6E, 0xCB, 0x0C
1973d9b7210SChristian Ehrhardt};
1983d9b7210SChristian Ehrhardt
1993d9b7210SChristian Ehrhardt/* AES128-CTR-SHA1 test vector */
2003d9b7210SChristian Ehrhardtstatic const struct blockcipher_test_data aes_test_data_1 = {
2013d9b7210SChristian Ehrhardt	.crypto_algo = RTE_CRYPTO_CIPHER_AES_CTR,
2023d9b7210SChristian Ehrhardt	.cipher_key = {
2033d9b7210SChristian Ehrhardt		.data = {
2043d9b7210SChristian Ehrhardt			0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6,
2053d9b7210SChristian Ehrhardt			0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C
2063d9b7210SChristian Ehrhardt		},
2073d9b7210SChristian Ehrhardt		.len = 16
2083d9b7210SChristian Ehrhardt	},
2093d9b7210SChristian Ehrhardt	.iv = {
2103d9b7210SChristian Ehrhardt		.data = {
2113d9b7210SChristian Ehrhardt			0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7,
2123d9b7210SChristian Ehrhardt			0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF
2133d9b7210SChristian Ehrhardt		},
2143d9b7210SChristian Ehrhardt		.len = 16
2153d9b7210SChristian Ehrhardt	},
2163d9b7210SChristian Ehrhardt	.plaintext = {
2173d9b7210SChristian Ehrhardt		.data = plaintext_aes128ctr,
2183d9b7210SChristian Ehrhardt		.len = 64
2193d9b7210SChristian Ehrhardt	},
2203d9b7210SChristian Ehrhardt	.ciphertext = {
2213d9b7210SChristian Ehrhardt		.data = ciphertext64_aes128ctr,
2223d9b7210SChristian Ehrhardt		.len = 64
2233d9b7210SChristian Ehrhardt	},
2243d9b7210SChristian Ehrhardt	.auth_algo = RTE_CRYPTO_AUTH_SHA1_HMAC,
2253d9b7210SChristian Ehrhardt	.auth_key = {
2263d9b7210SChristian Ehrhardt		.data = {
2273d9b7210SChristian Ehrhardt			0xF8, 0x2A, 0xC7, 0x54, 0xDB, 0x96, 0x18, 0xAA,
2283d9b7210SChristian Ehrhardt			0xC3, 0xA1, 0x53, 0xF6, 0x1F, 0x17, 0x60, 0xBD,
2293d9b7210SChristian Ehrhardt			0xDE, 0xF4, 0xDE, 0xAD
2303d9b7210SChristian Ehrhardt		},
2313d9b7210SChristian Ehrhardt		.len = 20
2323d9b7210SChristian Ehrhardt	},
2333d9b7210SChristian Ehrhardt	.digest = {
2343d9b7210SChristian Ehrhardt		.data = {
2353d9b7210SChristian Ehrhardt			0x9B, 0x6F, 0x0C, 0x43, 0xF5, 0xC1, 0x3E, 0xB0,
2363d9b7210SChristian Ehrhardt			0xB1, 0x70, 0xB8, 0x2B, 0x33, 0x09, 0xD2, 0xB2,
2373d9b7210SChristian Ehrhardt			0x56, 0x20, 0xFB, 0xFE
2383d9b7210SChristian Ehrhardt		},
2393d9b7210SChristian Ehrhardt		.len = 20,
2403d9b7210SChristian Ehrhardt		.truncated_len = 12
2413d9b7210SChristian Ehrhardt	}
2423d9b7210SChristian Ehrhardt};
2433d9b7210SChristian Ehrhardt
2443d9b7210SChristian Ehrhardt/** AES-192-CTR XCBC test vector */
2453d9b7210SChristian Ehrhardtstatic const struct blockcipher_test_data aes_test_data_2 = {
2463d9b7210SChristian Ehrhardt	.crypto_algo = RTE_CRYPTO_CIPHER_AES_CTR,
2473d9b7210SChristian Ehrhardt	.cipher_key = {
2483d9b7210SChristian Ehrhardt		.data = {
2493d9b7210SChristian Ehrhardt			0xCB, 0xC5, 0xED, 0x5B, 0xE7, 0x7C, 0xBD, 0x8C,
2503d9b7210SChristian Ehrhardt			0x50, 0xD9, 0x30, 0xF2, 0xB5, 0x6A, 0x0E, 0x5F,
2513d9b7210SChristian Ehrhardt			0xAA, 0xAE, 0xAD, 0xA2, 0x1F, 0x49, 0x52, 0xD4
2523d9b7210SChristian Ehrhardt		},
2533d9b7210SChristian Ehrhardt		.len = 24
2543d9b7210SChristian Ehrhardt	},
2553d9b7210SChristian Ehrhardt	.iv = {
2563d9b7210SChristian Ehrhardt		.data = {
2573d9b7210SChristian Ehrhardt			0x3F, 0x69, 0xA8, 0xCD, 0xE8, 0xF0, 0xEF, 0x40,
2583d9b7210SChristian Ehrhardt			0xB8, 0x7A, 0x4B, 0xED, 0x2B, 0xAF, 0xBF, 0x57
2593d9b7210SChristian Ehrhardt		},
2603d9b7210SChristian Ehrhardt		.len = 16
2613d9b7210SChristian Ehrhardt	},
2623d9b7210SChristian Ehrhardt	.plaintext = {
2633d9b7210SChristian Ehrhardt		.data = plaintext_aes192ctr,
2643d9b7210SChristian Ehrhardt		.len = 64
2653d9b7210SChristian Ehrhardt	},
2663d9b7210SChristian Ehrhardt	.ciphertext = {
2673d9b7210SChristian Ehrhardt		.data = ciphertext64_aes192ctr,
2683d9b7210SChristian Ehrhardt		.len = 64
2693d9b7210SChristian Ehrhardt	},
2703d9b7210SChristian Ehrhardt	.auth_algo = RTE_CRYPTO_AUTH_AES_XCBC_MAC,
2713d9b7210SChristian Ehrhardt	.auth_key = {
2723d9b7210SChristian Ehrhardt		.data = {
2733d9b7210SChristian Ehrhardt			0x87, 0x61, 0x54, 0x53, 0xC4, 0x6D, 0xDD, 0x51,
2743d9b7210SChristian Ehrhardt			0xE1, 0x9F, 0x86, 0x64, 0x39, 0x0A, 0xE6, 0x59
2753d9b7210SChristian Ehrhardt		},
2763d9b7210SChristian Ehrhardt		.len = 16
2773d9b7210SChristian Ehrhardt	},
2783d9b7210SChristian Ehrhardt	.digest = {
2793d9b7210SChristian Ehrhardt		.data = {
2803d9b7210SChristian Ehrhardt			0xCA, 0x33, 0xB3, 0x3B, 0x16, 0x94, 0xAA, 0x55,
2813d9b7210SChristian Ehrhardt			0x36, 0x6B, 0x45, 0x46
2823d9b7210SChristian Ehrhardt		},
2833d9b7210SChristian Ehrhardt		.len = 12,
2843d9b7210SChristian Ehrhardt		.truncated_len = 12
2853d9b7210SChristian Ehrhardt	}
2863d9b7210SChristian Ehrhardt};
2873d9b7210SChristian Ehrhardt
2883d9b7210SChristian Ehrhardt/** AES-256-CTR SHA1 test vector */
2893d9b7210SChristian Ehrhardtstatic const struct blockcipher_test_data aes_test_data_3 = {
2903d9b7210SChristian Ehrhardt	.crypto_algo = RTE_CRYPTO_CIPHER_AES_CTR,
2913d9b7210SChristian Ehrhardt	.cipher_key = {
2923d9b7210SChristian Ehrhardt		.data = {
2933d9b7210SChristian Ehrhardt			0x60, 0x3D, 0xEB, 0x10, 0x15, 0xCA, 0x71, 0xBE,
2943d9b7210SChristian Ehrhardt			0x2B, 0x73, 0xAE, 0xF0, 0x85, 0x7D, 0x77, 0x81,
2953d9b7210SChristian Ehrhardt			0x1F, 0x35, 0x2C, 0x07, 0x3B, 0x61, 0x08, 0xD7,
2963d9b7210SChristian Ehrhardt			0x2D, 0x98, 0x10, 0xA3, 0x09, 0x14, 0xDF, 0xF4
2973d9b7210SChristian Ehrhardt		},
2983d9b7210SChristian Ehrhardt		.len = 32
2993d9b7210SChristian Ehrhardt	},
3003d9b7210SChristian Ehrhardt	.iv = {
3013d9b7210SChristian Ehrhardt		.data = {
3023d9b7210SChristian Ehrhardt			0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7,
3033d9b7210SChristian Ehrhardt			0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF
3043d9b7210SChristian Ehrhardt		},
3053d9b7210SChristian Ehrhardt		.len = 16
3063d9b7210SChristian Ehrhardt	},
3073d9b7210SChristian Ehrhardt	.plaintext = {
3083d9b7210SChristian Ehrhardt		.data = plaintext_aes256ctr,
3093d9b7210SChristian Ehrhardt		.len = 64
3103d9b7210SChristian Ehrhardt	},
3113d9b7210SChristian Ehrhardt	.ciphertext = {
3123d9b7210SChristian Ehrhardt		.data = ciphertext64_aes256ctr,
3133d9b7210SChristian Ehrhardt		.len = 64
3143d9b7210SChristian Ehrhardt	},
3153d9b7210SChristian Ehrhardt	.auth_algo = RTE_CRYPTO_AUTH_SHA1_HMAC,
3163d9b7210SChristian Ehrhardt	.auth_key = {
3173d9b7210SChristian Ehrhardt		.data = {
3183d9b7210SChristian Ehrhardt			0xF8, 0x2A, 0xC7, 0x54, 0xDB, 0x96, 0x18, 0xAA,
3193d9b7210SChristian Ehrhardt			0xC3, 0xA1, 0x53, 0xF6, 0x1F, 0x17, 0x60, 0xBD,
3203d9b7210SChristian Ehrhardt			0xDE, 0xF4, 0xDE, 0xAD
3213d9b7210SChristian Ehrhardt		},
3223d9b7210SChristian Ehrhardt		.len = 20
3233d9b7210SChristian Ehrhardt	},
3243d9b7210SChristian Ehrhardt	.digest = {
3253d9b7210SChristian Ehrhardt		.data = {
3263d9b7210SChristian Ehrhardt			0x3B, 0x1A, 0x9D, 0x82, 0x35, 0xD5, 0xDD, 0x64,
3273d9b7210SChristian Ehrhardt			0xCC, 0x1B, 0xA9, 0xC0, 0xEB, 0xE9, 0x42, 0x16,
3283d9b7210SChristian Ehrhardt			0xE7, 0x87, 0xA3, 0xEF
3293d9b7210SChristian Ehrhardt		},
3303d9b7210SChristian Ehrhardt		.len = 20,
3313d9b7210SChristian Ehrhardt		.truncated_len = 12
3323d9b7210SChristian Ehrhardt	}
3333d9b7210SChristian Ehrhardt};
3343d9b7210SChristian Ehrhardt
3353d9b7210SChristian Ehrhardt/** AES-128-CBC SHA1 test vector */
3363d9b7210SChristian Ehrhardtstatic const struct blockcipher_test_data aes_test_data_4 = {
3373d9b7210SChristian Ehrhardt	.crypto_algo = RTE_CRYPTO_CIPHER_AES_CBC,
3383d9b7210SChristian Ehrhardt	.cipher_key = {
3393d9b7210SChristian Ehrhardt		.data = {
3403d9b7210SChristian Ehrhardt			0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
3413d9b7210SChristian Ehrhardt			0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A
3423d9b7210SChristian Ehrhardt		},
3433d9b7210SChristian Ehrhardt		.len = 16
3443d9b7210SChristian Ehrhardt	},
3453d9b7210SChristian Ehrhardt	.iv = {
3463d9b7210SChristian Ehrhardt		.data = {
3473d9b7210SChristian Ehrhardt			0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
3483d9b7210SChristian Ehrhardt			0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
3493d9b7210SChristian Ehrhardt		},
3503d9b7210SChristian Ehrhardt		.len = 16
3513d9b7210SChristian Ehrhardt	},
3523d9b7210SChristian Ehrhardt	.plaintext = {
3533d9b7210SChristian Ehrhardt		.data = plaintext_aes_common,
3543d9b7210SChristian Ehrhardt		.len = 512
3553d9b7210SChristian Ehrhardt	},
3563d9b7210SChristian Ehrhardt	.ciphertext = {
3573d9b7210SChristian Ehrhardt		.data = ciphertext512_aes128cbc,
3583d9b7210SChristian Ehrhardt		.len = 512
3593d9b7210SChristian Ehrhardt	},
3603d9b7210SChristian Ehrhardt	.auth_algo = RTE_CRYPTO_AUTH_SHA1_HMAC,
3613d9b7210SChristian Ehrhardt	.auth_key = {
3623d9b7210SChristian Ehrhardt		.data = {
3633d9b7210SChristian Ehrhardt			0xF8, 0x2A, 0xC7, 0x54, 0xDB, 0x96, 0x18, 0xAA,
3643d9b7210SChristian Ehrhardt			0xC3, 0xA1, 0x53, 0xF6, 0x1F, 0x17, 0x60, 0xBD,
3653d9b7210SChristian Ehrhardt			0xDE, 0xF4, 0xDE, 0xAD
3663d9b7210SChristian Ehrhardt		},
3673d9b7210SChristian Ehrhardt		.len = 20
3683d9b7210SChristian Ehrhardt	},
3693d9b7210SChristian Ehrhardt	.digest = {
3703d9b7210SChristian Ehrhardt		.data = {
3713d9b7210SChristian Ehrhardt			0x9A, 0x4F, 0x88, 0x1B, 0xB6, 0x8F, 0xD8, 0x60,
3723d9b7210SChristian Ehrhardt			0x42, 0x1A, 0x7D, 0x3D, 0xF5, 0x82, 0x80, 0xF1,
3733d9b7210SChristian Ehrhardt			0x18, 0x8C, 0x1D, 0x32
3743d9b7210SChristian Ehrhardt		},
3753d9b7210SChristian Ehrhardt		.len = 20,
3763d9b7210SChristian Ehrhardt		.truncated_len = 12
3773d9b7210SChristian Ehrhardt	}
3783d9b7210SChristian Ehrhardt};
3793d9b7210SChristian Ehrhardt
3803d9b7210SChristian Ehrhardt/** AES-128-CBC SHA256 test vector */
3813d9b7210SChristian Ehrhardtstatic const struct blockcipher_test_data aes_test_data_5 = {
3823d9b7210SChristian Ehrhardt	.crypto_algo = RTE_CRYPTO_CIPHER_AES_CBC,
3833d9b7210SChristian Ehrhardt	.cipher_key = {
3843d9b7210SChristian Ehrhardt		.data = {
3853d9b7210SChristian Ehrhardt			0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
3863d9b7210SChristian Ehrhardt			0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A
3873d9b7210SChristian Ehrhardt		},
3883d9b7210SChristian Ehrhardt		.len = 16
3893d9b7210SChristian Ehrhardt	},
3903d9b7210SChristian Ehrhardt	.iv = {
3913d9b7210SChristian Ehrhardt		.data = {
3923d9b7210SChristian Ehrhardt			0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
3933d9b7210SChristian Ehrhardt			0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
3943d9b7210SChristian Ehrhardt		},
3953d9b7210SChristian Ehrhardt		.len = 16
3963d9b7210SChristian Ehrhardt	},
3973d9b7210SChristian Ehrhardt	.plaintext = {
3983d9b7210SChristian Ehrhardt		.data = plaintext_aes_common,
3993d9b7210SChristian Ehrhardt		.len = 512
4003d9b7210SChristian Ehrhardt	},
4013d9b7210SChristian Ehrhardt	.ciphertext = {
4023d9b7210SChristian Ehrhardt		.data = ciphertext512_aes128cbc,
4033d9b7210SChristian Ehrhardt		.len = 512
4043d9b7210SChristian Ehrhardt	},
4053d9b7210SChristian Ehrhardt	.auth_algo = RTE_CRYPTO_AUTH_SHA256_HMAC,
4063d9b7210SChristian Ehrhardt	.auth_key = {
4073d9b7210SChristian Ehrhardt		.data = {
4083d9b7210SChristian Ehrhardt			0x42, 0x1A, 0x7D, 0x3D, 0xF5, 0x82, 0x80, 0xF1,
4093d9b7210SChristian Ehrhardt			0xF1, 0x35, 0x5C, 0x3B, 0xDD, 0x9A, 0x65, 0xBA,
4103d9b7210SChristian Ehrhardt			0x58, 0x34, 0x85, 0x61, 0x1C, 0x42, 0x10, 0x76,
4113d9b7210SChristian Ehrhardt			0x9A, 0x4F, 0x88, 0x1B, 0xB6, 0x8F, 0xD8, 0x60
4123d9b7210SChristian Ehrhardt		},
4133d9b7210SChristian Ehrhardt		.len = 32
4143d9b7210SChristian Ehrhardt	},
4153d9b7210SChristian Ehrhardt	.digest = {
4163d9b7210SChristian Ehrhardt		.data = {
4173d9b7210SChristian Ehrhardt			0xC8, 0x57, 0x57, 0x31, 0x03, 0xE0, 0x03, 0x55,
4183d9b7210SChristian Ehrhardt			0x07, 0xC8, 0x9E, 0x7F, 0x48, 0x9A, 0x61, 0x9A,
4193d9b7210SChristian Ehrhardt			0x68, 0xEE, 0x03, 0x0E, 0x71, 0x75, 0xC7, 0xF4,
4203d9b7210SChristian Ehrhardt			0x2E, 0x45, 0x26, 0x32, 0x7C, 0x12, 0x15, 0x15
4213d9b7210SChristian Ehrhardt		},
4223d9b7210SChristian Ehrhardt		.len = 32,
4233d9b7210SChristian Ehrhardt		.truncated_len = 16
4243d9b7210SChristian Ehrhardt	}
4253d9b7210SChristian Ehrhardt};
4263d9b7210SChristian Ehrhardt
4273d9b7210SChristian Ehrhardt/** AES-128-CBC SHA512 test vector */
4283d9b7210SChristian Ehrhardtstatic const struct blockcipher_test_data aes_test_data_6 = {
4293d9b7210SChristian Ehrhardt	.crypto_algo = RTE_CRYPTO_CIPHER_AES_CBC,
4303d9b7210SChristian Ehrhardt	.cipher_key = {
4313d9b7210SChristian Ehrhardt		.data = {
4323d9b7210SChristian Ehrhardt			0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
4333d9b7210SChristian Ehrhardt			0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A
4343d9b7210SChristian Ehrhardt		},
4353d9b7210SChristian Ehrhardt		.len = 16
4363d9b7210SChristian Ehrhardt	},
4373d9b7210SChristian Ehrhardt	.iv = {
4383d9b7210SChristian Ehrhardt		.data = {
4393d9b7210SChristian Ehrhardt			0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
4403d9b7210SChristian Ehrhardt			0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
4413d9b7210SChristian Ehrhardt		},
4423d9b7210SChristian Ehrhardt		.len = 16
4433d9b7210SChristian Ehrhardt	},
4443d9b7210SChristian Ehrhardt	.plaintext = {
4453d9b7210SChristian Ehrhardt		.data = plaintext_aes_common,
4463d9b7210SChristian Ehrhardt		.len = 512
4473d9b7210SChristian Ehrhardt	},
4483d9b7210SChristian Ehrhardt	.ciphertext = {
4493d9b7210SChristian Ehrhardt		.data = ciphertext512_aes128cbc,
4503d9b7210SChristian Ehrhardt		.len = 512
4513d9b7210SChristian Ehrhardt	},
4523d9b7210SChristian Ehrhardt	.auth_algo = RTE_CRYPTO_AUTH_SHA512_HMAC,
4533d9b7210SChristian Ehrhardt	.auth_key = {
4543d9b7210SChristian Ehrhardt		.data = {
4553d9b7210SChristian Ehrhardt			0x42, 0x1A, 0x7D, 0x3D, 0xF5, 0x82, 0x80, 0xF1,
4563d9b7210SChristian Ehrhardt			0xF1, 0x35, 0x5C, 0x3B, 0xDD, 0x9A, 0x65, 0xBA,
4573d9b7210SChristian Ehrhardt			0x58, 0x34, 0x85, 0x65, 0x1C, 0x42, 0x50, 0x76,
4583d9b7210SChristian Ehrhardt			0x9A, 0xAF, 0x88, 0x1B, 0xB6, 0x8F, 0xF8, 0x60,
4593d9b7210SChristian Ehrhardt			0xA2, 0x5A, 0x7F, 0x3F, 0xF4, 0x72, 0x70, 0xF1,
4603d9b7210SChristian Ehrhardt			0xF5, 0x35, 0x4C, 0x3B, 0xDD, 0x90, 0x65, 0xB0,
4613d9b7210SChristian Ehrhardt			0x47, 0x3A, 0x75, 0x61, 0x5C, 0xA2, 0x10, 0x76,
4623d9b7210SChristian Ehrhardt			0x9A, 0xAF, 0x77, 0x5B, 0xB6, 0x7F, 0xF7, 0x60
4633d9b7210SChristian Ehrhardt		},
4643d9b7210SChristian Ehrhardt		.len = 64
4653d9b7210SChristian Ehrhardt	},
4663d9b7210SChristian Ehrhardt	.digest = {
4673d9b7210SChristian Ehrhardt		.data = {
4683d9b7210SChristian Ehrhardt			0x5D, 0x54, 0x66, 0xC1, 0x6E, 0xBC, 0x04, 0xB8,
4693d9b7210SChristian Ehrhardt			0x46, 0xB8, 0x08, 0x6E, 0xE0, 0xF0, 0x43, 0x48,
4703d9b7210SChristian Ehrhardt			0x37, 0x96, 0x9C, 0xC6, 0x9C, 0xC2, 0x1E, 0xE8,
4713d9b7210SChristian Ehrhardt			0xF2, 0x0C, 0x0B, 0xEF, 0x86, 0xA2, 0xE3, 0x70,
4723d9b7210SChristian Ehrhardt			0x95, 0xC8, 0xB3, 0x06, 0x47, 0xA9, 0x90, 0xE8,
4733d9b7210SChristian Ehrhardt			0xA0, 0xC6, 0x72, 0x69, 0x05, 0xC0, 0x0D, 0x0E,
4743d9b7210SChristian Ehrhardt			0x21, 0x96, 0x65, 0x93, 0x74, 0x43, 0x2A, 0x1D,
4753d9b7210SChristian Ehrhardt			0x2E, 0xBF, 0xC2, 0xC2, 0xEE, 0xCC, 0x2F, 0x0A
4763d9b7210SChristian Ehrhardt		},
4773d9b7210SChristian Ehrhardt		.len = 64,
4783d9b7210SChristian Ehrhardt		.truncated_len = 32
4793d9b7210SChristian Ehrhardt	}
4803d9b7210SChristian Ehrhardt};
4813d9b7210SChristian Ehrhardt
4823d9b7210SChristian Ehrhardt/** AES-128-CBC XCBC test vector */
4833d9b7210SChristian Ehrhardtstatic const struct blockcipher_test_data aes_test_data_7 = {
4843d9b7210SChristian Ehrhardt	.crypto_algo = RTE_CRYPTO_CIPHER_AES_CBC,
4853d9b7210SChristian Ehrhardt	.cipher_key = {
4863d9b7210SChristian Ehrhardt		.data = {
4873d9b7210SChristian Ehrhardt			0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
4883d9b7210SChristian Ehrhardt			0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A
4893d9b7210SChristian Ehrhardt		},
4903d9b7210SChristian Ehrhardt		.len = 16
4913d9b7210SChristian Ehrhardt	},
4923d9b7210SChristian Ehrhardt	.iv = {
4933d9b7210SChristian Ehrhardt		.data = {
4943d9b7210SChristian Ehrhardt			0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
4953d9b7210SChristian Ehrhardt			0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
4963d9b7210SChristian Ehrhardt		},
4973d9b7210SChristian Ehrhardt		.len = 16
4983d9b7210SChristian Ehrhardt	},
4993d9b7210SChristian Ehrhardt	.plaintext = {
5003d9b7210SChristian Ehrhardt		.data = plaintext_aes_common,
5013d9b7210SChristian Ehrhardt		.len = 512
5023d9b7210SChristian Ehrhardt	},
5033d9b7210SChristian Ehrhardt	.ciphertext = {
5043d9b7210SChristian Ehrhardt		.data = ciphertext512_aes128cbc,
5053d9b7210SChristian Ehrhardt		.len = 512
5063d9b7210SChristian Ehrhardt	},
5073d9b7210SChristian Ehrhardt	.auth_algo = RTE_CRYPTO_AUTH_AES_XCBC_MAC,
5083d9b7210SChristian Ehrhardt	.auth_key = {
5093d9b7210SChristian Ehrhardt		.data = {
5103d9b7210SChristian Ehrhardt			0x87, 0x61, 0x54, 0x53, 0xC4, 0x6D, 0xDD, 0x51,
5113d9b7210SChristian Ehrhardt			0xE1, 0x9F, 0x86, 0x64, 0x39, 0x0A, 0xE6, 0x59
5123d9b7210SChristian Ehrhardt		},
5133d9b7210SChristian Ehrhardt		.len = 16
5143d9b7210SChristian Ehrhardt	},
5153d9b7210SChristian Ehrhardt	.digest = {
5163d9b7210SChristian Ehrhardt		.data = {
5173d9b7210SChristian Ehrhardt			0xE0, 0xAC, 0x9A, 0xC4, 0x22, 0x64, 0x35, 0x89,
5183d9b7210SChristian Ehrhardt			0x77, 0x1D, 0x8B, 0x75
5193d9b7210SChristian Ehrhardt		},
5203d9b7210SChristian Ehrhardt		.len = 12,
5213d9b7210SChristian Ehrhardt		.truncated_len = 12
5223d9b7210SChristian Ehrhardt	}
5233d9b7210SChristian Ehrhardt};
5243d9b7210SChristian Ehrhardt
5253d9b7210SChristian Ehrhardt/** AES-128-CBC SHA224 test vector */
5263d9b7210SChristian Ehrhardtstatic const struct blockcipher_test_data aes_test_data_8 = {
5273d9b7210SChristian Ehrhardt	.crypto_algo = RTE_CRYPTO_CIPHER_AES_CBC,
5283d9b7210SChristian Ehrhardt	.cipher_key = {
5293d9b7210SChristian Ehrhardt		.data = {
5303d9b7210SChristian Ehrhardt			0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
5313d9b7210SChristian Ehrhardt			0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A
5323d9b7210SChristian Ehrhardt		},
5333d9b7210SChristian Ehrhardt		.len = 16
5343d9b7210SChristian Ehrhardt	},
5353d9b7210SChristian Ehrhardt	.iv = {
5363d9b7210SChristian Ehrhardt		.data = {
5373d9b7210SChristian Ehrhardt			0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
5383d9b7210SChristian Ehrhardt			0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
5393d9b7210SChristian Ehrhardt		},
5403d9b7210SChristian Ehrhardt		.len = 16
5413d9b7210SChristian Ehrhardt	},
5423d9b7210SChristian Ehrhardt	.plaintext = {
5433d9b7210SChristian Ehrhardt		.data = plaintext_aes_common,
5443d9b7210SChristian Ehrhardt		.len = 512
5453d9b7210SChristian Ehrhardt	},
5463d9b7210SChristian Ehrhardt	.ciphertext = {
5473d9b7210SChristian Ehrhardt		.data = ciphertext512_aes128cbc,
5483d9b7210SChristian Ehrhardt		.len = 512
5493d9b7210SChristian Ehrhardt	},
5503d9b7210SChristian Ehrhardt	.auth_algo = RTE_CRYPTO_AUTH_SHA224_HMAC,
5513d9b7210SChristian Ehrhardt	.auth_key = {
5523d9b7210SChristian Ehrhardt		.data = {
5533d9b7210SChristian Ehrhardt			0x42, 0x1A, 0x7D, 0x3D, 0xF5, 0x82, 0x80, 0xF1,
5543d9b7210SChristian Ehrhardt			0xF1, 0x35, 0x5C, 0x3B, 0xDD, 0x9A, 0x65, 0xBA,
5553d9b7210SChristian Ehrhardt			0x58, 0x34, 0x85, 0x65, 0x1C, 0x42, 0x50, 0x76,
5563d9b7210SChristian Ehrhardt			0x9A, 0xAF, 0x88, 0x1B, 0xB6, 0x8F, 0xF8, 0x60,
5573d9b7210SChristian Ehrhardt			0xA2, 0x5A, 0x7F, 0x3F, 0xF4, 0x72, 0x70, 0xF1,
5583d9b7210SChristian Ehrhardt			0xF5, 0x35, 0x4C, 0x3B, 0xDD, 0x90, 0x65, 0xB0,
5593d9b7210SChristian Ehrhardt			0x47, 0x3A, 0x75, 0x61, 0x5C, 0xA2, 0x10, 0x76,
5603d9b7210SChristian Ehrhardt			0x9A, 0xAF, 0x77, 0x5B, 0xB6, 0x7F, 0xF7, 0x60
5613d9b7210SChristian Ehrhardt		},
5623d9b7210SChristian Ehrhardt		.len = 64
5633d9b7210SChristian Ehrhardt	},
5643d9b7210SChristian Ehrhardt	.digest = {
5653d9b7210SChristian Ehrhardt		.data = {
5663d9b7210SChristian Ehrhardt			0xA3, 0xCA, 0xC7, 0x1D, 0xA8, 0x61, 0x30, 0x98,
5673d9b7210SChristian Ehrhardt			0x3B, 0x8F, 0x01, 0x19, 0xAE, 0x8D, 0xBD, 0x34,
5683d9b7210SChristian Ehrhardt			0x40, 0x63, 0xA8, 0x2F, 0xDF, 0x85, 0x2B, 0x7F,
5693d9b7210SChristian Ehrhardt			0x63, 0x7C, 0xDD, 0xB7
5703d9b7210SChristian Ehrhardt		},
5713d9b7210SChristian Ehrhardt		.len = 28,
5723d9b7210SChristian Ehrhardt		.truncated_len = 14
5733d9b7210SChristian Ehrhardt	}
5743d9b7210SChristian Ehrhardt};
5753d9b7210SChristian Ehrhardt
5763d9b7210SChristian Ehrhardt/** AES-128-CBC SHA384 test vector */
5773d9b7210SChristian Ehrhardtstatic const struct blockcipher_test_data aes_test_data_9 = {
5783d9b7210SChristian Ehrhardt	.crypto_algo = RTE_CRYPTO_CIPHER_AES_CBC,
5793d9b7210SChristian Ehrhardt	.cipher_key = {
5803d9b7210SChristian Ehrhardt		.data = {
5813d9b7210SChristian Ehrhardt			0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
5823d9b7210SChristian Ehrhardt			0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A
5833d9b7210SChristian Ehrhardt		},
5843d9b7210SChristian Ehrhardt		.len = 16
5853d9b7210SChristian Ehrhardt	},
5863d9b7210SChristian Ehrhardt	.iv = {
5873d9b7210SChristian Ehrhardt		.data = {
5883d9b7210SChristian Ehrhardt			0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
5893d9b7210SChristian Ehrhardt			0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
5903d9b7210SChristian Ehrhardt		},
5913d9b7210SChristian Ehrhardt		.len = 16
5923d9b7210SChristian Ehrhardt	},
5933d9b7210SChristian Ehrhardt	.plaintext = {
5943d9b7210SChristian Ehrhardt		.data = plaintext_aes_common,
5953d9b7210SChristian Ehrhardt		.len = 512
5963d9b7210SChristian Ehrhardt	},
5973d9b7210SChristian Ehrhardt	.ciphertext = {
5983d9b7210SChristian Ehrhardt		.data = ciphertext512_aes128cbc,
5993d9b7210SChristian Ehrhardt		.len = 512
6003d9b7210SChristian Ehrhardt	},
6013d9b7210SChristian Ehrhardt	.auth_algo = RTE_CRYPTO_AUTH_SHA384_HMAC,
6023d9b7210SChristian Ehrhardt	.auth_key = {
6033d9b7210SChristian Ehrhardt		.data = {
6043d9b7210SChristian Ehrhardt			0x42, 0x1A, 0x7D, 0x3D, 0xF5, 0x82, 0x80, 0xF1,
6053d9b7210SChristian Ehrhardt			0xF1, 0x35, 0x5C, 0x3B, 0xDD, 0x9A, 0x65, 0xBA,
6063d9b7210SChristian Ehrhardt			0x58, 0x34, 0x85, 0x65, 0x1C, 0x42, 0x50, 0x76,
6073d9b7210SChristian Ehrhardt			0x9A, 0xAF, 0x88, 0x1B, 0xB6, 0x8F, 0xF8, 0x60,
6083d9b7210SChristian Ehrhardt			0xA2, 0x5A, 0x7F, 0x3F, 0xF4, 0x72, 0x70, 0xF1,
6093d9b7210SChristian Ehrhardt			0xF5, 0x35, 0x4C, 0x3B, 0xDD, 0x90, 0x65, 0xB0,
6103d9b7210SChristian Ehrhardt			0x47, 0x3A, 0x75, 0x61, 0x5C, 0xA2, 0x10, 0x76,
6113d9b7210SChristian Ehrhardt			0x9A, 0xAF, 0x77, 0x5B, 0xB6, 0x7F, 0xF7, 0x60,
6123d9b7210SChristian Ehrhardt			0x42, 0x1A, 0x7D, 0x3D, 0xF5, 0x82, 0x80, 0xF1,
6133d9b7210SChristian Ehrhardt			0xF1, 0x35, 0x5C, 0x3B, 0xDD, 0x9A, 0x65, 0xBA,
6143d9b7210SChristian Ehrhardt			0x58, 0x34, 0x85, 0x65, 0x1C, 0x42, 0x50, 0x76,
6153d9b7210SChristian Ehrhardt			0x9A, 0xAF, 0x88, 0x1B, 0xB6, 0x8F, 0xF8, 0x60,
6163d9b7210SChristian Ehrhardt			0xA2, 0x5A, 0x7F, 0x3F, 0xF4, 0x72, 0x70, 0xF1,
6173d9b7210SChristian Ehrhardt			0xF5, 0x35, 0x4C, 0x3B, 0xDD, 0x90, 0x65, 0xB0,
6183d9b7210SChristian Ehrhardt			0x47, 0x3A, 0x75, 0x61, 0x5C, 0xA2, 0x10, 0x76,
6193d9b7210SChristian Ehrhardt			0x9A, 0xAF, 0x77, 0x5B, 0xB6, 0x7F, 0xF7, 0x60
6203d9b7210SChristian Ehrhardt		},
6213d9b7210SChristian Ehrhardt		.len = 128
6223d9b7210SChristian Ehrhardt	},
6233d9b7210SChristian Ehrhardt	.digest = {
6243d9b7210SChristian Ehrhardt		.data = {
6253d9b7210SChristian Ehrhardt			0x23, 0x60, 0xC8, 0xB1, 0x2D, 0x6C, 0x1E, 0x72,
6263d9b7210SChristian Ehrhardt			0x25, 0xAB, 0xF9, 0xC3, 0x9A, 0xA9, 0x4F, 0x8C,
6273d9b7210SChristian Ehrhardt			0x56, 0x38, 0x65, 0x0E, 0x74, 0xD5, 0x45, 0x9D,
6283d9b7210SChristian Ehrhardt			0xA3, 0xFD, 0x7E, 0x6D, 0x9E, 0x74, 0x88, 0x9D,
6293d9b7210SChristian Ehrhardt			0xA7, 0x12, 0x9D, 0xD8, 0x81, 0x3C, 0x86, 0x2F,
6303d9b7210SChristian Ehrhardt			0x4D, 0xF9, 0x6F, 0x0A, 0xB0, 0xC9, 0xEB, 0x0B
6313d9b7210SChristian Ehrhardt		},
6323d9b7210SChristian Ehrhardt		.len = 48,
6333d9b7210SChristian Ehrhardt		.truncated_len = 24
6343d9b7210SChristian Ehrhardt	}
6353d9b7210SChristian Ehrhardt};
6363d9b7210SChristian Ehrhardt
6373d9b7210SChristian Ehrhardtstatic const uint8_t ciphertext512_aes192cbc[] = {
6383d9b7210SChristian Ehrhardt	0x45, 0xEE, 0x9A, 0xEA, 0x3C, 0x03, 0xFC, 0x4C,
6393d9b7210SChristian Ehrhardt	0x84, 0x36, 0xB0, 0xDA, 0xB0, 0xDC, 0xF3, 0x5B,
6403d9b7210SChristian Ehrhardt	0x75, 0xA7, 0xBE, 0x0E, 0xC0, 0x8D, 0x6C, 0xF8,
6413d9b7210SChristian Ehrhardt	0xC1, 0x0F, 0xD0, 0x35, 0x1D, 0x82, 0xAE, 0x7C,
6423d9b7210SChristian Ehrhardt	0x57, 0xC5, 0x7A, 0x55, 0x87, 0x1B, 0xD4, 0x03,
6433d9b7210SChristian Ehrhardt	0x0A, 0x64, 0xC9, 0xE0, 0xF4, 0xC7, 0x6F, 0x57,
6443d9b7210SChristian Ehrhardt	0x52, 0xC6, 0x73, 0xBA, 0x84, 0x0B, 0x5B, 0x89,
6453d9b7210SChristian Ehrhardt	0x21, 0xD2, 0x9B, 0x88, 0x68, 0xF5, 0xA9, 0x7F,
6463d9b7210SChristian Ehrhardt	0x3F, 0x49, 0xEB, 0xF4, 0xD4, 0x52, 0xD2, 0x64,
6473d9b7210SChristian Ehrhardt	0x80, 0xB2, 0x53, 0xDA, 0x19, 0xF6, 0x10, 0x24,
6483d9b7210SChristian Ehrhardt	0x23, 0x26, 0x7A, 0x7C, 0x07, 0x57, 0x4B, 0x0E,
6493d9b7210SChristian Ehrhardt	0x58, 0x49, 0x61, 0xD1, 0xDC, 0x9A, 0x32, 0x6B,
6503d9b7210SChristian Ehrhardt	0x0F, 0x43, 0x9E, 0x4D, 0xB4, 0x07, 0x4E, 0xB3,
6513d9b7210SChristian Ehrhardt	0x51, 0x74, 0xDE, 0x29, 0xBC, 0x98, 0xF9, 0xDF,
6523d9b7210SChristian Ehrhardt	0x78, 0x9A, 0x18, 0x9C, 0xD6, 0x7A, 0x55, 0x7C,
6533d9b7210SChristian Ehrhardt	0xE6, 0x1D, 0x5C, 0x1A, 0x99, 0xD2, 0xC3, 0x7B,
6543d9b7210SChristian Ehrhardt	0x9F, 0x96, 0x74, 0x2D, 0xE0, 0xEF, 0xD1, 0xE3,
6553d9b7210SChristian Ehrhardt	0x08, 0x9F, 0xAF, 0xE6, 0xED, 0xCA, 0xE1, 0xEA,
6563d9b7210SChristian Ehrhardt	0x23, 0x6F, 0x7C, 0x81, 0xA8, 0xC0, 0x5B, 0x8B,
6573d9b7210SChristian Ehrhardt	0x53, 0x90, 0x51, 0x2D, 0x0F, 0xF6, 0x7D, 0xA7,
6583d9b7210SChristian Ehrhardt	0x1C, 0xBD, 0x83, 0x84, 0x54, 0xA4, 0x15, 0xFB,
6593d9b7210SChristian Ehrhardt	0x3E, 0x25, 0xA7, 0x3A, 0x0A, 0x73, 0xD9, 0x88,
6603d9b7210SChristian Ehrhardt	0x6F, 0x80, 0x78, 0x95, 0x7F, 0x60, 0xAA, 0x86,
6613d9b7210SChristian Ehrhardt	0x8A, 0xFC, 0xDF, 0xC1, 0xCB, 0xDE, 0xBB, 0x25,
6623d9b7210SChristian Ehrhardt	0x52, 0x20, 0xC6, 0x79, 0xD4, 0x0F, 0x25, 0xE7,
6633d9b7210SChristian Ehrhardt	0xDB, 0xB2, 0x17, 0xA4, 0x6F, 0x3C, 0x6F, 0x91,
6643d9b7210SChristian Ehrhardt	0xF6, 0x44, 0x1E, 0xB6, 0x85, 0xBC, 0x7A, 0x14,
6653d9b7210SChristian Ehrhardt	0x10, 0x72, 0xBD, 0x16, 0x63, 0x39, 0x9E, 0x7B,
6663d9b7210SChristian Ehrhardt	0x84, 0x5B, 0x17, 0x61, 0xB1, 0x5D, 0x82, 0x0B,
6673d9b7210SChristian Ehrhardt	0x6D, 0x37, 0xD7, 0x79, 0xB8, 0x24, 0x91, 0x30,
6683d9b7210SChristian Ehrhardt	0x82, 0x91, 0x02, 0xB1, 0x18, 0x4B, 0xE0, 0xF4,
6693d9b7210SChristian Ehrhardt	0x13, 0x1B, 0xB2, 0x4C, 0xDA, 0xB8, 0x99, 0x96,
6703d9b7210SChristian Ehrhardt	0x83, 0x2F, 0xBE, 0x53, 0x8D, 0xDE, 0xFA, 0xAD,
6713d9b7210SChristian Ehrhardt	0xF6, 0x5C, 0xDB, 0xE5, 0x66, 0x26, 0x8F, 0x13,
6723d9b7210SChristian Ehrhardt	0x2B, 0x76, 0x47, 0x73, 0xDE, 0x1A, 0x74, 0xA6,
6733d9b7210SChristian Ehrhardt	0x30, 0xAF, 0x42, 0xA0, 0xE5, 0xD2, 0x8F, 0xC2,
6743d9b7210SChristian Ehrhardt	0xED, 0x3E, 0x9E, 0x29, 0x54, 0x3C, 0xDE, 0x9F,
6753d9b7210SChristian Ehrhardt	0x5D, 0x30, 0x2B, 0x63, 0xFB, 0xE3, 0xB1, 0x07,
6763d9b7210SChristian Ehrhardt	0xEE, 0x74, 0x4A, 0xAF, 0xB1, 0x20, 0x8D, 0xEC,
6773d9b7210SChristian Ehrhardt	0xE6, 0x78, 0x16, 0x8D, 0xA4, 0x6E, 0x34, 0x7D,
6783d9b7210SChristian Ehrhardt	0x47, 0xFB, 0x0B, 0xC1, 0x32, 0xD7, 0x0D, 0x6C,
6793d9b7210SChristian Ehrhardt	0x6F, 0x93, 0x9C, 0x5E, 0xEF, 0x1F, 0x9C, 0x45,
6803d9b7210SChristian Ehrhardt	0x80, 0x6B, 0x74, 0xA6, 0x81, 0xF2, 0xF6, 0xFA,
6813d9b7210SChristian Ehrhardt	0xAA, 0x9D, 0x4F, 0xCA, 0xB5, 0x90, 0x59, 0xB0,
6823d9b7210SChristian Ehrhardt	0x3B, 0xF2, 0xF0, 0x75, 0xFD, 0x8A, 0xD8, 0x97,
6833d9b7210SChristian Ehrhardt	0x65, 0x88, 0x56, 0x4C, 0x44, 0xDF, 0x73, 0xF7,
6843d9b7210SChristian Ehrhardt	0x56, 0x9C, 0x48, 0x7E, 0xB0, 0x1F, 0x1D, 0x7D,
6853d9b7210SChristian Ehrhardt	0x6A, 0x11, 0xF5, 0xC2, 0xF4, 0x17, 0xEF, 0x58,
6863d9b7210SChristian Ehrhardt	0xD8, 0x2A, 0xAF, 0x56, 0x2F, 0xCF, 0xEC, 0xA4,
6873d9b7210SChristian Ehrhardt	0x58, 0x8B, 0x60, 0xCE, 0xD4, 0x0F, 0x9C, 0x21,
6883d9b7210SChristian Ehrhardt	0xEC, 0x3E, 0x74, 0x7B, 0x81, 0x3D, 0x69, 0xC6,
6893d9b7210SChristian Ehrhardt	0x5E, 0x12, 0x83, 0xE9, 0xEF, 0x81, 0x58, 0x36,
6903d9b7210SChristian Ehrhardt	0x6A, 0x60, 0x0F, 0x54, 0x28, 0x11, 0xF9, 0x64,
6913d9b7210SChristian Ehrhardt	0x36, 0xAD, 0x79, 0xF5, 0x1C, 0x74, 0xD0, 0xC3,
6923d9b7210SChristian Ehrhardt	0x7B, 0x61, 0xE1, 0x92, 0xB0, 0x13, 0x91, 0x87,
6933d9b7210SChristian Ehrhardt	0x32, 0x1F, 0xF2, 0x5A, 0xDA, 0x25, 0x69, 0xEB,
6943d9b7210SChristian Ehrhardt	0xD7, 0x32, 0x7F, 0xF5, 0x23, 0x21, 0x54, 0x47,
6953d9b7210SChristian Ehrhardt	0x7B, 0x1B, 0x33, 0xB0, 0x3D, 0xF6, 0xE2, 0x7E,
6963d9b7210SChristian Ehrhardt	0x3E, 0xA2, 0x9E, 0xCA, 0x48, 0x0B, 0x4A, 0x29,
6973d9b7210SChristian Ehrhardt	0x81, 0xD4, 0x4E, 0xD5, 0x69, 0xFB, 0xCD, 0x37,
6983d9b7210SChristian Ehrhardt	0x8A, 0xC1, 0x5B, 0x50, 0xFF, 0xB5, 0x7D, 0x43,
6993d9b7210SChristian Ehrhardt	0x0F, 0xAE, 0xA6, 0xC2, 0xE5, 0x8F, 0x45, 0xB2,
7003d9b7210SChristian Ehrhardt	0x85, 0x99, 0x02, 0xA2, 0x9B, 0xBE, 0x90, 0x43,
7013d9b7210SChristian Ehrhardt	0x4F, 0x2F, 0x50, 0xE2, 0x77, 0x62, 0xD9, 0xCC
7023d9b7210SChristian Ehrhardt};
7033d9b7210SChristian Ehrhardt
7043d9b7210SChristian Ehrhardt/** AES-192-CBC test vector */
7053d9b7210SChristian Ehrhardtstatic const struct blockcipher_test_data aes_test_data_10 = {
7063d9b7210SChristian Ehrhardt	.crypto_algo = RTE_CRYPTO_CIPHER_AES_CBC,
7073d9b7210SChristian Ehrhardt	.cipher_key = {
7083d9b7210SChristian Ehrhardt		.data = {
7093d9b7210SChristian Ehrhardt			0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
7103d9b7210SChristian Ehrhardt			0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A,
7113d9b7210SChristian Ehrhardt			0xD4, 0xC3, 0xA3, 0xAA, 0x33, 0x62, 0x61, 0xE0
7123d9b7210SChristian Ehrhardt		},
7133d9b7210SChristian Ehrhardt		.len = 24
7143d9b7210SChristian Ehrhardt	},
7153d9b7210SChristian Ehrhardt	.iv = {
7163d9b7210SChristian Ehrhardt		.data = {
7173d9b7210SChristian Ehrhardt			0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
7183d9b7210SChristian Ehrhardt			0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
7193d9b7210SChristian Ehrhardt		},
7203d9b7210SChristian Ehrhardt		.len = 16
7213d9b7210SChristian Ehrhardt	},
7223d9b7210SChristian Ehrhardt	.plaintext = {
7233d9b7210SChristian Ehrhardt		.data = plaintext_aes_common,
7243d9b7210SChristian Ehrhardt		.len = 512
7253d9b7210SChristian Ehrhardt	},
7263d9b7210SChristian Ehrhardt	.ciphertext = {
7273d9b7210SChristian Ehrhardt		.data = ciphertext512_aes192cbc,
7283d9b7210SChristian Ehrhardt		.len = 512
7293d9b7210SChristian Ehrhardt	}
7303d9b7210SChristian Ehrhardt};
7313d9b7210SChristian Ehrhardt
7323d9b7210SChristian Ehrhardtstatic const uint8_t ciphertext512_aes256cbc[] = {
7333d9b7210SChristian Ehrhardt	0xF3, 0xDD, 0xF0, 0x0B, 0xFF, 0xA2, 0x6A, 0x04,
7343d9b7210SChristian Ehrhardt	0xBE, 0xDA, 0x52, 0xA6, 0xFE, 0x6B, 0xA6, 0xA7,
7353d9b7210SChristian Ehrhardt	0x48, 0x1D, 0x7D, 0x98, 0x65, 0xDB, 0xEF, 0x06,
7363d9b7210SChristian Ehrhardt	0x26, 0xB5, 0x8E, 0xEB, 0x05, 0x0E, 0x77, 0x98,
7373d9b7210SChristian Ehrhardt	0x17, 0x8E, 0xD0, 0xD4, 0x7B, 0x92, 0x8F, 0x5C,
7383d9b7210SChristian Ehrhardt	0xD0, 0x74, 0x5C, 0xA8, 0x4B, 0x54, 0xB6, 0x2F,
7393d9b7210SChristian Ehrhardt	0x83, 0x72, 0x2C, 0xFF, 0x72, 0xE9, 0xE4, 0x15,
7403d9b7210SChristian Ehrhardt	0x4C, 0x32, 0xAF, 0xC8, 0xC9, 0x89, 0x3C, 0x6E,
7413d9b7210SChristian Ehrhardt	0x31, 0xD5, 0xC0, 0x16, 0xC0, 0x31, 0x7D, 0x11,
7423d9b7210SChristian Ehrhardt	0xAB, 0xCB, 0xDE, 0xD2, 0xD6, 0xAA, 0x76, 0x5E,
7433d9b7210SChristian Ehrhardt	0xBA, 0xF6, 0xE2, 0x92, 0xCB, 0x86, 0x07, 0xFA,
7443d9b7210SChristian Ehrhardt	0xD4, 0x9E, 0x83, 0xED, 0xFD, 0xB8, 0x70, 0x54,
7453d9b7210SChristian Ehrhardt	0x6B, 0xBE, 0xEC, 0x72, 0xDD, 0x28, 0x5E, 0x95,
7463d9b7210SChristian Ehrhardt	0x78, 0xA5, 0x28, 0x43, 0x3D, 0x6D, 0xB1, 0xD9,
7473d9b7210SChristian Ehrhardt	0x69, 0x1F, 0xC9, 0x66, 0x0E, 0x32, 0x44, 0x08,
7483d9b7210SChristian Ehrhardt	0xD2, 0xAE, 0x2C, 0x43, 0xF2, 0xD0, 0x7D, 0x26,
7493d9b7210SChristian Ehrhardt	0x70, 0xE5, 0xA1, 0xCA, 0x37, 0xE9, 0x7D, 0xC7,
7503d9b7210SChristian Ehrhardt	0xA3, 0xFA, 0x81, 0x91, 0x64, 0xAA, 0x64, 0x91,
7513d9b7210SChristian Ehrhardt	0x9A, 0x95, 0x2D, 0xC9, 0xF9, 0xCE, 0xFE, 0x9F,
7523d9b7210SChristian Ehrhardt	0xC4, 0xD8, 0x81, 0xBE, 0x57, 0x84, 0xC5, 0x02,
7533d9b7210SChristian Ehrhardt	0xDB, 0x30, 0xC1, 0xD9, 0x0E, 0xA0, 0xA6, 0x00,
7543d9b7210SChristian Ehrhardt	0xD6, 0xF3, 0x52, 0x7E, 0x0D, 0x23, 0x6B, 0x2B,
7553d9b7210SChristian Ehrhardt	0x34, 0x99, 0x1F, 0x70, 0x27, 0x6D, 0x58, 0x84,
7563d9b7210SChristian Ehrhardt	0x93, 0x77, 0xB8, 0x3E, 0xF1, 0x71, 0x58, 0x42,
7573d9b7210SChristian Ehrhardt	0x8B, 0x2B, 0xC8, 0x6D, 0x05, 0x84, 0xFF, 0x4E,
7583d9b7210SChristian Ehrhardt	0x85, 0xEF, 0x4A, 0x9D, 0x91, 0x6A, 0xD5, 0xE1,
7593d9b7210SChristian Ehrhardt	0xAF, 0x01, 0xEB, 0x83, 0x8F, 0x23, 0x7C, 0x7F,
7603d9b7210SChristian Ehrhardt	0x12, 0x91, 0x05, 0xF0, 0x4E, 0xD9, 0x17, 0x62,
7613d9b7210SChristian Ehrhardt	0x75, 0xBB, 0xAC, 0x97, 0xEE, 0x3B, 0x4E, 0xC7,
7623d9b7210SChristian Ehrhardt	0xE5, 0x92, 0xF8, 0x9D, 0x4C, 0xF9, 0xEE, 0x55,
7633d9b7210SChristian Ehrhardt	0x18, 0xBB, 0xCC, 0xB4, 0xF2, 0x59, 0xB9, 0xFC,
7643d9b7210SChristian Ehrhardt	0x7A, 0x0F, 0x98, 0xD4, 0x8B, 0xFE, 0xF7, 0x83,
7653d9b7210SChristian Ehrhardt	0x46, 0xE2, 0x83, 0x33, 0x3E, 0x95, 0x8D, 0x17,
7663d9b7210SChristian Ehrhardt	0x1E, 0x85, 0xF8, 0x8C, 0x51, 0xB0, 0x6C, 0xB5,
7673d9b7210SChristian Ehrhardt	0x5E, 0x95, 0xBA, 0x4B, 0x69, 0x1B, 0x48, 0x69,
7683d9b7210SChristian Ehrhardt	0x0B, 0x8F, 0xA5, 0x18, 0x13, 0xB9, 0x77, 0xD1,
7693d9b7210SChristian Ehrhardt	0x80, 0x32, 0x32, 0x6D, 0x53, 0xA1, 0x95, 0x40,
7703d9b7210SChristian Ehrhardt	0x96, 0x8A, 0xCC, 0xA3, 0x69, 0xF8, 0x9F, 0xB5,
7713d9b7210SChristian Ehrhardt	0x8E, 0xD2, 0x68, 0x07, 0x4F, 0xA7, 0xEC, 0xF8,
7723d9b7210SChristian Ehrhardt	0x20, 0x21, 0x58, 0xF8, 0xD8, 0x9E, 0x5F, 0x40,
7733d9b7210SChristian Ehrhardt	0xBA, 0xB9, 0x76, 0x57, 0x3B, 0x17, 0xAD, 0xEE,
7743d9b7210SChristian Ehrhardt	0xCB, 0xDF, 0x07, 0xC1, 0xDF, 0x66, 0xA8, 0x0D,
7753d9b7210SChristian Ehrhardt	0xC2, 0xCE, 0x8F, 0x79, 0xC3, 0x32, 0xE0, 0x8C,
7763d9b7210SChristian Ehrhardt	0xFE, 0x5A, 0xF3, 0x55, 0x27, 0x73, 0x6F, 0xA1,
7773d9b7210SChristian Ehrhardt	0x54, 0xC6, 0xFC, 0x28, 0x9D, 0xBE, 0x97, 0xB9,
7783d9b7210SChristian Ehrhardt	0x54, 0x97, 0x72, 0x3A, 0x61, 0xAF, 0x6F, 0xDE,
7793d9b7210SChristian Ehrhardt	0xF8, 0x0E, 0xBB, 0x6B, 0x96, 0x84, 0xDD, 0x9B,
7803d9b7210SChristian Ehrhardt	0x62, 0xBA, 0x47, 0xB5, 0xC9, 0x3B, 0x4E, 0x8C,
7813d9b7210SChristian Ehrhardt	0x78, 0x2A, 0xCC, 0x0A, 0x69, 0x54, 0x25, 0x5E,
7823d9b7210SChristian Ehrhardt	0x8B, 0xAC, 0x56, 0xD9, 0xFE, 0x48, 0xBA, 0xCE,
7833d9b7210SChristian Ehrhardt	0xA9, 0xCE, 0xA6, 0x1D, 0xBF, 0x3E, 0x3C, 0x66,
7843d9b7210SChristian Ehrhardt	0x40, 0x71, 0x79, 0xAD, 0x5B, 0x26, 0xAD, 0xBE,
7853d9b7210SChristian Ehrhardt	0x58, 0x13, 0x64, 0x60, 0x7C, 0x05, 0xFC, 0xE3,
7863d9b7210SChristian Ehrhardt	0x51, 0x7A, 0xF2, 0xCC, 0x54, 0x16, 0x2C, 0xA4,
7873d9b7210SChristian Ehrhardt	0xCE, 0x5F, 0x59, 0x12, 0x77, 0xEB, 0xD9, 0x23,
7883d9b7210SChristian Ehrhardt	0xE3, 0x86, 0xFB, 0xD7, 0x48, 0x76, 0x9D, 0xE3,
7893d9b7210SChristian Ehrhardt	0x89, 0x87, 0x39, 0xFA, 0x7B, 0x21, 0x0B, 0x76,
7903d9b7210SChristian Ehrhardt	0xB2, 0xED, 0x1C, 0x27, 0x4B, 0xD5, 0x27, 0x05,
7913d9b7210SChristian Ehrhardt	0x8C, 0x7D, 0x58, 0x6C, 0xCA, 0xA5, 0x54, 0x9A,
7923d9b7210SChristian Ehrhardt	0x0F, 0xCB, 0xE9, 0x88, 0x31, 0xAD, 0x49, 0xEE,
7933d9b7210SChristian Ehrhardt	0x38, 0xFB, 0xC9, 0xFB, 0xB4, 0x7A, 0x00, 0x58,
7943d9b7210SChristian Ehrhardt	0x20, 0x32, 0xD3, 0x53, 0x5A, 0xDD, 0x74, 0x95,
7953d9b7210SChristian Ehrhardt	0x60, 0x59, 0x09, 0xAE, 0x7E, 0xEC, 0x74, 0xA3,
7963d9b7210SChristian Ehrhardt	0xB7, 0x1C, 0x6D, 0xF2, 0xAE, 0x79, 0xA4, 0x7C
7973d9b7210SChristian Ehrhardt};
7983d9b7210SChristian Ehrhardt
7993d9b7210SChristian Ehrhardt/** AES-256-CBC test vector */
8003d9b7210SChristian Ehrhardtstatic const struct blockcipher_test_data aes_test_data_11 = {
8013d9b7210SChristian Ehrhardt	.crypto_algo = RTE_CRYPTO_CIPHER_AES_CBC,
8023d9b7210SChristian Ehrhardt	.cipher_key = {
8033d9b7210SChristian Ehrhardt		.data = {
8043d9b7210SChristian Ehrhardt			0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
8053d9b7210SChristian Ehrhardt			0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A,
8063d9b7210SChristian Ehrhardt			0xD4, 0xC3, 0xA3, 0xAA, 0x33, 0x62, 0x61, 0xE0,
8073d9b7210SChristian Ehrhardt			0x37, 0x07, 0xB8, 0x23, 0xA2, 0xA3, 0xB5, 0x8D
8083d9b7210SChristian Ehrhardt		},
8093d9b7210SChristian Ehrhardt		.len = 32
8103d9b7210SChristian Ehrhardt	},
8113d9b7210SChristian Ehrhardt	.iv = {
8123d9b7210SChristian Ehrhardt		.data = {
8133d9b7210SChristian Ehrhardt			0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
8143d9b7210SChristian Ehrhardt			0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
8153d9b7210SChristian Ehrhardt		},
8163d9b7210SChristian Ehrhardt		.len = 16
8173d9b7210SChristian Ehrhardt	},
8183d9b7210SChristian Ehrhardt	.plaintext = {
8193d9b7210SChristian Ehrhardt		.data = plaintext_aes_common,
8203d9b7210SChristian Ehrhardt		.len = 512
8213d9b7210SChristian Ehrhardt	},
8223d9b7210SChristian Ehrhardt	.ciphertext = {
8233d9b7210SChristian Ehrhardt		.data = ciphertext512_aes256cbc,
8243d9b7210SChristian Ehrhardt		.len = 512
8253d9b7210SChristian Ehrhardt	}
8263d9b7210SChristian Ehrhardt};
8273d9b7210SChristian Ehrhardt
8283d9b7210SChristian Ehrhardtstatic const struct blockcipher_test_case aes_chain_test_cases[] = {
8293d9b7210SChristian Ehrhardt	{
8303d9b7210SChristian Ehrhardt		.test_descr = "AES-128-CTR HMAC-SHA1 Encryption Digest",
8313d9b7210SChristian Ehrhardt		.test_data = &aes_test_data_1,
8323d9b7210SChristian Ehrhardt		.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
8333d9b7210SChristian Ehrhardt		.pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_MB |
8343d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL |
8353d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_QAT
8363d9b7210SChristian Ehrhardt	},
8373d9b7210SChristian Ehrhardt	{
8383d9b7210SChristian Ehrhardt		.test_descr = "AES-128-CTR HMAC-SHA1 Decryption Digest "
8393d9b7210SChristian Ehrhardt			"Verify",
8403d9b7210SChristian Ehrhardt		.test_data = &aes_test_data_1,
8413d9b7210SChristian Ehrhardt		.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
8423d9b7210SChristian Ehrhardt		.pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_MB |
8433d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL |
8443d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_QAT
8453d9b7210SChristian Ehrhardt	},
8463d9b7210SChristian Ehrhardt	{
8473d9b7210SChristian Ehrhardt		.test_descr = "AES-192-CTR XCBC Encryption Digest",
8483d9b7210SChristian Ehrhardt		.test_data = &aes_test_data_2,
8493d9b7210SChristian Ehrhardt		.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
8503d9b7210SChristian Ehrhardt		.pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_MB |
8513d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_QAT
8523d9b7210SChristian Ehrhardt	},
8533d9b7210SChristian Ehrhardt	{
8543d9b7210SChristian Ehrhardt		.test_descr = "AES-192-CTR XCBC Decryption Digest Verify",
8553d9b7210SChristian Ehrhardt		.test_data = &aes_test_data_2,
8563d9b7210SChristian Ehrhardt		.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
8573d9b7210SChristian Ehrhardt		.pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_MB |
8583d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_QAT
8593d9b7210SChristian Ehrhardt	},
8603d9b7210SChristian Ehrhardt	{
8613d9b7210SChristian Ehrhardt		.test_descr = "AES-256-CTR HMAC-SHA1 Encryption Digest",
8623d9b7210SChristian Ehrhardt		.test_data = &aes_test_data_3,
8633d9b7210SChristian Ehrhardt		.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
8643d9b7210SChristian Ehrhardt		.pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_MB |
8653d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL |
8663d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_QAT
8673d9b7210SChristian Ehrhardt	},
8683d9b7210SChristian Ehrhardt	{
8693d9b7210SChristian Ehrhardt		.test_descr = "AES-256-CTR HMAC-SHA1 Decryption Digest "
8703d9b7210SChristian Ehrhardt			"Verify",
8713d9b7210SChristian Ehrhardt		.test_data = &aes_test_data_3,
8723d9b7210SChristian Ehrhardt		.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
8733d9b7210SChristian Ehrhardt		.pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_MB |
8743d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL |
8753d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_QAT
8763d9b7210SChristian Ehrhardt	},
8773d9b7210SChristian Ehrhardt	{
8783d9b7210SChristian Ehrhardt		.test_descr = "AES-128-CBC HMAC-SHA1 Encryption Digest",
8793d9b7210SChristian Ehrhardt		.test_data = &aes_test_data_4,
8803d9b7210SChristian Ehrhardt		.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
8813d9b7210SChristian Ehrhardt		.pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_MB |
8823d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL |
8833d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_QAT
8843d9b7210SChristian Ehrhardt	},
8853d9b7210SChristian Ehrhardt	{
8863d9b7210SChristian Ehrhardt		.test_descr = "AES-128-CBC HMAC-SHA1 Decryption Digest "
8873d9b7210SChristian Ehrhardt			"Verify",
8883d9b7210SChristian Ehrhardt		.test_data = &aes_test_data_4,
8893d9b7210SChristian Ehrhardt		.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
8903d9b7210SChristian Ehrhardt		.pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_MB |
8913d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL |
8923d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_QAT
8933d9b7210SChristian Ehrhardt	},
8943d9b7210SChristian Ehrhardt	{
8953d9b7210SChristian Ehrhardt		.test_descr = "AES-128-CBC HMAC-SHA256 Encryption Digest",
8963d9b7210SChristian Ehrhardt		.test_data = &aes_test_data_5,
8973d9b7210SChristian Ehrhardt		.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
8983d9b7210SChristian Ehrhardt		.pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_MB |
8993d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL |
9003d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_QAT
9013d9b7210SChristian Ehrhardt	},
9023d9b7210SChristian Ehrhardt	{
9033d9b7210SChristian Ehrhardt		.test_descr = "AES-128-CBC HMAC-SHA256 Decryption Digest "
9043d9b7210SChristian Ehrhardt			"Verify",
9053d9b7210SChristian Ehrhardt		.test_data = &aes_test_data_5,
9063d9b7210SChristian Ehrhardt		.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
9073d9b7210SChristian Ehrhardt		.pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_MB |
9083d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL |
9093d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_QAT
9103d9b7210SChristian Ehrhardt	},
9113d9b7210SChristian Ehrhardt	{
9123d9b7210SChristian Ehrhardt		.test_descr = "AES-128-CBC HMAC-SHA512 Encryption Digest",
9133d9b7210SChristian Ehrhardt		.test_data = &aes_test_data_6,
9143d9b7210SChristian Ehrhardt		.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
9153d9b7210SChristian Ehrhardt		.pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_MB |
9163d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL |
9173d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_QAT
9183d9b7210SChristian Ehrhardt	},
9193d9b7210SChristian Ehrhardt	{
9203d9b7210SChristian Ehrhardt		.test_descr = "AES-128-CBC HMAC-SHA512 Encryption Digest "
9213d9b7210SChristian Ehrhardt			"Sessionless",
9223d9b7210SChristian Ehrhardt		.test_data = &aes_test_data_6,
9233d9b7210SChristian Ehrhardt		.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
9243d9b7210SChristian Ehrhardt		.feature_mask = BLOCKCIPHER_TEST_FEATURE_SESSIONLESS,
9253d9b7210SChristian Ehrhardt		.pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_MB |
9263d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL
9273d9b7210SChristian Ehrhardt	},
9283d9b7210SChristian Ehrhardt	{
9293d9b7210SChristian Ehrhardt		.test_descr = "AES-128-CBC HMAC-SHA512 Decryption Digest "
9303d9b7210SChristian Ehrhardt			"Verify",
9313d9b7210SChristian Ehrhardt		.test_data = &aes_test_data_6,
9323d9b7210SChristian Ehrhardt		.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
9333d9b7210SChristian Ehrhardt		.pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_MB |
9343d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL |
9353d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_QAT
9363d9b7210SChristian Ehrhardt	},
9373d9b7210SChristian Ehrhardt	{
9383d9b7210SChristian Ehrhardt		.test_descr = "AES-128-CBC XCBC Encryption Digest",
9393d9b7210SChristian Ehrhardt		.test_data = &aes_test_data_7,
9403d9b7210SChristian Ehrhardt		.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
9413d9b7210SChristian Ehrhardt		.pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_MB |
9423d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_QAT
9433d9b7210SChristian Ehrhardt	},
9443d9b7210SChristian Ehrhardt	{
9453d9b7210SChristian Ehrhardt		.test_descr = "AES-128-CBC XCBC Decryption Digest Verify",
9463d9b7210SChristian Ehrhardt		.test_data = &aes_test_data_7,
9473d9b7210SChristian Ehrhardt		.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
9483d9b7210SChristian Ehrhardt		.pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_MB |
9493d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_QAT
9503d9b7210SChristian Ehrhardt	},
9513d9b7210SChristian Ehrhardt	{
9523d9b7210SChristian Ehrhardt		.test_descr = "AES-128-CBC HMAC-SHA1 Encryption Digest "
9533d9b7210SChristian Ehrhardt			"OOP",
9543d9b7210SChristian Ehrhardt		.test_data = &aes_test_data_4,
9553d9b7210SChristian Ehrhardt		.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
9563d9b7210SChristian Ehrhardt		.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
9573d9b7210SChristian Ehrhardt		.pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_QAT |
9583d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL
9593d9b7210SChristian Ehrhardt	},
9603d9b7210SChristian Ehrhardt	{
9613d9b7210SChristian Ehrhardt		.test_descr = "AES-128-CBC HMAC-SHA1 Decryption Digest "
9623d9b7210SChristian Ehrhardt			"Verify OOP",
9633d9b7210SChristian Ehrhardt		.test_data = &aes_test_data_4,
9643d9b7210SChristian Ehrhardt		.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
9653d9b7210SChristian Ehrhardt		.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
9663d9b7210SChristian Ehrhardt		.pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_QAT |
9673d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL
9683d9b7210SChristian Ehrhardt	},
9693d9b7210SChristian Ehrhardt	{
9703d9b7210SChristian Ehrhardt		.test_descr = "AES-128-CBC HMAC-SHA224 Encryption Digest",
9713d9b7210SChristian Ehrhardt		.test_data = &aes_test_data_8,
9723d9b7210SChristian Ehrhardt		.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
9733d9b7210SChristian Ehrhardt		.pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_MB |
9743d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL |
9753d9b7210SChristian Ehrhardt			BLOCKCIPHER_TEST_TARGET_PMD_QAT
9763d9b7210SChristian Ehrhardt	},
9773d9b7210SChristian Ehrhardt	{
9783d9b7210SChristian Ehrhardt		.test_descr = "AES-128-CBC HMAC-SHA224 Decryption Digest "
9793d9b7210SChristian Ehrhardt			"Verify",
9803d9b7210SChristian Ehrhardt		.test_data = &aes_test_data_8,
9813d9b7210SChristian Ehrhardt		.op_mask =