numam-dpdk/app/test/test_cryptodev_aes_test_vectors.h
Tejasree Kondoj 6356c28642 test/crypto: add cases for block cipher encrypted digest
Add test cases for block cipher DIGEST_ENCRYPTED mode.

Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
2021-04-16 12:43:33 +02:00

3602 lines
116 KiB
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2016-2019 Intel Corporation
*/
#ifndef TEST_CRYPTODEV_AES_TEST_VECTORS_H_
#define TEST_CRYPTODEV_AES_TEST_VECTORS_H_
/* test vectors */
static const uint8_t plaintext_aes128ctr[] = {
0x6B, 0xC1, 0xBE, 0xE2, 0x2E, 0x40, 0x9F, 0x96,
0xE9, 0x3D, 0x7E, 0x11, 0x73, 0x93, 0x17, 0x2A,
0xAE, 0x2D, 0x8A, 0x57, 0x1E, 0x03, 0xAC, 0x9C,
0x9E, 0xB7, 0x6F, 0xAC, 0x45, 0xAF, 0x8E, 0x51,
0x30, 0xC8, 0x1C, 0x46, 0xA3, 0x5C, 0xE4, 0x11,
0xE5, 0xFB, 0xC1, 0x19, 0x1A, 0x0A, 0x52, 0xEF,
0xF6, 0x9F, 0x24, 0x45, 0xDF, 0x4F, 0x9B, 0x17,
0xAD, 0x2B, 0x41, 0x7B, 0xE6, 0x6C, 0x37, 0x10
};
static const uint8_t ciphertext64_aes128ctr[] = {
0x87, 0x4D, 0x61, 0x91, 0xB6, 0x20, 0xE3, 0x26,
0x1B, 0xEF, 0x68, 0x64, 0x99, 0x0D, 0xB6, 0xCE,
0x98, 0x06, 0xF6, 0x6B, 0x79, 0x70, 0xFD, 0xFF,
0x86, 0x17, 0x18, 0x7B, 0xB9, 0xFF, 0xFD, 0xFF,
0x5A, 0xE4, 0xDF, 0x3E, 0xDB, 0xD5, 0xD3, 0x5E,
0x5B, 0x4F, 0x09, 0x02, 0x0D, 0xB0, 0x3E, 0xAB,
0x1E, 0x03, 0x1D, 0xDA, 0x2F, 0xBE, 0x03, 0xD1,
0x79, 0x21, 0x70, 0xA0, 0xF3, 0x00, 0x9C, 0xEE
};
static const uint8_t ciphertext64_aes128ctr_IV_12bytes[] = {
0x28, 0x80, 0x28, 0xC7, 0x15, 0x99, 0xC5, 0xA8,
0xDD, 0x53, 0xC2, 0x67, 0x1B, 0x86, 0xB8, 0x13,
0xAB, 0x25, 0x39, 0x7A, 0xD2, 0x1F, 0x8B, 0x4B,
0x94, 0x89, 0x2B, 0x65, 0xCF, 0x89, 0x1E, 0xDD,
0xD4, 0x7C, 0xFD, 0x8D, 0x0E, 0xCD, 0x23, 0xA4,
0xEB, 0x8C, 0x05, 0x58, 0x45, 0x4A, 0x63, 0x44,
0x11, 0x42, 0x07, 0x17, 0xB4, 0xD2, 0xCC, 0x75,
0xB7, 0x23, 0x99, 0xA9, 0xC5, 0x89, 0x7F, 0x66
};
static const uint8_t plaintext_aes_docsis_bpi_cfb[] = {
0x00, 0x01, 0x02, 0x88, 0xEE, 0x59, 0x7E
};
static const uint8_t ciphertext_aes_docsis_bpi_cfb[] = {
0xFC, 0x68, 0xA3, 0x55, 0x60, 0x37, 0xDC
};
static const uint8_t ciphertext_aes256_docsis_bpi_cfb[] = {
0xE3, 0x75, 0xF2, 0x30, 0x1F, 0x75, 0x9A
};
static const uint8_t plaintext_aes_docsis_bpi_cbc_cfb[] = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x91,
0xD2, 0xD1, 0x9F
};
static const uint8_t ciphertext_aes_docsis_bpi_cbc_cfb[] = {
0x9D, 0xD1, 0x67, 0x4B, 0xBA, 0x61, 0x10, 0x1B,
0x56, 0x75, 0x64, 0x74, 0x36, 0x4F, 0x10, 0x1D,
0x44, 0xD4, 0x73
};
static const uint8_t ciphertext_aes256_docsis_bpi_cbc_cfb[] = {
0xD1, 0x28, 0x73, 0x1F, 0xB5, 0x28, 0xB5, 0x18,
0xAB, 0x51, 0xAB, 0xC8, 0x98, 0x3D, 0xD1, 0xEE,
0xE4, 0x43, 0x59
};
static const uint8_t plaintext_aes192ctr[] = {
0x01, 0x0F, 0x10, 0x1F, 0x20, 0x1C, 0x0E, 0xB8,
0xFB, 0x5C, 0xCD, 0xCC, 0x1F, 0xF9, 0xAF, 0x0B,
0x95, 0x03, 0x74, 0x99, 0x49, 0xE7, 0x62, 0x55,
0xDA, 0xEA, 0x13, 0x20, 0x1D, 0xC6, 0xCC, 0xCC,
0xD1, 0x70, 0x75, 0x47, 0x02, 0x2F, 0xFB, 0x86,
0xBB, 0x6B, 0x23, 0xD2, 0xC9, 0x74, 0xD7, 0x7B,
0x08, 0x03, 0x3B, 0x79, 0x39, 0xBB, 0x91, 0x29,
0xDA, 0x14, 0x39, 0x8D, 0xFF, 0x81, 0x50, 0x96,
};
static const uint8_t ciphertext64_aes192ctr[] = {
0x4A, 0x6C, 0xC8, 0xCC, 0x96, 0x2A, 0x13, 0x84,
0x1C, 0x36, 0x88, 0xE9, 0xE5, 0x94, 0x70, 0xB2,
0x14, 0x5B, 0x13, 0x80, 0xEA, 0xD8, 0x8D, 0x37,
0xFD, 0x70, 0xA8, 0x83, 0xE8, 0x2B, 0x88, 0x1E,
0xBA, 0x94, 0x3F, 0xF6, 0xB3, 0x1F, 0xDE, 0x34,
0xF3, 0x5B, 0x80, 0xE9, 0xAB, 0xF5, 0x1C, 0x29,
0xB6, 0xD9, 0x76, 0x2B, 0x06, 0xC6, 0x74, 0xF1,
0x59, 0x5E, 0x9E, 0xA5, 0x7B, 0x2D, 0xD7, 0xF0
};
static const uint8_t ciphertext64_aes192ctr_IV_12bytes[] = {
0x67, 0x65, 0xa9, 0xee, 0xfd, 0x31, 0x62, 0xfc,
0xad, 0xfd, 0xc7, 0x25, 0xb7, 0x25, 0x16, 0xbe,
0x25, 0xce, 0xc0, 0x1d, 0xda, 0xa9, 0xd3, 0xda,
0x1b, 0x7d, 0x68, 0x6a, 0x6f, 0x06, 0xea, 0x47,
0xa0, 0xe0, 0x15, 0xf4, 0xbd, 0x1b, 0x70, 0x34,
0xd4, 0x6d, 0x1c, 0x84, 0x17, 0x91, 0x46, 0x0c,
0xe8, 0xbc, 0x7a, 0xfb, 0x9f, 0x2a, 0x8f, 0xb4,
0xd4, 0xf3, 0x6e, 0x5b, 0x75, 0xa0, 0xce, 0x32
};
static const uint8_t plaintext_aes256ctr[] = {
0x6B, 0xC1, 0xBE, 0xE2, 0x2E, 0x40, 0x9F, 0x96,
0xE9, 0x3D, 0x7E, 0x11, 0x73, 0x93, 0x17, 0x2A,
0xAE, 0x2D, 0x8A, 0x57, 0x1E, 0x03, 0xAC, 0x9C,
0x9E, 0xB7, 0x6F, 0xAC, 0x45, 0xAF, 0x8E, 0x51,
0x30, 0xC8, 0x1C, 0x46, 0xA3, 0x5C, 0xE4, 0x11,
0xE5, 0xFB, 0xC1, 0x19, 0x1A, 0x0A, 0x52, 0xEF,
0xF6, 0x9F, 0x24, 0x45, 0xDF, 0x4F, 0x9B, 0x17,
0xAD, 0x2B, 0x41, 0x7B, 0xE6, 0x6C, 0x37, 0x10
};
static const uint8_t ciphertext64_aes256ctr[] = {
0x60, 0x1E, 0xC3, 0x13, 0x77, 0x57, 0x89, 0xA5,
0xB7, 0xA7, 0xF5, 0x04, 0xBB, 0xF3, 0xD2, 0x28,
0xF4, 0x43, 0xE3, 0xCA, 0x4D, 0x62, 0xB5, 0x9A,
0xCA, 0x84, 0xE9, 0x90, 0xCA, 0xCA, 0xF5, 0xC5,
0x2B, 0x09, 0x30, 0xDA, 0xA2, 0x3D, 0xE9, 0x4C,
0xE8, 0x70, 0x17, 0xBA, 0x2D, 0x84, 0x98, 0x8D,
0xDF, 0xC9, 0xC5, 0x8D, 0xB6, 0x7A, 0xAD, 0xA6,
0x13, 0xC2, 0xDD, 0x08, 0x45, 0x79, 0x41, 0xA6
};
static const uint8_t ciphertext64_aes256ctr_IV_12bytes[] = {
0x7B, 0x7A, 0x7D, 0x83, 0x85, 0xF8, 0x81, 0xF3,
0x32, 0x33, 0xD9, 0xFB, 0x04, 0x73, 0xD4, 0x2F,
0x70, 0xDE, 0x90, 0x3E, 0xD0, 0xA9, 0x93, 0x8A,
0x91, 0xF3, 0xB5, 0x29, 0x4D, 0x2A, 0x74, 0xD0,
0xDC, 0x4E, 0x5C, 0x9B, 0x97, 0x24, 0xD8, 0x02,
0xFE, 0xAB, 0x38, 0xE8, 0x73, 0x51, 0x29, 0x7E,
0xF1, 0xF9, 0x40, 0x78, 0xB1, 0x04, 0x7A, 0x78,
0x61, 0x07, 0x47, 0xE6, 0x8C, 0x0F, 0xA8, 0x76
};
static const uint8_t plaintext_aes_common[] = {
"What a lousy earth! He wondered how many people "
"were destitute that same night even in his own "
"prosperous country, how many homes were "
"shanties, how many husbands were drunk and "
"wives socked, and how many children were "
"bullied, abused, or abandoned. How many "
"families hungered for food they could not "
"afford to buy? How many hearts were broken? How "
"many suicides would take place that same night, "
"how many people would go insane? How many "
"cockroaches and landlords would triumph? How "
"many winners were losers, successes failures, "
"and rich men poor men? How many wise guys were "
"stupid? How many happy endings were unhappy "
"endings? How many honest men were liars, brave "
"men cowards, loyal men traitors, how many "
"sainted men were corrupt, how many people in "
"positions of trust had sold their souls to "
"bodyguards, how many had never had souls? How "
"many straight-and-narrow paths were crooked "
"paths? How many best families were worst "
"families and how many good people were bad "
"people? When you added them all up and then "
"subtracted, you might be left with only the "
"children, and perhaps with Albert Einstein and "
"an old violinist or sculptor somewhere."
};
static const uint8_t ciphertext512_aes128cbc[] = {
0x8B, 0x4D, 0xDA, 0x1B, 0xCF, 0x04, 0xA0, 0x31,
0xB4, 0xBF, 0xBD, 0x68, 0x43, 0x20, 0x7E, 0x76,
0xB1, 0x96, 0x8B, 0xA2, 0x7C, 0xA2, 0x83, 0x9E,
0x39, 0x5A, 0x2F, 0x7E, 0x92, 0xB4, 0x48, 0x1A,
0x3F, 0x6B, 0x5D, 0xDF, 0x52, 0x85, 0x5F, 0x8E,
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, 0x93, 0x6E, 0x53,
0x19, 0x25, 0x64, 0x15, 0x83, 0xF9, 0x73, 0x2A,
0x74, 0xB4, 0x93, 0x69, 0xC4, 0x72, 0xFC, 0x26,
0xA2, 0x9F, 0x43, 0x45, 0xDD, 0xB9, 0xEF, 0x36,
0xC8, 0x3A, 0xCD, 0x99, 0x9B, 0x54, 0x1A, 0x36,
0xC1, 0x59, 0xF8, 0x98, 0xA8, 0xCC, 0x28, 0x0D,
0x73, 0x4C, 0xEE, 0x98, 0xCB, 0x7C, 0x58, 0x7E,
0x20, 0x75, 0x1E, 0xB7, 0xC9, 0xF8, 0xF2, 0x0E,
0x63, 0x9E, 0x05, 0x78, 0x1A, 0xB6, 0xA8, 0x7A,
0xF9, 0x98, 0x6A, 0xA6, 0x46, 0x84, 0x2E, 0xF6,
0x4B, 0xDC, 0x9B, 0x8F, 0x9B, 0x8F, 0xEE, 0xB4,
0xAA, 0x3F, 0xEE, 0xC0, 0x37, 0x27, 0x76, 0xC7,
0x95, 0xBB, 0x26, 0x74, 0x69, 0x12, 0x7F, 0xF1,
0xBB, 0xFF, 0xAE, 0xB5, 0x99, 0x6E, 0xCB, 0x0C
};
static const uint8_t plaintext_aes128ecb[] = {
0x6b, 0xc1, 0xbe, 0xe2, 0x2e, 0x40, 0x9f, 0x96,
0xe9, 0x3d, 0x7e, 0x11, 0x73, 0x93, 0x17, 0x2a,
0xae, 0x2d, 0x8a, 0x57, 0x1e, 0x03, 0xac, 0x9c,
0x9e, 0xb7, 0x6f, 0xac, 0x45, 0xaf, 0x8e, 0x51,
0x30, 0xc8, 0x1c, 0x46, 0xa3, 0x5c, 0xe4, 0x11,
0xe5, 0xfb, 0xc1, 0x19, 0x1a, 0x0a, 0x52, 0xef,
0xf6, 0x9f, 0x24, 0x45, 0xdf, 0x4f, 0x9b, 0x17,
0xad, 0x2b, 0x41, 0x7b, 0xe6, 0x6c, 0x37, 0x10
};
static const uint8_t ciphertext_aes128ecb[] = {
0x3a, 0xd7, 0x7b, 0xb4, 0x0d, 0x7a, 0x36, 0x60,
0xa8, 0x9e, 0xca, 0xf3, 0x24, 0x66, 0xef, 0x97,
0xf5, 0xd3, 0xd5, 0x85, 0x03, 0xb9, 0x69, 0x9d,
0xe7, 0x85, 0x89, 0x5a, 0x96, 0xfd, 0xba, 0xaf,
0x43, 0xb1, 0xcd, 0x7f, 0x59, 0x8e, 0xce, 0x23,
0x88, 0x1b, 0x00, 0xe3, 0xed, 0x03, 0x06, 0x88,
0x7b, 0x0c, 0x78, 0x5e, 0x27, 0xe8, 0xad, 0x3f,
0x82, 0x23, 0x20, 0x71, 0x04, 0x72, 0x5d, 0xd4
};
static const uint8_t plaintext_aes192ecb[] = {
0x6b, 0xc1, 0xbe, 0xe2, 0x2e, 0x40, 0x9f, 0x96,
0xe9, 0x3d, 0x7e, 0x11, 0x73, 0x93, 0x17, 0x2a,
0xae, 0x2d, 0x8a, 0x57, 0x1e, 0x03, 0xac, 0x9c,
0x9e, 0xb7, 0x6f, 0xac, 0x45, 0xaf, 0x8e, 0x51,
0x30, 0xc8, 0x1c, 0x46, 0xa3, 0x5c, 0xe4, 0x11,
0xe5, 0xfb, 0xc1, 0x19, 0x1a, 0x0a, 0x52, 0xef,
0xf6, 0x9f, 0x24, 0x45, 0xdf, 0x4f, 0x9b, 0x17,
0xad, 0x2b, 0x41, 0x7b, 0xe6, 0x6c, 0x37, 0x10
};
static const uint8_t ciphertext_aes192ecb[] = {
0xbd, 0x33, 0x4f, 0x1d, 0x6e, 0x45, 0xf2, 0x5f,
0xf7, 0x12, 0xa2, 0x14, 0x57, 0x1f, 0xa5, 0xcc,
0x97, 0x41, 0x04, 0x84, 0x6d, 0x0a, 0xd3, 0xad,
0x77, 0x34, 0xec, 0xb3, 0xec, 0xee, 0x4e, 0xef,
0xef, 0x7a, 0xfd, 0x22, 0x70, 0xe2, 0xe6, 0x0a,
0xdc, 0xe0, 0xba, 0x2f, 0xac, 0xe6, 0x44, 0x4e,
0x9a, 0x4b, 0x41, 0xba, 0x73, 0x8d, 0x6c, 0x72,
0xfb, 0x16, 0x69, 0x16, 0x03, 0xc1, 0x8e, 0x0e
};
static const uint8_t plaintext_aes256ecb[] = {
0x6b, 0xc1, 0xbe, 0xe2, 0x2e, 0x40, 0x9f, 0x96,
0xe9, 0x3d, 0x7e, 0x11, 0x73, 0x93, 0x17, 0x2a,
0xae, 0x2d, 0x8a, 0x57, 0x1e, 0x03, 0xac, 0x9c,
0x9e, 0xb7, 0x6f, 0xac, 0x45, 0xaf, 0x8e, 0x51,
0x30, 0xc8, 0x1c, 0x46, 0xa3, 0x5c, 0xe4, 0x11,
0xe5, 0xfb, 0xc1, 0x19, 0x1a, 0x0a, 0x52, 0xef,
0xf6, 0x9f, 0x24, 0x45, 0xdf, 0x4f, 0x9b, 0x17,
0xad, 0x2b, 0x41, 0x7b, 0xe6, 0x6c, 0x37, 0x10
};
static const uint8_t ciphertext_aes256ecb[] = {
0xf3, 0xee, 0xd1, 0xbd, 0xb5, 0xd2, 0xa0, 0x3c,
0x06, 0x4b, 0x5a, 0x7e, 0x3d, 0xb1, 0x81, 0xf8,
0x59, 0x1c, 0xcb, 0x10, 0xd4, 0x10, 0xed, 0x26,
0xdc, 0x5b, 0xa7, 0x4a, 0x31, 0x36, 0x28, 0x70,
0xb6, 0xed, 0x21, 0xb9, 0x9c, 0xa6, 0xf4, 0xf9,
0xf1, 0x53, 0xe7, 0xb1, 0xbe, 0xaf, 0xed, 0x1d,
0x23, 0x30, 0x4b, 0x7a, 0x39, 0xf9, 0xf3, 0xff,
0x06, 0x7d, 0x8d, 0x8f, 0x9e, 0x24, 0xec, 0xc7
};
static const uint8_t plaintext_aes128ecb_128bytes[] = {
0xf7, 0xcd, 0x12, 0xfb, 0x4f, 0x8e, 0x50, 0xab,
0x35, 0x8e, 0x56, 0xf9, 0x83, 0x53, 0x9a, 0x1a,
0xfc, 0x47, 0x3c, 0x96, 0x01, 0xfe, 0x01, 0x87,
0xd5, 0xde, 0x46, 0x24, 0x5c, 0x62, 0x8f, 0xba,
0xba, 0x91, 0x17, 0x8d, 0xba, 0x5a, 0x79, 0xb1,
0x57, 0x05, 0x4d, 0x08, 0xba, 0x1f, 0x30, 0xd3,
0x80, 0x40, 0xe9, 0x37, 0xb0, 0xd6, 0x34, 0x87,
0x33, 0xdd, 0xc0, 0x5b, 0x2d, 0x58, 0x1d, 0x2a,
0x7b, 0xb6, 0xe3, 0xd0, 0xc8, 0xa0, 0x7a, 0x69,
0xc8, 0x5d, 0x10, 0xa2, 0xc3, 0x39, 0xca, 0xaf,
0x40, 0xdc, 0xc7, 0xcb, 0xff, 0x18, 0x7d, 0x51,
0x06, 0x28, 0x28, 0x1f, 0x3a, 0x9c, 0x18, 0x7d,
0x5b, 0xb5, 0xe9, 0x20, 0xc2, 0xae, 0x17, 0x7f,
0xd1, 0x65, 0x7a, 0x75, 0xcf, 0x21, 0xa0, 0x1e,
0x17, 0x1b, 0xf7, 0xe8, 0x62, 0x5f, 0xaf, 0x34,
0x7f, 0xd8, 0x18, 0x4a, 0x94, 0xf2, 0x33, 0x90
};
static const uint8_t ciphertext_aes128ecb_128bytes[] = {
0x48, 0xa0, 0xe8, 0x0a, 0x89, 0x99, 0xab, 0xb5,
0x66, 0x6d, 0x68, 0x23, 0x43, 0x40, 0x1f, 0x26,
0xac, 0x52, 0xc4, 0x7b, 0x09, 0x0a, 0x8f, 0xc0,
0x38, 0x00, 0xf5, 0x48, 0x3a, 0xfd, 0xcd, 0x7e,
0x21, 0xe7, 0xf8, 0xf6, 0xc2, 0xa7, 0x4c, 0x1c,
0x6e, 0x83, 0x57, 0xf4, 0xa4, 0xb0, 0xc0, 0x5f,
0x36, 0x73, 0x22, 0xff, 0x33, 0x44, 0xab, 0xeb,
0x96, 0xa8, 0xe0, 0x37, 0x65, 0x81, 0x6b, 0x82,
0x89, 0xcd, 0xcc, 0xac, 0x33, 0x18, 0x7d, 0x43,
0x0e, 0x79, 0x53, 0x30, 0x21, 0x4c, 0x95, 0x18,
0xb6, 0xc9, 0xea, 0x5c, 0x6f, 0xa1, 0x10, 0xa3,
0x51, 0x0e, 0x67, 0x8c, 0x1c, 0x9d, 0xf1, 0x57,
0xeb, 0xf6, 0xad, 0x4f, 0xf2, 0x55, 0xe8, 0x11,
0x6f, 0xaa, 0x4d, 0xe5, 0x18, 0x3d, 0xc3, 0x14,
0xf9, 0x40, 0xfa, 0x86, 0x9d, 0xaf, 0xff, 0xfc,
0x78, 0xba, 0xbe, 0x61, 0xf8, 0xd1, 0x00, 0x8d
};
static const uint8_t plaintext_aes192ecb_192bytes[] = {
0x19, 0x08, 0xa3, 0x58, 0x17, 0x14, 0x70, 0x5a,
0xb8, 0xab, 0x4f, 0x5f, 0xa4, 0x25, 0x2b, 0xec,
0xb6, 0x74, 0x0b, 0x9d, 0x56, 0x3b, 0xaf, 0xa3,
0xa4, 0x2d, 0x3e, 0x1f, 0x18, 0x84, 0x3b, 0x4f,
0x48, 0xd9, 0xa3, 0xfe, 0x59, 0x1e, 0x80, 0x67,
0x44, 0x35, 0x26, 0x00, 0x78, 0xda, 0x68, 0xfa,
0x61, 0x9c, 0xd8, 0x8e, 0x5c, 0xc1, 0xff, 0xeb,
0x9c, 0x7d, 0xe7, 0xa9, 0x38, 0xeb, 0x66, 0xf8,
0x6a, 0x46, 0x71, 0x51, 0x02, 0xba, 0x8d, 0x70,
0x55, 0x5b, 0x60, 0xc6, 0x4c, 0xae, 0xda, 0x2e,
0x17, 0xbb, 0x65, 0xef, 0x60, 0x85, 0x9e, 0x77,
0xe5, 0x83, 0xef, 0x30, 0x08, 0x3a, 0xba, 0x80,
0x28, 0xc0, 0xa1, 0x93, 0x4c, 0x2a, 0x0b, 0xe1,
0xcb, 0xd0, 0xac, 0x72, 0x72, 0x1d, 0x96, 0x76,
0x0e, 0xc0, 0xec, 0x7d, 0x84, 0xfd, 0xee, 0x08,
0xa1, 0x11, 0x20, 0x0d, 0x59, 0x5c, 0x06, 0x3f,
0xa3, 0xf1, 0xd7, 0xa3, 0x1d, 0x29, 0xc3, 0xaa,
0x05, 0x2b, 0x74, 0x8c, 0x73, 0x60, 0x65, 0x43,
0x76, 0xd4, 0xd7, 0x7b, 0x5f, 0x40, 0xf4, 0x77,
0xe1, 0xcc, 0x85, 0x37, 0x1c, 0xd8, 0xda, 0x91,
0xf0, 0x40, 0xb2, 0x43, 0x2d, 0x87, 0x51, 0xd0,
0xce, 0x27, 0xa6, 0x60, 0xac, 0x67, 0xea, 0x8b,
0xae, 0x46, 0x2e, 0x78, 0x06, 0x09, 0x8a, 0x82,
0xb0, 0x0d, 0x57, 0x56, 0x82, 0xfe, 0x89, 0xd2
};
static const uint8_t ciphertext_aes192ecb_192bytes[] = {
0xcc, 0xe2, 0x3f, 0xc3, 0x12, 0x41, 0x31, 0x63,
0x03, 0x3a, 0x3c, 0xfe, 0x76, 0x55, 0xd2, 0x26,
0xf0, 0xc9, 0xb5, 0xc6, 0xf0, 0x1e, 0xc3, 0x72,
0xfb, 0x64, 0x94, 0x7d, 0xf1, 0x5e, 0x2a, 0x9e,
0x0d, 0x9a, 0x7a, 0xe0, 0xbc, 0x7b, 0xa6, 0x65,
0x41, 0xc0, 0xa0, 0x9d, 0xb1, 0xb1, 0x09, 0x99,
0x6e, 0xe7, 0x25, 0x5e, 0x64, 0x2b, 0x74, 0xfa,
0xa1, 0x9a, 0x03, 0x33, 0x88, 0x81, 0x27, 0x48,
0xdd, 0x53, 0x77, 0x0b, 0xef, 0xd9, 0x2f, 0xfa,
0xc8, 0x50, 0x0e, 0x08, 0xa1, 0x45, 0x12, 0x82,
0x2b, 0xfb, 0x85, 0x5a, 0x39, 0x8c, 0x71, 0x32,
0x59, 0x27, 0x37, 0x53, 0xce, 0x3e, 0xae, 0x00,
0x45, 0x53, 0xfd, 0xaf, 0xa5, 0xd1, 0x1a, 0xe9,
0xa4, 0x1b, 0xe3, 0x99, 0xde, 0xcd, 0x03, 0x36,
0x6b, 0x72, 0x43, 0x76, 0x04, 0xa8, 0xf9, 0x83,
0xef, 0x9e, 0x57, 0x75, 0x36, 0x0e, 0x99, 0xe1,
0x79, 0x2b, 0x2b, 0x96, 0x01, 0x10, 0xb8, 0xf6,
0x4a, 0xa6, 0x13, 0xab, 0x7f, 0x55, 0x60, 0xf0,
0xc9, 0x5c, 0x81, 0xa7, 0x96, 0x99, 0xb4, 0x55,
0x41, 0x48, 0xf1, 0xd4, 0xa1, 0xb4, 0x76, 0xb5,
0x35, 0xe1, 0x02, 0x8e, 0x09, 0xb2, 0x6c, 0x11,
0x3f, 0xfb, 0x04, 0x47, 0x98, 0xab, 0x9b, 0x55,
0xc3, 0xa9, 0x2a, 0x64, 0x32, 0x5a, 0x69, 0x96,
0x28, 0x8c, 0x5b, 0xe3, 0xb2, 0x60, 0x82, 0xec
};
static const uint8_t plaintext_aes256ecb_256bytes[] = {
0x0b, 0xe5, 0x48, 0xa6, 0xa1, 0xbc, 0xac, 0x81,
0x80, 0x06, 0x5f, 0xae, 0x1e, 0x3f, 0x55, 0x73,
0x6d, 0x36, 0x7f, 0x57, 0x3d, 0xa4, 0x4a, 0x6b,
0xb6, 0x65, 0x2f, 0xb7, 0xe8, 0x85, 0x47, 0xe2,
0x41, 0x42, 0xc2, 0x4e, 0x58, 0xf1, 0xde, 0x42,
0x9f, 0x15, 0x4c, 0xaf, 0xea, 0x04, 0x20, 0xd0,
0x1a, 0x19, 0x36, 0x74, 0x71, 0x12, 0x72, 0x1b,
0xdb, 0x18, 0xf9, 0x0b, 0xb3, 0xf3, 0x63, 0xd4,
0x62, 0x52, 0x8b, 0x63, 0x0f, 0x6b, 0x4d, 0xb9,
0x70, 0xd6, 0x91, 0xa0, 0x43, 0x3f, 0x46, 0xfe,
0x43, 0xbb, 0xb8, 0xdc, 0x5e, 0xdb, 0xd4, 0x1f,
0xf0, 0x17, 0x94, 0x25, 0xee, 0x55, 0x67, 0xbf,
0x4d, 0xda, 0x9d, 0xe7, 0x4b, 0xc6, 0x7a, 0xcf,
0x8f, 0xd7, 0xbb, 0x29, 0x6e, 0x26, 0xd4, 0xc3,
0x08, 0x9b, 0x67, 0x15, 0xe9, 0x2d, 0x9f, 0x2d,
0x3c, 0x76, 0x26, 0xd3, 0xda, 0xfe, 0x6e, 0x73,
0x9d, 0x09, 0x60, 0x4b, 0x35, 0x60, 0xdb, 0x77,
0xb6, 0xc0, 0x45, 0x91, 0xf9, 0x14, 0x8a, 0x7a,
0xdd, 0xe2, 0xf1, 0xdf, 0x8f, 0x12, 0x4f, 0xd7,
0x75, 0xd6, 0x9a, 0x17, 0xda, 0x76, 0x88, 0xf0,
0xfa, 0x44, 0x27, 0xbe, 0x61, 0xaf, 0x55, 0x9f,
0xc7, 0xf0, 0x76, 0x77, 0xde, 0xca, 0xd1, 0x47,
0x51, 0x55, 0xb1, 0xbf, 0xfa, 0x1e, 0xca, 0x28,
0x17, 0x70, 0xf3, 0xb5, 0xd4, 0x32, 0x47, 0x04,
0xe0, 0x92, 0xd8, 0xa5, 0x03, 0x69, 0x46, 0x99,
0x7f, 0x1e, 0x3f, 0xb2, 0x93, 0x36, 0xa3, 0x88,
0x75, 0x07, 0x68, 0xb8, 0x33, 0xce, 0x17, 0x3f,
0x5c, 0xb7, 0x1e, 0x93, 0x38, 0xc5, 0x1d, 0x79,
0x86, 0x7c, 0x9d, 0x9e, 0x2f, 0x69, 0x38, 0x0f,
0x97, 0x5c, 0x67, 0xbf, 0xa0, 0x8d, 0x37, 0x0b,
0xd3, 0xb1, 0x04, 0x87, 0x1d, 0x74, 0xfe, 0x30,
0xfb, 0xd0, 0x22, 0x92, 0xf9, 0xf3, 0x23, 0xc9
};
static const uint8_t ciphertext_aes256ecb_256bytes[] = {
0x4b, 0xc0, 0x1f, 0x80, 0xf5, 0xc7, 0xe8, 0xf5,
0xc9, 0xd0, 0x3c, 0x86, 0x50, 0x78, 0x21, 0xce,
0x01, 0xec, 0x91, 0x00, 0xc9, 0xf8, 0x73, 0x43,
0x2f, 0x73, 0x8a, 0x6d, 0xee, 0xed, 0x2d, 0x40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0x71, 0xda, 0x9d, 0xfd, 0xee, 0x69, 0x8c,
0x24, 0x18, 0xe8, 0x81, 0x60, 0xe2, 0x89, 0x33,
0x42, 0xd4, 0x1b, 0x6a, 0xcb, 0x4a, 0x5b, 0x00,
0x01, 0x4f, 0x11, 0x47, 0x0f, 0x57, 0xb0, 0x90,
0xf0, 0xed, 0xb0, 0x34, 0x2e, 0x9f, 0x81, 0x6c
};
static const uint8_t plaintext_aes128ecb_1008bytes[] = {
0xdd, 0x14, 0xde, 0x30, 0xe0, 0xfd, 0x7b, 0x2a,
0x94, 0x8e, 0x28, 0xa0, 0xf6, 0x93, 0x6e, 0xf5,
0x92, 0x65, 0x1d, 0x5e, 0x78, 0x2a, 0x9d, 0x39,
0xfc, 0xb8, 0x6d, 0x8b, 0xa5, 0xf4, 0x4b, 0x21,
0xdd, 0x4e, 0xe9, 0xeb, 0xd7, 0xa7, 0xa1, 0x59,
0xdc, 0x4c, 0x5e, 0xcc, 0x83, 0xab, 0xd3, 0x45,
0xfe, 0x2c, 0x73, 0x23, 0xea, 0x45, 0xcb, 0x0c,
0x12, 0x67, 0x28, 0xcd, 0xef, 0x4e, 0xca, 0xe2,
0x1d, 0x92, 0x82, 0xd8, 0x0f, 0xa9, 0x36, 0x23,
0x6d, 0x38, 0x68, 0xac, 0xa0, 0xeb, 0xdc, 0xcc,
0xdf, 0xb8, 0x3a, 0x53, 0x04, 0x1a, 0x55, 0x27,
0x8e, 0x22, 0x86, 0x8c, 0xbd, 0xdc, 0x6b, 0x12,
0x9c, 0x69, 0xd2, 0x7a, 0x4b, 0x52, 0x5d, 0x76,
0x34, 0xb9, 0x5e, 0x30, 0x0a, 0x8d, 0x1e, 0xf1,
0x27, 0xda, 0x5b, 0xb9, 0x5e, 0xbf, 0x65, 0x34,
0x00, 0xb6, 0xd2, 0xb0, 0x89, 0x12, 0xb6, 0x35,
0xae, 0x27, 0x7f, 0x11, 0xe9, 0xf9, 0x1c, 0x71,
0xc9, 0x50, 0xfe, 0x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 0x09, 0x22, 0x97, 0x5d,
0x6f, 0xe4, 0x47, 0x98, 0x05, 0xcd, 0xcc, 0xde,
0xd5, 0xe3, 0xaf, 0xa3, 0xde, 0x69, 0x99, 0x2a,
0xd1, 0x28, 0x4d, 0x7c, 0x89, 0xa0, 0xdb, 0xae,
0xf9, 0xf1, 0x4a, 0x46, 0xdf, 0xbe, 0x1d, 0x37,
0xf2, 0xd5, 0x36, 0x4a, 0x54, 0xe8, 0xc4, 0xfb,
0x57, 0x77, 0x09, 0x05, 0x31, 0x99, 0xaf, 0x9a,
0x17, 0xd1, 0x20, 0x93, 0x31, 0x89, 0xff, 0xed,
0x0f, 0xf8, 0xed, 0xb3, 0xcf, 0x4c, 0x9a, 0x74,
0xbb, 0x00, 0x36, 0x41, 0xd1, 0x13, 0x68, 0x73,
0x78, 0x63, 0x42, 0xdd, 0x99, 0x15, 0x9a, 0xf4,
0xe1, 0xad, 0x6d, 0xf6, 0x5e, 0xca, 0x20, 0x24,
0xd7, 0x9d, 0x2f, 0x58, 0x97, 0xf7, 0xde, 0x31,
0x51, 0xa3, 0x1c, 0xe2, 0x66, 0x24, 0x4b, 0xa1,
0x56, 0x02, 0x32, 0xf4, 0x89, 0xf3, 0x86, 0x9a,
0x85, 0xda, 0x95, 0xa8, 0x7f, 0x6a, 0x77, 0x02,
0x3a, 0xba, 0xe0, 0xbe, 0x34, 0x5c, 0x9a, 0x1a
};
static const uint8_t ciphertext_aes128ecb_1008bytes[] = {
0x62, 0xa1, 0xcc, 0x1e, 0x1b, 0xc3, 0xb1, 0x11,
0xb5, 0x11, 0x4c, 0x37, 0xbf, 0xd0, 0x0c, 0xef,
0x36, 0x9f, 0x99, 0x49, 0x38, 0xc2, 0x62, 0xbd,
0x3e, 0x03, 0xd1, 0x02, 0xa2, 0x18, 0xdc, 0x58,
0x9c, 0x01, 0x99, 0xd8, 0x47, 0xeb, 0x27, 0xce,
0x76, 0x84, 0xa5, 0xab, 0xb7, 0x9b, 0xbb, 0x98,
0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0xbb, 0x52,
0x58, 0xb1, 0x0a, 0x85, 0xe9, 0x0b, 0x74, 0x2f,
0x08, 0xe8, 0xa4, 0x4d, 0xa1, 0xcf, 0xf2, 0x75,
0xed, 0x05, 0xae, 0x7f, 0x10, 0xb1, 0x71, 0x26,
0xc5, 0xc7, 0xdc, 0xb0, 0x2d, 0x26, 0xf1, 0xb4
};
/** AES-128-ECB test vector */
static const struct blockcipher_test_data aes_test_data_15 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_ECB,
.cipher_key = {
.data = {
0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6,
0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f, 0x3c
},
.len = 16
},
.iv = {
.data = { 0 },
.len = 0
},
.plaintext = {
.data = plaintext_aes128ecb,
.len = 64
},
.ciphertext = {
.data = ciphertext_aes128ecb,
.len = 64
}
};
/** AES-192-ECB test vector */
static const struct blockcipher_test_data aes_test_data_16 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_ECB,
.cipher_key = {
.data = {
0x8e, 0x73, 0xb0, 0xf7, 0xda, 0x0e, 0x64, 0x52,
0xc8, 0x10, 0xf3, 0x2b, 0x80, 0x90, 0x79, 0xe5,
0x62, 0xf8, 0xea, 0xd2, 0x52, 0x2c, 0x6b, 0x7b
},
.len = 24
},
.iv = {
.data = { 0 },
.len = 0
},
.plaintext = {
.data = plaintext_aes192ecb,
.len = 64
},
.ciphertext = {
.data = ciphertext_aes192ecb,
.len = 64
}
};
/** AES-256-ECB test vector */
static const struct blockcipher_test_data aes_test_data_17 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_ECB,
.cipher_key = {
.data = {
0x60, 0x3d, 0xeb, 0x10, 0x15, 0xca, 0x71, 0xbe,
0x2b, 0x73, 0xae, 0xf0, 0x85, 0x7d, 0x77, 0x81,
0x1f, 0x35, 0x2c, 0x07, 0x3b, 0x61, 0x08, 0xd7,
0x2d, 0x98, 0x10, 0xa3, 0x09, 0x14, 0xdf, 0xf4
},
.len = 32
},
.iv = {
.data = { 0 },
.len = 0
},
.plaintext = {
.data = plaintext_aes256ecb,
.len = 64
},
.ciphertext = {
.data = ciphertext_aes256ecb,
.len = 64
}
};
/** AES-128-ECB 128 byte test vector */
static const struct blockcipher_test_data aes_test_data_18 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_ECB,
.cipher_key = {
.data = {
0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6,
0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f, 0x3c
},
.len = 16
},
.iv = {
.data = { 0 },
.len = 0
},
.plaintext = {
.data = plaintext_aes128ecb_128bytes,
.len = 128
},
.ciphertext = {
.data = ciphertext_aes128ecb_128bytes,
.len = 128
}
};
/** AES-192-ECB 192 bytes test vector */
static const struct blockcipher_test_data aes_test_data_19 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_ECB,
.cipher_key = {
.data = {
0x8e, 0x73, 0xb0, 0xf7, 0xda, 0x0e, 0x64, 0x52,
0xc8, 0x10, 0xf3, 0x2b, 0x80, 0x90, 0x79, 0xe5,
0x62, 0xf8, 0xea, 0xd2, 0x52, 0x2c, 0x6b, 0x7b
},
.len = 24
},
.iv = {
.data = { 0 },
.len = 0
},
.plaintext = {
.data = plaintext_aes192ecb_192bytes,
.len = 64
},
.ciphertext = {
.data = ciphertext_aes192ecb_192bytes,
.len = 64
}
};
/** AES-256-ECB 256 byte test vector */
static const struct blockcipher_test_data aes_test_data_20 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_ECB,
.cipher_key = {
.data = {
0x60, 0x3d, 0xeb, 0x10, 0x15, 0xca, 0x71, 0xbe,
0x2b, 0x73, 0xae, 0xf0, 0x85, 0x7d, 0x77, 0x81,
0x1f, 0x35, 0x2c, 0x07, 0x3b, 0x61, 0x08, 0xd7,
0x2d, 0x98, 0x10, 0xa3, 0x09, 0x14, 0xdf, 0xf4
},
.len = 32
},
.iv = {
.data = { 0 },
.len = 0
},
.plaintext = {
.data = plaintext_aes256ecb_256bytes,
.len = 256
},
.ciphertext = {
.data = ciphertext_aes256ecb_256bytes,
.len = 256
}
};
/** AES-128-ECB 1008 byte test vector */
static const struct blockcipher_test_data aes_test_data_21 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_ECB,
.cipher_key = {
.data = {
0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6,
0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f, 0x3c
},
.len = 16
},
.iv = {
.data = { 0 },
.len = 0
},
.plaintext = {
.data = plaintext_aes128ecb_1008bytes,
.len = 1008
},
.ciphertext = {
.data = ciphertext_aes128ecb_1008bytes,
.len = 1008
}
};
/* NULL cipher NULL auth 8-byte multiple test vector */
static const struct blockcipher_test_data null_test_data_chain_x8_multiple = {
.crypto_algo = RTE_CRYPTO_CIPHER_NULL,
.cipher_key = { /* arbitrary data - shouldn't be used */
.data = {
0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6,
0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C
},
.len = 16
},
.iv = { /* arbitrary data - shouldn't be used */
.data = {
0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7,
0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF
},
.len = 16
},
.plaintext = {
.data = plaintext_aes_common,
.len = 512
},
.ciphertext = {
.data = plaintext_aes_common,
.len = 512
},
.auth_algo = RTE_CRYPTO_AUTH_NULL,
.auth_key = { /* arbitrary data - shouldn't be used */
.data = {
0xF8, 0x2A, 0xC7, 0x54, 0xDB, 0x96, 0x18, 0xAA,
0xC3, 0xA1, 0x53, 0xF6, 0x1F, 0x17, 0x60, 0xBD,
0xDE, 0xF4, 0xDE, 0xAD
},
.len = 20
},
.digest = {
.data = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00
},
.len = 20,
.truncated_len = 12
}
};
/* NULL cipher NULL auth 4-byte multiple test vector */
static const struct blockcipher_test_data null_test_data_chain_x4_multiple = {
.crypto_algo = RTE_CRYPTO_CIPHER_NULL,
.cipher_key = { /* arbitrary data - shouldn't be used */
.data = {
0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6,
0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C
},
.len = 16
},
.iv = { /* arbitrary data - shouldn't be used */
.data = {
0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7,
0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF
},
.len = 16
},
.plaintext = {
.data = plaintext_aes128ctr,
.len = 20
},
.ciphertext = {
.data = plaintext_aes128ctr,
.len = 20
},
.auth_algo = RTE_CRYPTO_AUTH_NULL,
.auth_key = { /* arbitrary data - shouldn't be used */
.data = {
0xF8, 0x2A, 0xC7, 0x54, 0xDB, 0x96, 0x18, 0xAA,
0xC3, 0xA1, 0x53, 0xF6, 0x1F, 0x17, 0x60, 0xBD,
0xDE, 0xF4, 0xDE, 0xAD
},
.len = 20
},
.digest = {
.data = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00
},
.len = 20,
.truncated_len = 12
}
};
/* NULL cipher NULL auth 1-byte multiple test vector */
static const struct blockcipher_test_data null_test_data_chain_x1_multiple = {
.crypto_algo = RTE_CRYPTO_CIPHER_NULL,
.cipher_key = { /* arbitrary data - shouldn't be used */
.data = {
0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6,
0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C
},
.len = 16
},
.iv = { /* arbitrary data - shouldn't be used */
.data = {
0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7,
0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF
},
.len = 16
},
.plaintext = {
.data = plaintext_aes128ctr,
.len = 21
},
.ciphertext = {
.data = plaintext_aes128ctr,
.len = 21
},
.auth_algo = RTE_CRYPTO_AUTH_NULL,
.auth_key = { /* arbitrary data - shouldn't be used */
.data = {
0xF8, 0x2A, 0xC7, 0x54, 0xDB, 0x96, 0x18, 0xAA,
0xC3, 0xA1, 0x53, 0xF6, 0x1F, 0x17, 0x60, 0xBD,
0xDE, 0xF4, 0xDE, 0xAD
},
.len = 20
},
.digest = {
.data = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00
},
.len = 20,
.truncated_len = 12
}
};
static const uint8_t ciphertext512_aes128cbc_aad[] = {
0x57, 0x68, 0x61, 0x74, 0x20, 0x61, 0x20, 0x6C,
0x1D, 0x7C, 0x76, 0xED, 0xC2, 0x10, 0x3C, 0xB5,
0x14, 0x07, 0x3C, 0x33, 0x7B, 0xBE, 0x9E, 0xA9,
0x01, 0xC5, 0xAA, 0xA6, 0xB6, 0x7A, 0xE1, 0xDB,
0x39, 0xAA, 0xAA, 0xF4, 0xEE, 0xA7, 0x71, 0x71,
0x78, 0x0D, 0x5A, 0xD4, 0xF9, 0xCD, 0x75, 0xD1,
0x9C, 0x7F, 0xC8, 0x58, 0x46, 0x7A, 0xD1, 0x81,
0xEA, 0xCC, 0x08, 0xDC, 0x82, 0x73, 0x22, 0x08,
0x11, 0x73, 0x7C, 0xB1, 0x84, 0x6A, 0x8E, 0x67,
0x3F, 0x5D, 0xDB, 0x0E, 0xE2, 0xC2, 0xCB, 0x6D,
0x88, 0xEC, 0x3F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0x0E, 0x49, 0xF1, 0x32, 0x6D, 0xA8,
0x62, 0xDF, 0x47, 0xBB, 0xB6, 0x53, 0xF8, 0x5C,
0x36, 0xDA, 0x34, 0x34, 0x2D, 0x2E, 0x1D, 0x33,
0xAF, 0x6A, 0x1E, 0xF1, 0xC9, 0x72, 0xB5, 0x3C,
0x64, 0x4C, 0x96, 0x12, 0x78, 0x67, 0x6A, 0xE5,
0x8B, 0x05, 0x80, 0xAE, 0x7D, 0xE5, 0x9B, 0x24,
0xDB, 0xFF, 0x1E, 0xB8, 0x36, 0x6D, 0x3D, 0x5D,
0x73, 0x65, 0x72, 0x73, 0x2C, 0x20, 0x73, 0x75
};
static const uint8_t plaintext_aes_common_digest_enc[] = {
0x57, 0x68, 0x61, 0x74, 0x20, 0x61, 0x20, 0x6C,
0x6F, 0x75, 0x73, 0x79, 0x20, 0x65, 0x61, 0x72,
0x74, 0x68, 0x21, 0x20, 0x48, 0x65, 0x20, 0x77,
0x6F, 0x6E, 0x64, 0x65, 0x72, 0x65, 0x64, 0x20,
0x68, 0x6F, 0x77, 0x20, 0x6D, 0x61, 0x6E, 0x79,
0x20, 0x70, 0x65, 0x6F, 0x70, 0x6C, 0x65, 0x20,
0x77, 0x65, 0x72, 0x65, 0x20, 0x64, 0x65, 0x73,
0x74, 0x69, 0x74, 0x75, 0x74, 0x65, 0x20, 0x74,
0x68, 0x61, 0x74, 0x20, 0x73, 0x61, 0x6D, 0x65,
0x20, 0x6E, 0x69, 0x67, 0x68, 0x74, 0x20, 0x65,
0x76, 0x65, 0x6E, 0x20, 0x69, 0x6E, 0x20, 0x68,
0x69, 0x73, 0x20, 0x6F, 0x77, 0x6E, 0x20, 0x70,
0x72, 0x6F, 0x73, 0x70, 0x65, 0x72, 0x6F, 0x75,
0x73, 0x20, 0x63, 0x6F, 0x75, 0x6E, 0x74, 0x72,
0x79, 0x2C, 0x20, 0x68, 0x6F, 0x77, 0x20, 0x6D,
0x61, 0x6E, 0x79, 0x20, 0x68, 0x6F, 0x6D, 0x65,
0x73, 0x20, 0x77, 0x65, 0x72, 0x65, 0x20, 0x73,
0x68, 0x61, 0x6E, 0x74, 0x69, 0x65, 0x73, 0x2C,
0x20, 0x68, 0x6F, 0x77, 0x20, 0x6D, 0x61, 0x6E,
0x79, 0x20, 0x68, 0x75, 0x73, 0x62, 0x61, 0x6E,
0x64, 0x73, 0x20, 0x77, 0x65, 0x72, 0x65, 0x20,
0x64, 0x72, 0x75, 0x6E, 0x6B, 0x20, 0x61, 0x6E,
0x64, 0x20, 0x77, 0x69, 0x76, 0x65, 0x73, 0x20,
0x73, 0x6F, 0x63, 0x6B, 0x65, 0x64, 0x2C, 0x20,
0x61, 0x6E, 0x64, 0x20, 0x68, 0x6F, 0x77, 0x20,
0x6D, 0x61, 0x6E, 0x79, 0x20, 0x63, 0x68, 0x69,
0x6C, 0x64, 0x72, 0x65, 0x6E, 0x20, 0x77, 0x65,
0x72, 0x65, 0x20, 0x62, 0x75, 0x6C, 0x6C, 0x69,
0x65, 0x64, 0x2C, 0x20, 0x61, 0x62, 0x75, 0x73,
0x65, 0x64, 0x2C, 0x20, 0x6F, 0x72, 0x20, 0x61,
0x62, 0x61, 0x6E, 0x64, 0x6F, 0x6E, 0x65, 0x64,
0x2E, 0x20, 0x48, 0x6F, 0x77, 0x20, 0x6D, 0x61,
0x6E, 0x79, 0x20, 0x66, 0x61, 0x6D, 0x69, 0x6C,
0x69, 0x65, 0x73, 0x20, 0x68, 0x75, 0x6E, 0x67,
0x65, 0x72, 0x65, 0x64, 0x20, 0x66, 0x6F, 0x72,
0x20, 0x66, 0x6F, 0x6F, 0x64, 0x20, 0x74, 0x68,
0x65, 0x79, 0x20, 0x63, 0x6F, 0x75, 0x6C, 0x64,
0x20, 0x6E, 0x6F, 0x74, 0x20, 0x61, 0x66, 0x66,
0x6F, 0x72, 0x64, 0x20, 0x74, 0x6F, 0x20, 0x62,
0x75, 0x79, 0x3F, 0x20, 0x48, 0x6F, 0x77, 0x20,
0x6D, 0x61, 0x6E, 0x79, 0x20, 0x68, 0x65, 0x61,
0x72, 0x74, 0x73, 0x20, 0x77, 0x65, 0x72, 0x65,
0x20, 0x62, 0x72, 0x6F, 0x6B, 0x65, 0x6E, 0x3F,
0x20, 0x48, 0x6F, 0x77, 0x20, 0x6D, 0x61, 0x6E,
0x79, 0x20, 0x73, 0x75, 0x69, 0x63, 0x69, 0x64,
0x65, 0x73, 0x20, 0x77, 0x6F, 0x75, 0x6C, 0x64,
0x20, 0x74, 0x61, 0x6B, 0x65, 0x20, 0x70, 0x6C,
0x61, 0x63, 0x65, 0x20, 0x74, 0x68, 0x61, 0x74,
0x20, 0x73, 0x61, 0x6D, 0x65, 0x20, 0x6E, 0x69,
0x67, 0x68, 0x74, 0x2C, 0x20, 0x68, 0x6F, 0x77,
0x20, 0x6D, 0x61, 0x6E, 0x79, 0x20, 0x70, 0x65,
0x6F, 0x70, 0x6C, 0x65, 0x20, 0x77, 0x6F, 0x75,
0x6C, 0x64, 0x20, 0x67, 0x6F, 0x20, 0x69, 0x6E,
0x73, 0x61, 0x6E, 0x65, 0x3F, 0x20, 0x48, 0x6F,
0x77, 0x20, 0x6D, 0x61, 0x6E, 0x79, 0x20, 0x63,
0x6F, 0x63, 0x6B, 0x72, 0x6F, 0x61, 0x63, 0x68,
0x65, 0x73, 0x20, 0x61, 0x6E, 0x64, 0x20, 0x6C,
0x61, 0x6E, 0x64, 0x6C, 0x6F, 0x72, 0x64, 0x73,
0x20, 0x77, 0x6F, 0x75, 0x6C, 0x64, 0x20, 0x74,
0x72, 0x69, 0x75, 0x6D, 0x70, 0x68, 0x3F, 0x20,
0x48, 0x6F, 0x77, 0x20, 0x6D, 0x61, 0x6E, 0x79,
0x20, 0x77, 0x69, 0x6E, 0x6E, 0x65, 0x72, 0x73,
0x20, 0x77, 0x65, 0x72, 0x65, 0x20, 0x6c, 0x6f,
0x73, 0x65, 0x72, 0x73, 0x2c, 0x20, 0x73, 0x75,
/* mac */
0xC4, 0xB7, 0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xCB, 0x58, 0x98, 0xBA, 0x7C, 0x98,
0x8B, 0x90, 0xFB, 0x5E, 0x9D, 0x74, 0xCC, 0x56,
0xE3, 0x55, 0xB1, 0xC8, 0xC8, 0x7C, 0xB2, 0xE7
};
static const uint8_t plaintext_aes_common_short_digest_enc[] = {
0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD,
0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD,
0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD,
0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD,
0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD,
0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD,
0xDD, 0xDD
};
static const uint8_t ciphertext512_aes128cbc_short_digest_enc[] = {
0x6D, 0xB1, 0x23, 0x86, 0x58, 0x54, 0x83, 0xE7,
0x3B, 0x27, 0x85, 0xA7, 0x06, 0xBC, 0x4A, 0xFB,
0x16, 0xD8, 0x56, 0x7C, 0x39, 0xC6, 0xE7, 0x1A,
0x67, 0xA8, 0x48, 0x22, 0xD6, 0xFF, 0x96, 0xB3,
0xA1, 0x52, 0x52, 0x83, 0xE6, 0x2E, 0x6A, 0xC9,
0x57, 0x8E, 0x34, 0x6F, 0xEE, 0x41, 0xF5, 0xBD,
0x6B, 0x89, 0x31, 0x64, 0x89, 0xAB, 0xDE, 0xA7,
0xBD, 0xFD, 0x46, 0x40, 0xE7, 0x13, 0x23, 0x84,
0xDD, 0xCB, 0x35, 0x87, 0x4E, 0x57, 0xB7, 0x97,
0x9E, 0xAB, 0xFB, 0xE7, 0x18, 0x82, 0x05, 0xDF
};
/* AES128-CTR-SHA1 test vector */
static const struct blockcipher_test_data aes_test_data_1 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_CTR,
.cipher_key = {
.data = {
0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6,
0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C
},
.len = 16
},
.iv = {
.data = {
0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7,
0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF
},
.len = 16
},
.plaintext = {
.data = plaintext_aes128ctr,
.len = 64
},
.ciphertext = {
.data = ciphertext64_aes128ctr,
.len = 64
},
.auth_algo = RTE_CRYPTO_AUTH_SHA1_HMAC,
.auth_key = {
.data = {
0xF8, 0x2A, 0xC7, 0x54, 0xDB, 0x96, 0x18, 0xAA,
0xC3, 0xA1, 0x53, 0xF6, 0x1F, 0x17, 0x60, 0xBD,
0xDE, 0xF4, 0xDE, 0xAD
},
.len = 20
},
.digest = {
.data = {
0x9B, 0x6F, 0x0C, 0x43, 0xF5, 0xC1, 0x3E, 0xB0,
0xB1, 0x70, 0xB8, 0x2B, 0x33, 0x09, 0xD2, 0xB2,
0x56, 0x20, 0xFB, 0xFE
},
.len = 20,
.truncated_len = 12
}
};
/** AES-192-CTR XCBC test vector */
static const struct blockcipher_test_data aes_test_data_2 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_CTR,
.cipher_key = {
.data = {
0xCB, 0xC5, 0xED, 0x5B, 0xE7, 0x7C, 0xBD, 0x8C,
0x50, 0xD9, 0x30, 0xF2, 0xB5, 0x6A, 0x0E, 0x5F,
0xAA, 0xAE, 0xAD, 0xA2, 0x1F, 0x49, 0x52, 0xD4
},
.len = 24
},
.iv = {
.data = {
0x3F, 0x69, 0xA8, 0xCD, 0xE8, 0xF0, 0xEF, 0x40,
0xB8, 0x7A, 0x4B, 0xED, 0x2B, 0xAF, 0xBF, 0x57
},
.len = 16
},
.plaintext = {
.data = plaintext_aes192ctr,
.len = 64
},
.ciphertext = {
.data = ciphertext64_aes192ctr,
.len = 64
},
.auth_algo = RTE_CRYPTO_AUTH_AES_XCBC_MAC,
.auth_key = {
.data = {
0x87, 0x61, 0x54, 0x53, 0xC4, 0x6D, 0xDD, 0x51,
0xE1, 0x9F, 0x86, 0x64, 0x39, 0x0A, 0xE6, 0x59
},
.len = 16
},
.digest = {
.data = {
0xCA, 0x33, 0xB3, 0x3B, 0x16, 0x94, 0xAA, 0x55,
0x36, 0x6B, 0x45, 0x46
},
.len = 12,
.truncated_len = 12
}
};
/** AES-256-CTR SHA1 test vector */
static const struct blockcipher_test_data aes_test_data_3 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_CTR,
.cipher_key = {
.data = {
0x60, 0x3D, 0xEB, 0x10, 0x15, 0xCA, 0x71, 0xBE,
0x2B, 0x73, 0xAE, 0xF0, 0x85, 0x7D, 0x77, 0x81,
0x1F, 0x35, 0x2C, 0x07, 0x3B, 0x61, 0x08, 0xD7,
0x2D, 0x98, 0x10, 0xA3, 0x09, 0x14, 0xDF, 0xF4
},
.len = 32
},
.iv = {
.data = {
0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7,
0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF
},
.len = 16
},
.plaintext = {
.data = plaintext_aes256ctr,
.len = 64
},
.ciphertext = {
.data = ciphertext64_aes256ctr,
.len = 64
},
.auth_algo = RTE_CRYPTO_AUTH_SHA1_HMAC,
.auth_key = {
.data = {
0xF8, 0x2A, 0xC7, 0x54, 0xDB, 0x96, 0x18, 0xAA,
0xC3, 0xA1, 0x53, 0xF6, 0x1F, 0x17, 0x60, 0xBD,
0xDE, 0xF4, 0xDE, 0xAD
},
.len = 20
},
.digest = {
.data = {
0x3B, 0x1A, 0x9D, 0x82, 0x35, 0xD5, 0xDD, 0x64,
0xCC, 0x1B, 0xA9, 0xC0, 0xEB, 0xE9, 0x42, 0x16,
0xE7, 0x87, 0xA3, 0xEF
},
.len = 20,
.truncated_len = 12
}
};
/* AES128-CTR-SHA1 test vector (12-byte IV) */
static const struct blockcipher_test_data aes_test_data_1_IV_12_bytes = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_CTR,
.cipher_key = {
.data = {
0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6,
0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C
},
.len = 16
},
.iv = {
.data = {
0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7,
0xF8, 0xF9, 0xFA, 0xFB
},
.len = 12
},
.plaintext = {
.data = plaintext_aes128ctr,
.len = 64
},
.ciphertext = {
.data = ciphertext64_aes128ctr_IV_12bytes,
.len = 64
},
.auth_algo = RTE_CRYPTO_AUTH_SHA1_HMAC,
.auth_key = {
.data = {
0xF8, 0x2A, 0xC7, 0x54, 0xDB, 0x96, 0x18, 0xAA,
0xC3, 0xA1, 0x53, 0xF6, 0x1F, 0x17, 0x60, 0xBD,
0xDE, 0xF4, 0xDE, 0xAD
},
.len = 20
},
.digest = {
.data = {
0x5C, 0x34, 0x6B, 0xE4, 0x9A, 0x7F, 0x4A, 0xC3,
0x82, 0xBE, 0xA0, 0x12, 0xD1, 0xF0, 0x15, 0xFA,
0xCF, 0xC8, 0x7F, 0x60
},
.len = 20,
.truncated_len = 12
}
};
/** AES-192-CTR XCBC test vector (12-byte IV) */
static const struct blockcipher_test_data aes_test_data_2_IV_12_bytes = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_CTR,
.cipher_key = {
.data = {
0xCB, 0xC5, 0xED, 0x5B, 0xE7, 0x7C, 0xBD, 0x8C,
0x50, 0xD9, 0x30, 0xF2, 0xB5, 0x6A, 0x0E, 0x5F,
0xAA, 0xAE, 0xAD, 0xA2, 0x1F, 0x49, 0x52, 0xD4
},
.len = 24
},
.iv = {
.data = {
0x3F, 0x69, 0xA8, 0xCD, 0xE8, 0xF0, 0xEF, 0x40,
0xB8, 0x7A, 0x4B, 0xED
},
.len = 12
},
.plaintext = {
.data = plaintext_aes192ctr,
.len = 64
},
.ciphertext = {
.data = ciphertext64_aes192ctr_IV_12bytes,
.len = 64
},
.auth_algo = RTE_CRYPTO_AUTH_AES_XCBC_MAC,
.auth_key = {
.data = {
0x87, 0x61, 0x54, 0x53, 0xC4, 0x6D, 0xDD, 0x51,
0xE1, 0x9F, 0x86, 0x64, 0x39, 0x0A, 0xE6, 0x59
},
.len = 16
},
.digest = {
.data = {
0x0C, 0xA1, 0xA5, 0xAF, 0x3E, 0x41, 0xD2, 0xF4,
0x4C, 0x4C, 0xAB, 0x13
},
.len = 12,
.truncated_len = 12
}
};
/** AES-256-CTR SHA1 test vector (12-byte IV) */
static const struct blockcipher_test_data aes_test_data_3_IV_12_bytes = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_CTR,
.cipher_key = {
.data = {
0x60, 0x3D, 0xEB, 0x10, 0x15, 0xCA, 0x71, 0xBE,
0x2B, 0x73, 0xAE, 0xF0, 0x85, 0x7D, 0x77, 0x81,
0x1F, 0x35, 0x2C, 0x07, 0x3B, 0x61, 0x08, 0xD7,
0x2D, 0x98, 0x10, 0xA3, 0x09, 0x14, 0xDF, 0xF4
},
.len = 32
},
.iv = {
.data = {
0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7,
0xF8, 0xF9, 0xFA, 0xFB
},
.len = 12
},
.plaintext = {
.data = plaintext_aes256ctr,
.len = 64
},
.ciphertext = {
.data = ciphertext64_aes256ctr_IV_12bytes,
.len = 64
},
.auth_algo = RTE_CRYPTO_AUTH_SHA1_HMAC,
.auth_key = {
.data = {
0xF8, 0x2A, 0xC7, 0x54, 0xDB, 0x96, 0x18, 0xAA,
0xC3, 0xA1, 0x53, 0xF6, 0x1F, 0x17, 0x60, 0xBD,
0xDE, 0xF4, 0xDE, 0xAD
},
.len = 20
},
.digest = {
.data = {
0x57, 0x9A, 0x52, 0x6E, 0x31, 0x17, 0x57, 0x49,
0xE7, 0xA1, 0x88, 0x6C, 0x2E, 0x36, 0x67, 0x63,
0x3F, 0x2D, 0xA3, 0xEF
},
.len = 20,
.truncated_len = 12
}
};
/** AES-128-CBC SHA1 test vector */
static const struct blockcipher_test_data aes_test_data_4 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_CBC,
.cipher_key = {
.data = {
0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A
},
.len = 16
},
.iv = {
.data = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
},
.len = 16
},
.plaintext = {
.data = plaintext_aes_common,
.len = 512
},
.ciphertext = {
.data = ciphertext512_aes128cbc,
.len = 512
},
.auth_algo = RTE_CRYPTO_AUTH_SHA1_HMAC,
.auth_key = {
.data = {
0xF8, 0x2A, 0xC7, 0x54, 0xDB, 0x96, 0x18, 0xAA,
0xC3, 0xA1, 0x53, 0xF6, 0x1F, 0x17, 0x60, 0xBD,
0xDE, 0xF4, 0xDE, 0xAD
},
.len = 20
},
.digest = {
.data = {
0x9A, 0x4F, 0x88, 0x1B, 0xB6, 0x8F, 0xD8, 0x60,
0x42, 0x1A, 0x7D, 0x3D, 0xF5, 0x82, 0x80, 0xF1,
0x18, 0x8C, 0x1D, 0x32
},
.len = 20,
.truncated_len = 12
}
};
/** AES-128-CBC SHA1 test vector (Digest encrypted mode) */
static const struct blockcipher_test_data aes_test_data_4_digest_enc = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_CBC,
.cipher_key = {
.data = {
0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A
},
.len = 16
},
.iv = {
.data = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
},
.len = 16
},
.plaintext = {
.data = plaintext_aes_common_digest_enc,
.len = 512
},
.ciphertext = {
.data = ciphertext512_aes128cbc_digest_enc,
.len = 512
},
.auth_algo = RTE_CRYPTO_AUTH_SHA1_HMAC,
.auth_key = {
.data = {
0xF8, 0x2A, 0xC7, 0x54, 0xDB, 0x96, 0x18, 0xAA,
0xC3, 0xA1, 0x53, 0xF6, 0x1F, 0x17, 0x60, 0xBD,
0xDE, 0xF4, 0xDE, 0xAD
},
.len = 20
},
.digest = {
.data = {
0x9A, 0x4F, 0x88, 0x1B, 0xB6, 0x8F, 0xD8, 0x60,
0x42, 0x1A, 0x7D, 0x3D, 0xF5, 0x82, 0x80, 0xF1,
0x18, 0x8C, 0x1D, 0x32
},
.len = 20,
}
};
/** AES-128-CBC SHA256 test vector */
static const struct blockcipher_test_data aes_test_data_5 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_CBC,
.cipher_key = {
.data = {
0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A
},
.len = 16
},
.iv = {
.data = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
},
.len = 16
},
.plaintext = {
.data = plaintext_aes_common,
.len = 512
},
.ciphertext = {
.data = ciphertext512_aes128cbc,
.len = 512
},
.auth_algo = RTE_CRYPTO_AUTH_SHA256_HMAC,
.auth_key = {
.data = {
0x42, 0x1A, 0x7D, 0x3D, 0xF5, 0x82, 0x80, 0xF1,
0xF1, 0x35, 0x5C, 0x3B, 0xDD, 0x9A, 0x65, 0xBA,
0x58, 0x34, 0x85, 0x61, 0x1C, 0x42, 0x10, 0x76,
0x9A, 0x4F, 0x88, 0x1B, 0xB6, 0x8F, 0xD8, 0x60
},
.len = 32
},
.digest = {
.data = {
0xC8, 0x57, 0x57, 0x31, 0x03, 0xE0, 0x03, 0x55,
0x07, 0xC8, 0x9E, 0x7F, 0x48, 0x9A, 0x61, 0x9A,
0x68, 0xEE, 0x03, 0x0E, 0x71, 0x75, 0xC7, 0xF4,
0x2E, 0x45, 0x26, 0x32, 0x7C, 0x12, 0x15, 0x15
},
.len = 32,
.truncated_len = 16
}
};
/** AES-128-CBC SHA512 test vector */
static const struct blockcipher_test_data aes_test_data_6 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_CBC,
.cipher_key = {
.data = {
0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A
},
.len = 16
},
.iv = {
.data = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
},
.len = 16
},
.plaintext = {
.data = plaintext_aes_common,
.len = 512
},
.ciphertext = {
.data = ciphertext512_aes128cbc,
.len = 512
},
.auth_algo = RTE_CRYPTO_AUTH_SHA512_HMAC,
.auth_key = {
.data = {
0x42, 0x1A, 0x7D, 0x3D, 0xF5, 0x82, 0x80, 0xF1,
0xF1, 0x35, 0x5C, 0x3B, 0xDD, 0x9A, 0x65, 0xBA,
0x58, 0x34, 0x85, 0x65, 0x1C, 0x42, 0x50, 0x76,
0x9A, 0xAF, 0x88, 0x1B, 0xB6, 0x8F, 0xF8, 0x60,
0xA2, 0x5A, 0x7F, 0x3F, 0xF4, 0x72, 0x70, 0xF1,
0xF5, 0x35, 0x4C, 0x3B, 0xDD, 0x90, 0x65, 0xB0,
0x47, 0x3A, 0x75, 0x61, 0x5C, 0xA2, 0x10, 0x76,
0x9A, 0xAF, 0x77, 0x5B, 0xB6, 0x7F, 0xF7, 0x60
},
.len = 64
},
.digest = {
.data = {
0x5D, 0x54, 0x66, 0xC1, 0x6E, 0xBC, 0x04, 0xB8,
0x46, 0xB8, 0x08, 0x6E, 0xE0, 0xF0, 0x43, 0x48,
0x37, 0x96, 0x9C, 0xC6, 0x9C, 0xC2, 0x1E, 0xE8,
0xF2, 0x0C, 0x0B, 0xEF, 0x86, 0xA2, 0xE3, 0x70,
0x95, 0xC8, 0xB3, 0x06, 0x47, 0xA9, 0x90, 0xE8,
0xA0, 0xC6, 0x72, 0x69, 0x05, 0xC0, 0x0D, 0x0E,
0x21, 0x96, 0x65, 0x93, 0x74, 0x43, 0x2A, 0x1D,
0x2E, 0xBF, 0xC2, 0xC2, 0xEE, 0xCC, 0x2F, 0x0A
},
.len = 64,
.truncated_len = 32
}
};
/** AES-128-CBC XCBC test vector */
static const struct blockcipher_test_data aes_test_data_7 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_CBC,
.cipher_key = {
.data = {
0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A
},
.len = 16
},
.iv = {
.data = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
},
.len = 16
},
.plaintext = {
.data = plaintext_aes_common,
.len = 512
},
.ciphertext = {
.data = ciphertext512_aes128cbc,
.len = 512
},
.auth_algo = RTE_CRYPTO_AUTH_AES_XCBC_MAC,
.auth_key = {
.data = {
0x87, 0x61, 0x54, 0x53, 0xC4, 0x6D, 0xDD, 0x51,
0xE1, 0x9F, 0x86, 0x64, 0x39, 0x0A, 0xE6, 0x59
},
.len = 16
},
.digest = {
.data = {
0xE0, 0xAC, 0x9A, 0xC4, 0x22, 0x64, 0x35, 0x89,
0x77, 0x1D, 0x8B, 0x75
},
.len = 12,
.truncated_len = 12
}
};
/** AES-128-CBC SHA224 test vector */
static const struct blockcipher_test_data aes_test_data_8 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_CBC,
.cipher_key = {
.data = {
0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A
},
.len = 16
},
.iv = {
.data = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
},
.len = 16
},
.plaintext = {
.data = plaintext_aes_common,
.len = 512
},
.ciphertext = {
.data = ciphertext512_aes128cbc,
.len = 512
},
.auth_algo = RTE_CRYPTO_AUTH_SHA224_HMAC,
.auth_key = {
.data = {
0x42, 0x1A, 0x7D, 0x3D, 0xF5, 0x82, 0x80, 0xF1,
0xF1, 0x35, 0x5C, 0x3B, 0xDD, 0x9A, 0x65, 0xBA,
0x58, 0x34, 0x85, 0x65, 0x1C, 0x42, 0x50, 0x76,
0x9A, 0xAF, 0x88, 0x1B, 0xB6, 0x8F, 0xF8, 0x60,
0xA2, 0x5A, 0x7F, 0x3F, 0xF4, 0x72, 0x70, 0xF1,
0xF5, 0x35, 0x4C, 0x3B, 0xDD, 0x90, 0x65, 0xB0,
0x47, 0x3A, 0x75, 0x61, 0x5C, 0xA2, 0x10, 0x76,
0x9A, 0xAF, 0x77, 0x5B, 0xB6, 0x7F, 0xF7, 0x60
},
.len = 64
},
.digest = {
.data = {
0xA3, 0xCA, 0xC7, 0x1D, 0xA8, 0x61, 0x30, 0x98,
0x3B, 0x8F, 0x01, 0x19, 0xAE, 0x8D, 0xBD, 0x34,
0x40, 0x63, 0xA8, 0x2F, 0xDF, 0x85, 0x2B, 0x7F,
0x63, 0x7C, 0xDD, 0xB7
},
.len = 28,
.truncated_len = 14
}
};
/** AES-128-CBC SHA384 test vector */
static const struct blockcipher_test_data aes_test_data_9 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_CBC,
.cipher_key = {
.data = {
0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A
},
.len = 16
},
.iv = {
.data = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
},
.len = 16
},
.plaintext = {
.data = plaintext_aes_common,
.len = 512
},
.ciphertext = {
.data = ciphertext512_aes128cbc,
.len = 512
},
.auth_algo = RTE_CRYPTO_AUTH_SHA384_HMAC,
.auth_key = {
.data = {
0x42, 0x1A, 0x7D, 0x3D, 0xF5, 0x82, 0x80, 0xF1,
0xF1, 0x35, 0x5C, 0x3B, 0xDD, 0x9A, 0x65, 0xBA,
0x58, 0x34, 0x85, 0x65, 0x1C, 0x42, 0x50, 0x76,
0x9A, 0xAF, 0x88, 0x1B, 0xB6, 0x8F, 0xF8, 0x60,
0xA2, 0x5A, 0x7F, 0x3F, 0xF4, 0x72, 0x70, 0xF1,
0xF5, 0x35, 0x4C, 0x3B, 0xDD, 0x90, 0x65, 0xB0,
0x47, 0x3A, 0x75, 0x61, 0x5C, 0xA2, 0x10, 0x76,
0x9A, 0xAF, 0x77, 0x5B, 0xB6, 0x7F, 0xF7, 0x60,
0x42, 0x1A, 0x7D, 0x3D, 0xF5, 0x82, 0x80, 0xF1,
0xF1, 0x35, 0x5C, 0x3B, 0xDD, 0x9A, 0x65, 0xBA,
0x58, 0x34, 0x85, 0x65, 0x1C, 0x42, 0x50, 0x76,
0x9A, 0xAF, 0x88, 0x1B, 0xB6, 0x8F, 0xF8, 0x60,
0xA2, 0x5A, 0x7F, 0x3F, 0xF4, 0x72, 0x70, 0xF1,
0xF5, 0x35, 0x4C, 0x3B, 0xDD, 0x90, 0x65, 0xB0,
0x47, 0x3A, 0x75, 0x61, 0x5C, 0xA2, 0x10, 0x76,
0x9A, 0xAF, 0x77, 0x5B, 0xB6, 0x7F, 0xF7, 0x60
},
.len = 128
},
.digest = {
.data = {
0x23, 0x60, 0xC8, 0xB1, 0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 0x41, 0xD5, 0x5C, 0x43, 0x60, 0xBC,
0x21, 0x04, 0x5B, 0xB9, 0xFF, 0x75, 0xF8, 0x1F,
0x5C, 0x85, 0x91, 0x08, 0x02, 0xA2, 0xFD, 0x88,
};
/** AES-192-CBC test vector */
static const struct blockcipher_test_data aes_test_data_10 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_CBC,
.cipher_key = {
.data = {
0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A,
0xD4, 0xC3, 0xA3, 0xAA, 0x33, 0x62, 0x61, 0xE0
},
.len = 24
},
.iv = {
.data = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
},
.len = 16
},
.plaintext = {
.data = plaintext_aes_common,
.len = 512
},
.ciphertext = {
.data = ciphertext512_aes192cbc,
.len = 512
}
};
/** AES-192-CBC SHA1 test vector (Digest encrypted mode) */
static const struct blockcipher_test_data aes_test_data_10_digest_enc = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_CBC,
.cipher_key = {
.data = {
0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A,
0xD4, 0xC3, 0xA3, 0xAA, 0x33, 0x62, 0x61, 0xE0
},
.len = 24
},
.iv = {
.data = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
},
.len = 16
},
.plaintext = {
.data = plaintext_aes_common_digest_enc,
.len = 512
},
.ciphertext = {
.data = ciphertext512_aes192cbc_digest_enc,
.len = 512
},
.auth_algo = RTE_CRYPTO_AUTH_SHA1_HMAC,
.auth_key = {
.data = {
0xF8, 0x2A, 0xC7, 0x54, 0xDB, 0x96, 0x18, 0xAA,
0xC3, 0xA1, 0x53, 0xF6, 0x1F, 0x17, 0x60, 0xBD,
0xDE, 0xF4, 0xDE, 0xAD
},
.len = 20
},
.digest = {
.data = {
0x9A, 0x4F, 0x88, 0x1B, 0xB6, 0x8F, 0xD8, 0x60,
0x42, 0x1A, 0x7D, 0x3D, 0xF5, 0x82, 0x80, 0xF1,
0x18, 0x8C, 0x1D, 0x32
},
.len = 20,
}
};
static const uint8_t ciphertext512_aes256cbc[] = {
0xF3, 0xDD, 0xF0, 0x0B, 0xFF, 0xA2, 0x6A, 0x04,
0xBE, 0xDA, 0x52, 0xA6, 0xFE, 0x6B, 0xA6, 0xA7,
0x48, 0x1D, 0x7D, 0x98, 0x65, 0xDB, 0xEF, 0x06,
0x26, 0xB5, 0x8E, 0xEB, 0x05, 0x0E, 0x77, 0x98,
0x17, 0x8E, 0xD0, 0xD4, 0x7B, 0x92, 0x8F, 0x5C,
0xD0, 0x74, 0x5C, 0xA8, 0x4B, 0x54, 0xB6, 0x2F,
0x83, 0x72, 0x2C, 0xFF, 0x72, 0xE9, 0xE4, 0x15,
0x4C, 0x32, 0xAF, 0xC8, 0xC9, 0x89, 0x3C, 0x6E,
0x31, 0xD5, 0xC0, 0x16, 0xC0, 0x31, 0x7D, 0x11,
0xAB, 0xCB, 0xDE, 0xD2, 0xD6, 0xAA, 0x76, 0x5E,
0xBA, 0xF6, 0xE2, 0x92, 0xCB, 0x86, 0x07, 0xFA,
0xD4, 0x9E, 0x83, 0xED, 0xFD, 0xB8, 0x70, 0x54,
0x6B, 0xBE, 0xEC, 0x72, 0xDD, 0x28, 0x5E, 0x95,
0x78, 0xA5, 0x28, 0x43, 0x3D, 0x6D, 0xB1, 0xD9,
0x69, 0x1F, 0xC9, 0x66, 0x0E, 0x32, 0x44, 0x08,
0xD2, 0xAE, 0x2C, 0x43, 0xF2, 0xD0, 0x7D, 0x26,
0x70, 0xE5, 0xA1, 0xCA, 0x37, 0xE9, 0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x80, 0x2F, 0x56, 0x95, 0xA0, 0x80, 0xC6, 0xC2,
0xA8, 0x27, 0xFB, 0x48, 0x96, 0x58, 0xA1, 0x93,
};
/** AES-256-CBC test vector */
static const struct blockcipher_test_data aes_test_data_11 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_CBC,
.cipher_key = {
.data = {
0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A,
0xD4, 0xC3, 0xA3, 0xAA, 0x33, 0x62, 0x61, 0xE0,
0x37, 0x07, 0xB8, 0x23, 0xA2, 0xA3, 0xB5, 0x8D
},
.len = 32
},
.iv = {
.data = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
},
.len = 16
},
.plaintext = {
.data = plaintext_aes_common,
.len = 512
},
.ciphertext = {
.data = ciphertext512_aes256cbc,
.len = 512
}
};
/** AES-256-CBC SHA1 test vector (Digest encrypted mode) */
static const struct blockcipher_test_data aes_test_data_11_digest_enc = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_CBC,
.cipher_key = {
.data = {
0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A,
0xD4, 0xC3, 0xA3, 0xAA, 0x33, 0x62, 0x61, 0xE0,
0x37, 0x07, 0xB8, 0x23, 0xA2, 0xA3, 0xB5, 0x8D
},
.len = 32
},
.iv = {
.data = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
},
.len = 16
},
.plaintext = {
.data = plaintext_aes_common_digest_enc,
.len = 512
},
.ciphertext = {
.data = ciphertext512_aes256cbc_digest_enc,
.len = 512
},
.auth_algo = RTE_CRYPTO_AUTH_SHA1_HMAC,
.auth_key = {
.data = {
0xF8, 0x2A, 0xC7, 0x54, 0xDB, 0x96, 0x18, 0xAA,
0xC3, 0xA1, 0x53, 0xF6, 0x1F, 0x17, 0x60, 0xBD,
0xDE, 0xF4, 0xDE, 0xAD
},
.len = 20
},
.digest = {
.data = {
0x9A, 0x4F, 0x88, 0x1B, 0xB6, 0x8F, 0xD8, 0x60,
0x42, 0x1A, 0x7D, 0x3D, 0xF5, 0x82, 0x80, 0xF1,
0x18, 0x8C, 0x1D, 0x32
},
.len = 20,
}
};
/** AES-128-CBC SHA256 HMAC test vector (160 bytes) */
static const struct blockcipher_test_data aes_test_data_12 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_CBC,
.cipher_key = {
.data = {
0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A
},
.len = 16
},
.iv = {
.data = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
},
.len = 16
},
.plaintext = {
.data = plaintext_aes_common,
.len = 160
},
.ciphertext = {
.data = ciphertext512_aes128cbc,
.len = 160
},
.auth_algo = RTE_CRYPTO_AUTH_SHA256_HMAC,
.auth_key = {
.data = {
0x42, 0x1A, 0x7D, 0x3D, 0xF5, 0x82, 0x80, 0xF1,
0xF1, 0x35, 0x5C, 0x3B, 0xDD, 0x9A, 0x65, 0xBA,
0x58, 0x34, 0x85, 0x61, 0x1C, 0x42, 0x10, 0x76,
0x9A, 0x4F, 0x88, 0x1B, 0xB6, 0x8F, 0xD8, 0x60
},
.len = 32
},
.digest = {
.data = {
0x92, 0xEC, 0x65, 0x9A, 0x52, 0xCC, 0x50, 0xA5,
0xEE, 0x0E, 0xDF, 0x1E, 0xA4, 0xC9, 0xC1, 0x04,
0xD5, 0xDC, 0x78, 0x90, 0xF4, 0xE3, 0x35, 0x62,
0xAD, 0x95, 0x45, 0x28, 0x5C, 0xF8, 0x8C, 0x0B
},
.len = 32,
.truncated_len = 16
}
};
/** AES-128-CBC SHA1 HMAC test vector (160 bytes) */
static const struct blockcipher_test_data aes_test_data_13 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_CBC,
.cipher_key = {
.data = {
0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A
},
.len = 16
},
.iv = {
.data = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
},
.len = 16
},
.plaintext = {
.data = plaintext_aes_common,
.len = 160
},
.ciphertext = {
.data = ciphertext512_aes128cbc,
.len = 160
},
.auth_algo = RTE_CRYPTO_AUTH_SHA1_HMAC,
.auth_key = {
.data = {
0xF8, 0x2A, 0xC7, 0x54, 0xDB, 0x96, 0x18, 0xAA,
0xC3, 0xA1, 0x53, 0xF6, 0x1F, 0x17, 0x60, 0xBD,
0xDE, 0xF4, 0xDE, 0xAD
},
.len = 20
},
.digest = {
.data = {
0x4F, 0x16, 0xEA, 0xF7, 0x4A, 0x88, 0xD3, 0xE0,
0x0E, 0x12, 0x8B, 0xE7, 0x05, 0xD0, 0x86, 0x48,
0x22, 0x43, 0x30, 0xA7
},
.len = 20,
.truncated_len = 12
}
};
/** AES-128-CBC SHA1 test vector (Digest encrypted mode) */
static const struct blockcipher_test_data aes_test_data_13_digest_enc = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_CBC,
.cipher_key = {
.data = {
0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A
},
.len = 16
},
.iv = {
.data = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
},
.len = 16
},
.plaintext = {
.data = plaintext_aes_common_short_digest_enc,
.len = 50
},
.ciphertext = {
.data = ciphertext512_aes128cbc_short_digest_enc,
.len = 50
},
.auth_algo = RTE_CRYPTO_AUTH_SHA1_HMAC,
.auth_key = {
.data = {
0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
0xAA, 0xAA, 0xAA, 0xAA
},
.len = 20
},
.digest = {
.data = {
0x12, 0x5D, 0x73, 0x42, 0xB9, 0xAC, 0x11, 0xCD,
0x91, 0xA3, 0x9A, 0xF4, 0x8A, 0xA1, 0x7B, 0x4F,
0x63, 0xF1, 0x75, 0xD3
},
.len = 20,
}
};
/** XTS-AES-128 test vector (2 keys * 128 bit) */
static const uint8_t plaintext_aes128xts_16bytes[] = {
0xEB, 0xAB, 0xCE, 0x95, 0xB1, 0x4D, 0x3C, 0x8D,
0x6F, 0xB3, 0x50, 0x39, 0x07, 0x90, 0x31, 0x1C
};
static const uint8_t ciphertext_aes128xts_16bytes[] = {
0x77, 0x8A, 0xE8, 0xB4, 0x3C, 0xB9, 0x8D, 0x5A,
0x82, 0x50, 0x81, 0xD5, 0xBE, 0x47, 0x1C, 0x63
};
static const struct
blockcipher_test_data aes_test_data_xts_key_32_pt_16 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_XTS,
.cipher_key = {
.data = {
0xA1, 0xB9, 0x0C, 0xBA, 0x3F, 0x06, 0xAC, 0x35,
0x3B, 0x2C, 0x34, 0x38, 0x76, 0x08, 0x17, 0x62,
0x09, 0x09, 0x23, 0x02, 0x6E, 0x91, 0x77, 0x18,
0x15, 0xF2, 0x9D, 0xAB, 0x01, 0x93, 0x2F, 0x2F
},
.len = 32
},
.iv = {
.data = {
0x4F, 0xAE, 0xF7, 0x11, 0x7C, 0xDA, 0x59, 0xC6,
0x6E, 0x4B, 0x92, 0x01, 0x3E, 0x76, 0x8A, 0xD5
},
.len = 16
},
.plaintext = {
.data = plaintext_aes128xts_16bytes,
.len = 16
},
.ciphertext = {
.data = ciphertext_aes128xts_16bytes,
.len = 16
}
};
static const uint8_t plaintext_aes128xts_32bytes[] = {
0xB0, 0x4D, 0x84, 0xDA, 0x85, 0x6B, 0x9A, 0x59,
0xCE, 0x2D, 0x62, 0x67, 0x46, 0xF6, 0x89, 0xA8,
0x05, 0x1D, 0xAC, 0xD6, 0xBC, 0xE3, 0xB9, 0x90,
0xAA, 0x90, 0x1E, 0x40, 0x30, 0x64, 0x88, 0x79
};
static const uint8_t ciphertext_aes128xts_32bytes[] = {
0xF9, 0x41, 0x03, 0x9E, 0xBA, 0xB8, 0xCA, 0xC3,
0x9D, 0x59, 0x24, 0x7C, 0xBB, 0xCB, 0x4D, 0x81,
0x6C, 0x72, 0x6D, 0xAE, 0xD1, 0x15, 0x77, 0x69,
0x2C, 0x55, 0xE4, 0xAC, 0x6D, 0x3E, 0x68, 0x20
};
static const struct
blockcipher_test_data aes_test_data_xts_key_32_pt_32 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_XTS,
.cipher_key = {
.data = {
0x78, 0x3A, 0x83, 0xEC, 0x52, 0xA2, 0x74, 0x05,
0xDF, 0xF9, 0xDE, 0x4C, 0x57, 0xF9, 0xC9, 0x79,
0xB3, 0x60, 0xB6, 0xA5, 0xDF, 0x88, 0xD6, 0x7E,
0xC1, 0xA0, 0x52, 0xE6, 0xF5, 0x82, 0xA7, 0x17
},
.len = 32
},
.iv = {
.data = {
0x88, 0x6E, 0x97, 0x5B, 0x29, 0xBD, 0xF6, 0xF0,
0xC0, 0x1B, 0xB4, 0x7F, 0x61, 0xF6, 0xF0, 0xF5
},
.len = 16
},
.plaintext = {
.data = plaintext_aes128xts_32bytes,
.len = 32
},
.ciphertext = {
.data = ciphertext_aes128xts_32bytes,
.len = 32
}
};
/** XTS-AES-256 test vector (2 keys * 256 bit) */
/* Encryption */
static const uint8_t plaintext_aes256xts_32bytes[] = {
0x2E, 0xED, 0xEA, 0x52, 0xCD, 0x82, 0x15, 0xE1,
0xAC, 0xC6, 0x47, 0xE8, 0x10, 0xBB, 0xC3, 0x64,
0x2E, 0x87, 0x28, 0x7F, 0x8D, 0x2E, 0x57, 0xE3,
0x6C, 0x0A, 0x24, 0xFB, 0xC1, 0x2A, 0x20, 0x2E
};
static const uint8_t ciphertext_aes256xts_32bytes[] = {
0xCB, 0xAA, 0xD0, 0xE2, 0xF6, 0xCE, 0xA3, 0xF5,
0x0B, 0x37, 0xF9, 0x34, 0xD4, 0x6A, 0x9B, 0x13,
0x0B, 0x9D, 0x54, 0xF0, 0x7E, 0x34, 0xF3, 0x6A,
0xF7, 0x93, 0xE8, 0x6F, 0x73, 0xC6, 0xD7, 0xDB
};
static const struct
blockcipher_test_data aes_test_data_xts_key_64_pt_32 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_XTS,
.cipher_key = {
.data = {
0x1E, 0xA6, 0x61, 0xC5, 0x8D, 0x94, 0x3A, 0x0E,
0x48, 0x01, 0xE4, 0x2F, 0x4B, 0x09, 0x47, 0x14,
0x9E, 0x7F, 0x9F, 0x8E, 0x3E, 0x68, 0xD0, 0xC7,
0x50, 0x52, 0x10, 0xBD, 0x31, 0x1A, 0x0E, 0x7C,
0xD6, 0xE1, 0x3F, 0xFD, 0xF2, 0x41, 0x8D, 0x8D,
0x19, 0x11, 0xC0, 0x04, 0xCD, 0xA5, 0x8D, 0xA3,
0xD6, 0x19, 0xB7, 0xE2, 0xB9, 0x14, 0x1E, 0x58,
0x31, 0x8E, 0xEA, 0x39, 0x2C, 0xF4, 0x1B, 0x08
},
.len = 64
},
.iv = {
.data = {
0xAD, 0xF8, 0xD9, 0x26, 0x27, 0x46, 0x4A, 0xD2,
0xF0, 0x42, 0x8E, 0x84, 0xA9, 0xF8, 0x75, 0x64
},
.len = 16
},
.plaintext = {
.data = plaintext_aes256xts_32bytes,
.len = 32
},
.ciphertext = {
.data = ciphertext_aes256xts_32bytes,
.len = 32
}
};
static const uint8_t plaintext_aes256xts_48bytes[] = {
0xBB, 0xB2, 0x34, 0xDB, 0x01, 0xBE, 0x79, 0xD3,
0xDC, 0x7D, 0xCF, 0x49, 0xBC, 0x53, 0xB8, 0xEF,
0xC6, 0x2F, 0xE7, 0x17, 0x94, 0x39, 0x06, 0x1D,
0x73, 0xA6, 0xB2, 0x0E, 0xDB, 0x9B, 0x7D, 0xA0,
0x45, 0x0B, 0x19, 0xF0, 0x20, 0x82, 0x02, 0x09,
0xAF, 0xE0, 0x81, 0x12, 0xAE, 0x4A, 0xFD, 0xD3
};
static const uint8_t ciphertext_aes256xts_48bytes[] = {
0xCB, 0xF6, 0x88, 0x48, 0xC4, 0x20, 0x49, 0xEF,
0xB1, 0x46, 0xE2, 0xD1, 0xE4, 0x11, 0x5F, 0x62,
0xE4, 0xFA, 0xA4, 0xEF, 0xFF, 0x19, 0x8F, 0x1A,
0x0A, 0xA0, 0xC9, 0x8B, 0xA0, 0x2C, 0xC4, 0x4D,
0xA3, 0x76, 0xD7, 0x62, 0xD6, 0x15, 0x1F, 0x23,
0x45, 0x87, 0xBF, 0x12, 0x8B, 0x6A, 0x7F, 0xFA
};
static const struct
blockcipher_test_data aes_test_data_xts_key_64_pt_48 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_XTS,
.cipher_key = {
.data = {
0x7F, 0xB0, 0x92, 0x2F, 0xCE, 0x09, 0xED, 0xDD,
0x36, 0x65, 0xA1, 0x1F, 0x52, 0x35, 0xD5, 0x1E,
0xF7, 0x72, 0x06, 0xA7, 0xDE, 0x45, 0x47, 0x75,
0xB6, 0x9D, 0xCC, 0x54, 0x59, 0xAC, 0xDB, 0x24,
0xCC, 0xF0, 0x5C, 0x41, 0x5A, 0xF5, 0xAB, 0x8A,
0x06, 0x62, 0x3D, 0x19, 0x8D, 0x5B, 0x91, 0x85,
0x95, 0xA9, 0xDC, 0xAA, 0xF5, 0x39, 0x2E, 0xE7,
0x17, 0xC1, 0x04, 0x7F, 0x2F, 0x08, 0xF6, 0x2B
},
.len = 64
},
.iv = {
.data = {
0x8E, 0xA3, 0x63, 0x8B, 0x9D, 0x40, 0x62, 0xF1,
0x69, 0x19, 0x6F, 0xF4, 0x55, 0x5A, 0xD0, 0xAF
},
.len = 16
},
.plaintext = {
.data = plaintext_aes256xts_48bytes,
.len = 48
},
.ciphertext = {
.data = ciphertext_aes256xts_48bytes,
.len = 48
}
};
/* AES-DOCSIS-BPI test vectors */
/* Multiple of AES block size */
static const struct blockcipher_test_data aes_test_data_docsis_1 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_DOCSISBPI,
.cipher_key = {
.data = {
0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A
},
.len = 16
},
.iv = {
.data = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
},
.len = 16
},
.plaintext = {
.data = plaintext_aes_common,
.len = 512
},
.ciphertext = {
.data = ciphertext512_aes128cbc,
.len = 512
}
};
/* Less than AES block size */
static const struct blockcipher_test_data aes_test_data_docsis_2 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_DOCSISBPI,
.cipher_key = {
.data = {
0xE6, 0x60, 0x0F, 0xD8, 0x85, 0x2E, 0xF5, 0xAB,
0xE6, 0x60, 0x0F, 0xD8, 0x85, 0x2E, 0xF5, 0xAB
},
.len = 16
},
.iv = {
.data = {
0x81, 0x0E, 0x52, 0x8E, 0x1C, 0x5F, 0xDA, 0x1A,
0x81, 0x0E, 0x52, 0x8E, 0x1C, 0x5F, 0xDA, 0x1A
},
.len = 16
},
.plaintext = {
.data = plaintext_aes_docsis_bpi_cfb,
.len = 7
},
.ciphertext = {
.data = ciphertext_aes_docsis_bpi_cfb,
.len = 7
}
};
/* Not multiple of AES block size */
static const struct blockcipher_test_data aes_test_data_docsis_3 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_DOCSISBPI,
.cipher_key = {
.data = {
0xE6, 0x60, 0x0F, 0xD8, 0x85, 0x2E, 0xF5, 0xAB,
0xE6, 0x60, 0x0F, 0xD8, 0x85, 0x2E, 0xF5, 0xAB
},
.len = 16
},
.iv = {
.data = {
0x81, 0x0E, 0x52, 0x8E, 0x1C, 0x5F, 0xDA, 0x1A,
0x81, 0x0E, 0x52, 0x8E, 0x1C, 0x5F, 0xDA, 0x1A
},
.len = 16
},
.plaintext = {
.data = plaintext_aes_docsis_bpi_cbc_cfb,
.len = 19
},
.ciphertext = {
.data = ciphertext_aes_docsis_bpi_cbc_cfb,
.len = 19
}
};
/* Multiple of AES 256 block size */
static const struct blockcipher_test_data aes_test_data_docsis_4 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_DOCSISBPI,
.cipher_key = {
.data = {
0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A,
0xD4, 0xC3, 0xA3, 0xAA, 0x33, 0x62, 0x61, 0xE0,
0x37, 0x07, 0xB8, 0x23, 0xA2, 0xA3, 0xB5, 0x8D
},
.len = 32
},
.iv = {
.data = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
},
.len = 16
},
.plaintext = {
.data = plaintext_aes_common,
.len = 512
},
.ciphertext = {
.data = ciphertext512_aes256cbc,
.len = 512
}
};
/* Less than AES 256 block size */
static const struct blockcipher_test_data aes_test_data_docsis_5 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_DOCSISBPI,
.cipher_key = {
.data = {
0xE6, 0x60, 0x0F, 0xD8, 0x85, 0x2E, 0xF5, 0xAB,
0xE6, 0x60, 0x0F, 0xD8, 0x85, 0x2E, 0xF5, 0xAB,
0xE6, 0x60, 0x0F, 0xD8, 0x85, 0x2E, 0xF5, 0xAB,
0xE6, 0x60, 0x0F, 0xD8, 0x85, 0x2E, 0xF5, 0xAB
},
.len = 32
},
.iv = {
.data = {
0x81, 0x0E, 0x52, 0x8E, 0x1C, 0x5F, 0xDA, 0x1A,
0x81, 0x0E, 0x52, 0x8E, 0x1C, 0x5F, 0xDA, 0x1A
},
.len = 16
},
.plaintext = {
.data = plaintext_aes_docsis_bpi_cfb,
.len = 7
},
.ciphertext = {
.data = ciphertext_aes256_docsis_bpi_cfb,
.len = 7
}
};
/* Not multiple of AES 256 block size */
static const struct blockcipher_test_data aes_test_data_docsis_6 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_DOCSISBPI,
.cipher_key = {
.data = {
0xE6, 0x60, 0x0F, 0xD8, 0x85, 0x2E, 0xF5, 0xAB,
0xE6, 0x60, 0x0F, 0xD8, 0x85, 0x2E, 0xF5, 0xAB,
0xE6, 0x60, 0x0F, 0xD8, 0x85, 0x2E, 0xF5, 0xAB,
0xE6, 0x60, 0x0F, 0xD8, 0x85, 0x2E, 0xF5, 0xAB
},
.len = 32
},
.iv = {
.data = {
0x81, 0x0E, 0x52, 0x8E, 0x1C, 0x5F, 0xDA, 0x1A,
0x81, 0x0E, 0x52, 0x8E, 0x1C, 0x5F, 0xDA, 0x1A
},
.len = 16
},
.plaintext = {
.data = plaintext_aes_docsis_bpi_cbc_cfb,
.len = 19
},
.ciphertext = {
.data = ciphertext_aes256_docsis_bpi_cbc_cfb,
.len = 19
}
};
static const uint8_t
cipher_aescbc_offset_16[] = {
0x57, 0x68, 0x61, 0x74, 0x20, 0x61, 0x20, 0x6C,
0x6F, 0x75, 0x73, 0x79, 0x20, 0x65, 0x61, 0x72,
0x68, 0x2A, 0x6A, 0x82, 0xE0, 0x73, 0xC7, 0x51,
0x81, 0xF4, 0x47, 0x27, 0x1A, 0xEF, 0x76, 0x15,
0x1C, 0xE1, 0x38, 0x5F, 0xE1, 0x81, 0x77, 0xC7,
0x8B, 0xF0, 0x69, 0xC3, 0x3C, 0x45, 0x1C, 0x0A,
0xA3, 0x93, 0xBF, 0x60, 0x57, 0x88, 0xD2, 0xFF,
0xE1, 0x8F, 0xC0, 0x64, 0x2C, 0x42, 0xC5, 0x22,
0xE3, 0x5F, 0x71, 0x1F, 0xF7, 0x62, 0xA2, 0x7E,
0x0D, 0x42, 0xD9, 0xE7, 0xF3, 0x10, 0xB0, 0xEE,
};
/** AES-128-CBC SHA1 OOP test vector for swapping src/dst */
static const struct blockcipher_test_data aes_test_data_14 = {
.crypto_algo = RTE_CRYPTO_CIPHER_AES_CBC,
.cipher_key = {
.data = {
0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2,
0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A
},
.len = 16
},
.iv = {
.data = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F
},
.len = 16
},
.plaintext = {
.data = plaintext_aes_common,
.len = 80
},
.cipher_offset = 16,
.auth_offset = 0,
.ciphertext = {
.data = cipher_aescbc_offset_16,
.len = 80
},
.auth_algo = RTE_CRYPTO_AUTH_SHA1_HMAC,
.auth_key = {
.data = {
0xF8, 0x2A, 0xC7, 0x54, 0xDB, 0x96, 0x18, 0xAA,
0xC3, 0xA1, 0x53, 0xF6, 0x1F, 0x17, 0x60, 0xBD,
0xDE, 0xF4, 0xDE, 0xAD
},
.len = 20
},
.digest = {
.data = {
0xCC, 0x15, 0x83, 0xF7, 0x23, 0x87, 0x96, 0xA7,
0x29, 0x34, 0x32, 0xE4, 0x4C, 0x06, 0xE8, 0xEB,
0x70, 0x72, 0x4B, 0xAD
},
.len = 20,
.truncated_len = 12
}
};
static const struct blockcipher_test_case aes_chain_test_cases[] = {
{
.test_descr = "AES-128-CBC HMAC-SHA1 Decryption Digest "
"Verify OOP Offset",
.test_data = &aes_test_data_14,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "AES-128-CTR HMAC-SHA1 Encryption Digest",
.test_data = &aes_test_data_1,
.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
},
{
.test_descr = "AES-128-CTR HMAC-SHA1 Decryption Digest "
"Verify",
.test_data = &aes_test_data_1,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
},
{
.test_descr = "AES-192-CTR XCBC Encryption Digest",
.test_data = &aes_test_data_2,
.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
},
{
.test_descr = "AES-192-CTR XCBC Decryption Digest Verify",
.test_data = &aes_test_data_2,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
},
{
.test_descr = "AES-192-CTR XCBC Decryption Digest Verify "
"Scatter Gather",
.test_data = &aes_test_data_2,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_SG |
BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "AES-256-CTR HMAC-SHA1 Encryption Digest",
.test_data = &aes_test_data_3,
.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
},
{
.test_descr = "AES-256-CTR HMAC-SHA1 Decryption Digest "
"Verify",
.test_data = &aes_test_data_3,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
},
{
.test_descr = "AES-128-CBC HMAC-SHA1 Encryption Digest",
.test_data = &aes_test_data_4,
.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
},
{
.test_descr = "AES-128-CBC HMAC-SHA1 Encryption Digest "
"(short buffers)",
.test_data = &aes_test_data_13,
.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
},
{
.test_descr = "AES-128-CBC HMAC-SHA1 Encryption Digest "
"Scatter Gather",
.test_data = &aes_test_data_4,
.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_SG |
BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "AES-128-CBC HMAC-SHA1 Decryption Digest "
"Verify",
.test_data = &aes_test_data_4,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
},
{
.test_descr = "AES-128-CBC HMAC-SHA1 Decryption Digest "
"Verify Scatter Gather",
.test_data = &aes_test_data_4,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_SG,
},
{
.test_descr = "AES-128-CBC HMAC-SHA1 Decryption Digest "
"Verify (short buffers)",
.test_data = &aes_test_data_13,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
},
{
.test_descr = "AES-128-CBC HMAC-SHA256 Encryption Digest",
.test_data = &aes_test_data_5,
.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
},
{
.test_descr = "AES-128-CBC HMAC-SHA256 Encryption Digest "
"(short buffers)",
.test_data = &aes_test_data_12,
.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
},
{
.test_descr = "AES-128-CBC HMAC-SHA256 Decryption Digest "
"Verify",
.test_data = &aes_test_data_5,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
},
{
.test_descr = "AES-128-CBC HMAC-SHA256 Decryption Digest "
"Verify (short buffers)",
.test_data = &aes_test_data_12,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
},
{
.test_descr = "AES-128-CBC HMAC-SHA512 Encryption Digest",
.test_data = &aes_test_data_6,
.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
},
{
.test_descr = "AES-128-CBC HMAC-SHA512 Encryption Digest "
"Sessionless",
.test_data = &aes_test_data_6,
.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_SESSIONLESS,
},
{
.test_descr = "AES-128-CBC HMAC-SHA512 Encryption Digest "
"Scatter Gather Sessionless",
.test_data = &aes_test_data_6,
.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_SESSIONLESS |
BLOCKCIPHER_TEST_FEATURE_SG |
BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "AES-128-CBC HMAC-SHA512 Decryption Digest "
"Verify",
.test_data = &aes_test_data_6,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
},
{
.test_descr = "AES-128-CBC HMAC-SHA512 Decryption Digest "
"Verify Scatter Gather",
.test_data = &aes_test_data_6,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_SG |
BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "AES-128-CBC XCBC Encryption Digest",
.test_data = &aes_test_data_7,
.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
},
{
.test_descr = "AES-128-CBC XCBC Decryption Digest Verify",
.test_data = &aes_test_data_7,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
},
{
.test_descr = "AES-128-CBC HMAC-SHA1 Encryption Digest "
"OOP",
.test_data = &aes_test_data_4,
.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "AES-128-CBC HMAC-SHA1 Encryption Digest "
"OOP Offset",
.test_data = &aes_test_data_14,
.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "AES-128-CBC HMAC-SHA1 Decryption Digest "
"Verify OOP",
.test_data = &aes_test_data_4,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "AES-128-CBC HMAC-SHA224 Encryption Digest",
.test_data = &aes_test_data_8,
.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
},
{
.test_descr = "AES-128-CBC HMAC-SHA224 Decryption Digest "
"Verify",
.test_data = &aes_test_data_8,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
},
{
.test_descr = "AES-128-CBC HMAC-SHA384 Encryption Digest",
.test_data = &aes_test_data_9,
.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
},
{
.test_descr = "AES-128-CBC HMAC-SHA384 Decryption Digest "
"Verify",
.test_data = &aes_test_data_9,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
},
{
.test_descr = "AES-128-CBC HMAC-SHA1 Encryption Digest "
"Sessionless",
.test_data = &aes_test_data_4,
.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_SESSIONLESS,
},
{
.test_descr =
"AES-128-CBC HMAC-SHA1 Decryption Digest "
"Verify Sessionless",
.test_data = &aes_test_data_4,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_SESSIONLESS,
},
{
.test_descr = "AES-128-CBC HMAC-SHA1 Encryption Digest"
"(Encrypted Digest mode)",
.test_data = &aes_test_data_4_digest_enc,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_GEN_ENC,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_DIGEST_ENCRYPTED,
},
{
.test_descr = "AES-128-CBC HMAC-SHA1 Encryption Digest "
"Scatter Gather (Encrypted Digest mode)",
.test_data = &aes_test_data_4_digest_enc,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_GEN_ENC,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_SG |
BLOCKCIPHER_TEST_FEATURE_DIGEST_ENCRYPTED,
},
{
.test_descr = "AES-128-CBC HMAC-SHA1 Encryption Digest "
"(short buffers) (Encrypted Digest mode)",
.test_data = &aes_test_data_13_digest_enc,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_GEN_ENC,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_DIGEST_ENCRYPTED,
},
{
.test_descr = "AES-192-CBC HMAC-SHA1 Encryption Digest "
"Sessionless (Encrypted Digest mode)",
.test_data = &aes_test_data_10_digest_enc,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_GEN_ENC,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_SESSIONLESS |
BLOCKCIPHER_TEST_FEATURE_DIGEST_ENCRYPTED,
},
{
.test_descr = "AES-256-CBC HMAC-SHA1 Encryption Digest "
"Scatter Gather Sessionless (Encrypted Digest mode)",
.test_data = &aes_test_data_11_digest_enc,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_GEN_ENC,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_SG |
BLOCKCIPHER_TEST_FEATURE_SESSIONLESS |
BLOCKCIPHER_TEST_FEATURE_DIGEST_ENCRYPTED,
},
{
.test_descr = "AES-128-CBC HMAC-SHA1 Decryption Digest "
"Verify (Encrypted Digest mode)",
.test_data = &aes_test_data_4_digest_enc,
.op_mask = BLOCKCIPHER_TEST_OP_DEC_AUTH_VERIFY,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_DIGEST_ENCRYPTED,
},
{
.test_descr = "AES-128-CBC HMAC-SHA1 Decryption Digest "
"Verify Scatter Gather (Encrypted Digest mode)",
.test_data = &aes_test_data_4_digest_enc,
.op_mask = BLOCKCIPHER_TEST_OP_DEC_AUTH_VERIFY,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_SG |
BLOCKCIPHER_TEST_FEATURE_DIGEST_ENCRYPTED,
},
{
.test_descr = "AES-128-CBC HMAC-SHA1 Decryption Digest "
"Verify (short buffers) (Encrypted Digest mode)",
.test_data = &aes_test_data_13_digest_enc,
.op_mask = BLOCKCIPHER_TEST_OP_DEC_AUTH_VERIFY,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_DIGEST_ENCRYPTED,
},
{
.test_descr = "AES-256-CBC HMAC-SHA1 Decryption Digest "
"Verify Sessionless (Encrypted Digest mode)",
.test_data = &aes_test_data_11_digest_enc,
.op_mask = BLOCKCIPHER_TEST_OP_DEC_AUTH_VERIFY,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_SESSIONLESS |
BLOCKCIPHER_TEST_FEATURE_DIGEST_ENCRYPTED,
},
{
.test_descr = "AES-192-CBC HMAC-SHA1 Decryption Digest "
"Verify Scatter Gather Sessionless (Encrypted Digest mode)",
.test_data = &aes_test_data_10_digest_enc,
.op_mask = BLOCKCIPHER_TEST_OP_DEC_AUTH_VERIFY,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_SESSIONLESS |
BLOCKCIPHER_TEST_FEATURE_SG |
BLOCKCIPHER_TEST_FEATURE_DIGEST_ENCRYPTED,
},
{
.test_descr = "AES-128-CBC HMAC-SHA1 Decryption Digest "
"Verify Sessionless (Encrypted Digest mode)",
.test_data = &aes_test_data_4_digest_enc,
.op_mask = BLOCKCIPHER_TEST_OP_DEC_AUTH_VERIFY,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_SESSIONLESS |
BLOCKCIPHER_TEST_FEATURE_DIGEST_ENCRYPTED,
},
{
.test_descr = "NULL-CIPHER-NULL-AUTH encrypt & gen x8byte",
.test_data = &null_test_data_chain_x8_multiple,
.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
},
{
.test_descr = "NULL-AUTH-NULL-CIPHER verify & decrypt x8byte",
.test_data = &null_test_data_chain_x8_multiple,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
},
{
.test_descr = "NULL-CIPHER-NULL-AUTH encrypt & gen x8byte - OOP",
.test_data = &null_test_data_chain_x8_multiple,
.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "NULL-AUTH-NULL-CIPHER verify & decrypt x8byte - OOP",
.test_data = &null_test_data_chain_x8_multiple,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "NULL-CIPHER-NULL-AUTH encrypt & gen x4byte",
.test_data = &null_test_data_chain_x4_multiple,
.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
},
{
.test_descr = "NULL-AUTH-NULL-CIPHER verify & decrypt x4byte",
.test_data = &null_test_data_chain_x4_multiple,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
},
{
.test_descr = "NULL-CIPHER-NULL-AUTH encrypt & gen x4byte - OOP",
.test_data = &null_test_data_chain_x4_multiple,
.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "NULL-AUTH-NULL-CIPHER verify & decrypt x4byte - OOP",
.test_data = &null_test_data_chain_x4_multiple,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "NULL-CIPHER-NULL-AUTH encrypt & gen x1byte",
.test_data = &null_test_data_chain_x1_multiple,
.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
},
{
.test_descr = "NULL-AUTH-NULL-CIPHER verify & decrypt x1byte",
.test_data = &null_test_data_chain_x1_multiple,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
},
{
.test_descr = "NULL-CIPHER-NULL-AUTH encrypt & gen x1byte - OOP",
.test_data = &null_test_data_chain_x1_multiple,
.op_mask = BLOCKCIPHER_TEST_OP_ENC_AUTH_GEN,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "NULL-AUTH-NULL-CIPHER verify & decrypt x1byte - OOP",
.test_data = &null_test_data_chain_x1_multiple,
.op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
};
static const struct blockcipher_test_case aes_cipheronly_test_cases[] = {
{
.test_descr = "AES-128-CBC Encryption",
.test_data = &aes_test_data_4,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-128-CBC Decryption",
.test_data = &aes_test_data_4,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "AES-192-CBC Encryption",
.test_data = &aes_test_data_10,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-192-CBC Encryption Scater gather",
.test_data = &aes_test_data_10,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_SG |
BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "AES-192-CBC Decryption",
.test_data = &aes_test_data_10,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "AES-192-CBC Decryption Scatter Gather",
.test_data = &aes_test_data_10,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_SG,
},
{
.test_descr = "AES-256-CBC Encryption",
.test_data = &aes_test_data_11,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-256-CBC Decryption",
.test_data = &aes_test_data_11,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "AES-256-CBC OOP Encryption",
.test_data = &aes_test_data_11,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "AES-256-CBC OOP Decryption",
.test_data = &aes_test_data_11,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "AES-128-CTR Encryption",
.test_data = &aes_test_data_1,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-128-CTR Decryption",
.test_data = &aes_test_data_1,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "AES-192-CTR Encryption",
.test_data = &aes_test_data_2,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-192-CTR Decryption",
.test_data = &aes_test_data_2,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "AES-256-CTR Encryption",
.test_data = &aes_test_data_3,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-256-CTR Decryption",
.test_data = &aes_test_data_3,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "AES-128-CTR Encryption (12-byte IV)",
.test_data = &aes_test_data_1_IV_12_bytes,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-192-CTR Encryption (12-byte IV)",
.test_data = &aes_test_data_2_IV_12_bytes,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-256-CTR Encryption (12-byte IV)",
.test_data = &aes_test_data_3_IV_12_bytes,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-128-XTS Encryption (16-byte plaintext)",
.test_data = &aes_test_data_xts_key_32_pt_16,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-128-XTS Decryption (16-byte plaintext)",
.test_data = &aes_test_data_xts_key_32_pt_16,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "AES-128-XTS Encryption (32-byte plaintext)",
.test_data = &aes_test_data_xts_key_32_pt_32,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-128-XTS Decryption (32-byte plaintext)",
.test_data = &aes_test_data_xts_key_32_pt_32,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "AES-256-XTS Encryption (32-byte plaintext)",
.test_data = &aes_test_data_xts_key_64_pt_32,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-256-XTS Decryption (32-byte plaintext)",
.test_data = &aes_test_data_xts_key_64_pt_32,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "AES-256-XTS Encryption (48-byte plaintext)",
.test_data = &aes_test_data_xts_key_64_pt_48,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-256-XTS Decryption (48-byte plaintext)",
.test_data = &aes_test_data_xts_key_64_pt_48,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "cipher-only - NULL algo - x8 - encryption",
.test_data = &null_test_data_chain_x8_multiple,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "cipher-only - NULL algo - x8 - decryption",
.test_data = &null_test_data_chain_x8_multiple,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "cipher-only - NULL algo - x4 - encryption",
.test_data = &null_test_data_chain_x4_multiple,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "cipher-only - NULL algo - x4 - decryption",
.test_data = &null_test_data_chain_x4_multiple,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "cipher-only - NULL algo - x4 - encryption - OOP",
.test_data = &null_test_data_chain_x4_multiple,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "cipher-only - NULL algo - x4 - decryption - OOP",
.test_data = &null_test_data_chain_x4_multiple,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "cipher-only - NULL algo - x1 - encryption",
.test_data = &null_test_data_chain_x1_multiple,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "cipher-only - NULL algo - x1 - decryption",
.test_data = &null_test_data_chain_x1_multiple,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "AES-128-ECB Encryption",
.test_data = &aes_test_data_15,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-128-ECB Decryption",
.test_data = &aes_test_data_15,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "AES-192-ECB Encryption",
.test_data = &aes_test_data_16,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-192-ECB Decryption",
.test_data = &aes_test_data_16,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "AES-256-ECB Encryption",
.test_data = &aes_test_data_17,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-256-ECB Decryption",
.test_data = &aes_test_data_17,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "AES-128-ECB Encryption (128-byte plaintext)",
.test_data = &aes_test_data_18,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-128-ECB Decryption (128-byte plaintext)",
.test_data = &aes_test_data_18,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "AES-192-ECB Encryption (192-byte plaintext)",
.test_data = &aes_test_data_19,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-192-ECB Decryption (192-byte plaintext)",
.test_data = &aes_test_data_19,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "AES-256-ECB Encryption (256-byte plaintext)",
.test_data = &aes_test_data_20,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-256-ECB Decryption (192-byte plaintext)",
.test_data = &aes_test_data_20,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "AES-128-ECB Encryption (1008-byte plaintext)",
.test_data = &aes_test_data_21,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-128-ECB Decryption (1008-byte plaintext)",
.test_data = &aes_test_data_21,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
};
static const struct blockcipher_test_case aes_docsis_test_cases[] = {
{
.test_descr = "AES-DOCSIS-BPI Full Block Encryption",
.test_data = &aes_test_data_docsis_1,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-DOCSIS-BPI Runt Block Encryption",
.test_data = &aes_test_data_docsis_2,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-DOCSIS-BPI Uneven Encryption",
.test_data = &aes_test_data_docsis_3,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-DOCSIS-BPI Full Block Decryption",
.test_data = &aes_test_data_docsis_1,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "AES-DOCSIS-BPI Runt Block Decryption",
.test_data = &aes_test_data_docsis_2,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "AES-DOCSIS-BPI Uneven Decryption",
.test_data = &aes_test_data_docsis_3,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "AES-DOCSIS-BPI OOP Full Block Encryption",
.test_data = &aes_test_data_docsis_1,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "AES-DOCSIS-BPI OOP Runt Block Encryption",
.test_data = &aes_test_data_docsis_2,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "AES-DOCSIS-BPI OOP Uneven Block Encryption",
.test_data = &aes_test_data_docsis_3,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "AES-DOCSIS-BPI OOP Full Block Decryption",
.test_data = &aes_test_data_docsis_1,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "AES-DOCSIS-BPI OOP Runt Block Decryption",
.test_data = &aes_test_data_docsis_2,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "AES-DOCSIS-BPI OOP Uneven Block Decryption",
.test_data = &aes_test_data_docsis_3,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
/* AES 256 */
{
.test_descr = "AES-256-DOCSIS-BPI Full Block Encryption",
.test_data = &aes_test_data_docsis_4,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-256-DOCSIS-BPI Runt Block Encryption",
.test_data = &aes_test_data_docsis_5,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-256-DOCSIS-BPI Uneven Encryption",
.test_data = &aes_test_data_docsis_6,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
},
{
.test_descr = "AES-256-DOCSIS-BPI Full Block Decryption",
.test_data = &aes_test_data_docsis_4,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "AES-256-DOCSIS-BPI Runt Block Decryption",
.test_data = &aes_test_data_docsis_5,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "AES-256-DOCSIS-BPI Uneven Decryption",
.test_data = &aes_test_data_docsis_6,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
},
{
.test_descr = "AES-256-DOCSIS-BPI OOP Full Block Encryption",
.test_data = &aes_test_data_docsis_4,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "AES-256-DOCSIS-BPI OOP Runt Block Encryption",
.test_data = &aes_test_data_docsis_5,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "AES-256-DOCSIS-BPI OOP Uneven Block Encryption",
.test_data = &aes_test_data_docsis_6,
.op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "AES-256-DOCSIS-BPI OOP Full Block Decryption",
.test_data = &aes_test_data_docsis_4,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "AES-256-DOCSIS-BPI OOP Runt Block Decryption",
.test_data = &aes_test_data_docsis_5,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
{
.test_descr = "AES-256-DOCSIS-BPI OOP Uneven Block Decryption",
.test_data = &aes_test_data_docsis_6,
.op_mask = BLOCKCIPHER_TEST_OP_DECRYPT,
.feature_mask = BLOCKCIPHER_TEST_FEATURE_OOP,
},
};
#endif /* TEST_CRYPTODEV_AES_TEST_VECTORS_H_ */