From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 16A7043318; Mon, 13 Nov 2023 08:00:56 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8A291402ED; Mon, 13 Nov 2023 08:00:55 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 79B4E4026C; Mon, 13 Nov 2023 08:00:54 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AD4nuWq022337; Sun, 12 Nov 2023 23:00:53 -0800 Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2101.outbound.protection.outlook.com [104.47.55.101]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3uaa0qv2h0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 12 Nov 2023 23:00:53 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZWKgweRqhY61WOGkKcVB9PtWcKwqn7uHLkHm9vnuxNNgtQOo8iPoDa875DuLh5vvKtdz3TuEAKsZtrQz8va6med8+M23kq4mSCM7LvdqadUEz6wXQxOgSMEz70DTsjp3Ys+dkzjgOfXEa0rY6YAagTXPEU12k9HQFYnxqvS9NsvoNlGJA71obiQ+DTDmvoI8lIiBvT+ci36fU8VcCYHfim7zbmtAhoAnHOVqvgaHzd+NOpYy2cqPPZeJY84WJBe+j4ZKW3V2YsC0ZWkQsGWARoxx3ukHJUxftxw+535FhOYo8TFNhR9/vvGmKqUoA+aM0Fc+CAJG9+FKxitl7Vg5fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ADj15TC5qsvOPezJjT6Zm/MfcVhpz66FvEVVz3FDeHQ=; b=F6TbxlWjxHB2QMjb3lTXfx/OTs5s9CYgFIMhaomMQ3XkV00raU7wXgF8c/JA1VAvV3FxmmuiqSlu1w6SpUUjgASpJj6uzokpW+ORu1Gw9+vwLdpa7bpasqKB85NawdAiud134y0dNcrqohNcm36mf3a80spjts2qVa3jPznbalb3k44L7l6xG/kAyAAqtV6f3IIZaakdui/9B0wdvEyJRGzw7UxAPfzE5tZi2cYy8uxRceMfzGIya8+VTeBKBEhBzzOY6UMr1Sb1jJrqNrOPwMUQsOpPyYghASpCHucCVGs7HjWb0Wx+vjcK0eviOlbV/4icy/9kcefpZ3gWCNsq5g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ADj15TC5qsvOPezJjT6Zm/MfcVhpz66FvEVVz3FDeHQ=; b=aXJRyazj2z8vpF7d99ZTYVUDLQr8eeS2OAQvPUip+EFRe0HBGF6veO/gP9nNCBMoTduuaYI70+bhfOeyoDUmgQsTh1uHofnrRWkqDuZc7t6P9g0Zp5OHTzy8BM0FYjFeH7duvmE8DQJkMmq3OE1JmQqVYChTwGyvyUdGG7xkoeQ= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by MN2PR18MB3607.namprd18.prod.outlook.com (2603:10b6:208:269::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.29; Mon, 13 Nov 2023 07:00:50 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::4cc7:ad1b:1a04:af4b]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::4cc7:ad1b:1a04:af4b%7]) with mapi id 15.20.6977.029; Mon, 13 Nov 2023 07:00:50 +0000 From: Akhil Goyal To: Sivaramakrishnan Venkat , Fan Zhang CC: "dev@dpdk.org" , "stable@dpdk.org" Subject: RE: [EXT] [PATCH 2/2] test/crypto: add negative test cases for cipher buffer alignment Thread-Topic: [EXT] [PATCH 2/2] test/crypto: add negative test cases for cipher buffer alignment Thread-Index: AQHaDln5jqWGiIj0e0qodHUL/tZrVLB32Ang Date: Mon, 13 Nov 2023 07:00:49 +0000 Message-ID: References: <20231103133037.782512-1-venkatx.sivaramakrishnan@intel.com> <20231103133037.782512-2-venkatx.sivaramakrishnan@intel.com> In-Reply-To: <20231103133037.782512-2-venkatx.sivaramakrishnan@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-rorf: true x-dg-ref: =?us-ascii?Q?PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcZ2FraGlsXGFw?= =?us-ascii?Q?cGRhdGFccm9hbWluZ1wwOWQ4NDliNi0zMmQzLTRhNDAtODVlZS02Yjg0YmEy?= =?us-ascii?Q?OWUzNWJcbXNnc1xtc2ctNWUzNjM3OWItODFmMi0xMWVlLWEwYTQtOTRlNmY3?= =?us-ascii?Q?NjYxOTA3XGFtZS10ZXN0XDVlMzYzNzlkLTgxZjItMTFlZS1hMGE0LTk0ZTZm?= =?us-ascii?Q?NzY2MTkwN2JvZHkudHh0IiBzej0iNDg1NjQiIHQ9IjEzMzQ0MzMyNDQ2ODE3?= =?us-ascii?Q?ODU5NiIgaD0ia1A0dDkybGNsQ0cwWXF0d0dZbUVaUkRMaEg4PSIgaWQ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FFCekFBQUFJZ0FBQUFBQUFBQnRBR0VBY2dCMkFHVUFiQUJz?= =?us-ascii?Q?QUY4QWR3QnZBSElBWkFBQUFBPT0iLz48L21ldGE+?= x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR18MB4484:EE_|MN2PR18MB3607:EE_ x-ms-office365-filtering-correlation-id: 50855ba7-0a8a-499f-c54e-08dbe41644f1 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: wEJs7yltDCkPG8u0SAeSYVPvTVTCg+mR7v/rCOTWA1ydg9SVMo+zoeXUas9+MkmCFz95O7lH4RzFDZqG0bZ6GjNET4TkMS4asJpX7w2TZKzD+1KYkz2BYSzBc47e2483Lx4ZMFRdNGMzJVfUBr0EiGvLuMEhhTWtuixcx8BXsZI79Qyut0vk+249bV+0fqjjMgIvvbq/m0Ozf3r00JICB/41DwbCyWD7N8W4eigKyydgq8AMl+aohILHQE3iucgej50Y76mDDH1oE1wyokNuhVcdDmhzP64bu7D0ICeH/Y8oNNwuBn9Sb9O/bo9jUCCZNCfECOoP/XwP/0Sa9Z4kZJM/P4jXYL3cNCsXtBFtd7QmUKkIbF/m0oKQh9YjJBUX6M2R+4q88Srwc+O92N9GPKeKm0oZ4GXc85FC0PHd2CrFaA54MR/XmSyQseo4tR54/Hea73SwRuoq9my8BD8Zk3N7hTnSEWfSAmzx+EKzfGjvbAqHybya9Jhp06Iu4S3HnxVk6J5dVNV9ia6eRaHSd08SbzOYkhcB7nVUOUcwBpYyTaGTn0A90YvC9QVe+F36Njv/7hKz+R3UZdWgu5F1vpGP+ib7FmyekkNEWm/Nz1iOM3MhR1GUgYCBp1i4XBqX x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB4484.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(376002)(39850400004)(346002)(396003)(366004)(230922051799003)(186009)(451199024)(1800799009)(64100799003)(26005)(122000001)(38100700002)(55016003)(83380400001)(86362001)(5660300002)(38070700009)(9686003)(6506007)(7696005)(55236004)(71200400001)(478600001)(76116006)(66946007)(316002)(110136005)(66476007)(66556008)(66446008)(64756008)(54906003)(52536014)(8676002)(4326008)(8936002)(30864003)(2906002)(33656002)(41300700001)(559001)(579004); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?STascyi6ryp8zM4PvBxcFu0+06FUu1kMV+SE9DDbDxzryqnaJW1gAtpPgVZW?= =?us-ascii?Q?BajKegR9bJyLbtFpdfwwksribO+jC3ofl3EUaXOxKdeG9sJbU/AhTvxez/XX?= =?us-ascii?Q?xrKuWI2Qa7RyZZzM0GKv8u2KvFiKmbI62gq13vVqp7VIlJgwT2rJ7oW8RMVe?= =?us-ascii?Q?Ev6b45oJaOVq/GEJcNV5r9eHtwv+sbpRCIhw3fbQKR80Jf5FovB0perVfcgH?= =?us-ascii?Q?r7Od9bpuMk7cZL5jQTWrr7RpLc6WNu5T1Ze9b7TDI5pX6kq3f0UxkzXXMfCC?= =?us-ascii?Q?4opbN4NRGFxsKsmy1+xZwrvlOVO9kBJcj007lq3Rve5EDor5qW2FVKLr8mao?= =?us-ascii?Q?Q0qwpxC5RAgCahVHtArkSNbA0Q5pJnnGKTB1FqsEOihrm0N9CUmJ94WLwtF+?= =?us-ascii?Q?g7mpaQvYwrTJiqitCXHpi+iQRCXQXTAQEwtAicA76iLq7ByXNqYXo4bIkPn2?= =?us-ascii?Q?NbnBKjHTmRTM4k2t27tGejH9b3M2lBhrhTu8atYHSeKPVYH3K11R4LeTDGwV?= =?us-ascii?Q?FzfQOxdZ2/36Xg6dj3dpHllH1jmqNzOwUbxpPnqxCb9UnllquRky7A6miaLM?= =?us-ascii?Q?+jdIjcJteLt1bwGOBuX8yeKcv28XVKafyObluHa0Q/OsUSuSwE8d4MbfcU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83c1BGwMKg+1ErOKkFy0nCOGmtsSQcdPCrv9w5quQY0?= =?us-ascii?Q?UE7cMU2eD1i8DAUQ53M=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB4484.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 50855ba7-0a8a-499f-c54e-08dbe41644f1 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Nov 2023 07:00:50.0131 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: pylc2Dh5+DD98wCq6L0q733rnb/Avq52A/7O538eVdAfauTfx7zfvixtMXIwmOTQIkEPR0aora+e6NZJqSF/Qw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR18MB3607 X-Proofpoint-ORIG-GUID: -YqBfLnjtu1njiwwDcz4-jUN7tro3y1Q X-Proofpoint-GUID: -YqBfLnjtu1njiwwDcz4-jUN7tro3y1Q X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-12_24,2023-11-09_01,2023-05-22_02 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > add negative test cases for 3DES CBC and AES CBC > cipher algorithms for buffer misalignment >=20 > Signed-off-by: Sivaramakrishnan Venkat > --- > app/test/test_cryptodev.c | 321 ++++++++++++++++++++- > app/test/test_cryptodev_aes_test_vectors.h | 119 ++++++++ > app/test/test_cryptodev_blockcipher.c | 20 +- > app/test/test_cryptodev_blockcipher.h | 1 + > app/test/test_cryptodev_des_test_vectors.h | 38 +++ > 5 files changed, 491 insertions(+), 8 deletions(-) >=20 > diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c > index d2c4c6f8b5..12e0cf8044 100644 > --- a/app/test/test_cryptodev.c > +++ b/app/test/test_cryptodev.c > @@ -1371,6 +1371,42 @@ negative_hmac_sha1_testsuite_setup(void) > return 0; > } >=20 > +static int > +negative_input_buffer_misalignment_testsuite_setup(void) > +{ > + struct crypto_testsuite_params *ts_params =3D &testsuite_params; > + uint8_t dev_id =3D ts_params->valid_devs[0]; > + struct rte_cryptodev_info dev_info; > + const enum rte_crypto_cipher_algorithm ciphers[] =3D { > + RTE_CRYPTO_CIPHER_3DES_CBC, > + RTE_CRYPTO_CIPHER_AES_CBC > + }; > + const enum rte_crypto_auth_algorithm auths[] =3D { > + RTE_CRYPTO_AUTH_SHA256, > + RTE_CRYPTO_AUTH_SHA256, > + }; > + > + rte_cryptodev_info_get(dev_id, &dev_info); > + > + if (!(dev_info.feature_flags & > RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO) || > + ((global_api_test_type =3D=3D CRYPTODEV_RAW_API_TEST) > && > + !(dev_info.feature_flags & > RTE_CRYPTODEV_FF_SYM_RAW_DP))) { > + RTE_LOG(INFO, USER1, "Feature flag requirements for Negative > " > + "Input Buffer misalignment testsuite not > met\n"); > + return TEST_SKIPPED; > + } > + > + if (check_cipher_capabilities_supported(ciphers, RTE_DIM(ciphers)) !=3D= 0 > + && check_auth_capabilities_supported(auths, > + RTE_DIM(auths)) !=3D 0) { > + RTE_LOG(INFO, USER1, "Capability requirements for Negative " > + "Input Buffer misalignment testsuite not > met\n"); > + return TEST_SKIPPED; > + } > + > + return 0; > +} > + > static int > dev_configure_and_start(uint64_t ff_disable) > { > @@ -14469,6 +14505,192 @@ aes128cbc_hmac_sha1_test_vector =3D { > } > }; >=20 > +static const struct test_crypto_vector > +aes128cbc_sha256_misalign_test_vector =3D { > + .crypto_algo =3D RTE_CRYPTO_CIPHER_AES_CBC, > + .cipher_offset =3D 0, > + .cipher_len =3D 511, > + .cipher_key =3D { > + .data =3D { > + 0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2, > + 0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A > + }, > + .len =3D 16 > + }, > + .iv =3D { > + .data =3D { > + 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, > + 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F > + }, > + .len =3D 16 > + }, > + .plaintext =3D { > + .data =3D plaintext_aes_common, > + .len =3D 511 > + }, > + .ciphertext =3D { > + .data =3D ciphertext512_aes128cbc, > + .len =3D 511 > + }, > + .auth_algo =3D RTE_CRYPTO_AUTH_SHA256, > + .auth_offset =3D 0, > + .auth_key =3D { > + .data =3D { > + 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 =3D 32 > + }, > + .digest =3D { > + .data =3D { > + 0xA8, 0xBC, 0xDB, 0x99, 0xAA, 0x45, 0x91, 0xA3, > + 0x2D, 0x75, 0x41, 0x92, 0x28, 0x01, 0x87, 0x5D, > + 0x45, 0xED, 0x49, 0x05, 0xD3, 0xAE, 0x32, 0x57, > + 0xB7, 0x79, 0x65, 0xFC, 0xFA, 0x6C, 0xFA, 0xDF > + }, > + .len =3D 32 > + } > +}; Why are the vectors added in .c file? > + > +static const struct test_crypto_vector > +aes192cbc_sha256_misalign_test_vector =3D { > + .crypto_algo =3D RTE_CRYPTO_CIPHER_AES_CBC, > + .cipher_offset =3D 0, > + .cipher_len =3D 511, > + .cipher_key =3D { > + .data =3D { > + 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 =3D 24 > + }, > + .iv =3D { > + .data =3D { > + 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, > + 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F > + }, > + .len =3D 16 > + }, > + .plaintext =3D { > + .data =3D plaintext_hash, > + .len =3D 511 > + }, > + .ciphertext =3D { > + .data =3D ciphertext512_aes192cbc, > + .len =3D 511 > + }, > + .auth_algo =3D RTE_CRYPTO_AUTH_SHA256, > + .auth_offset =3D 0, > + .auth_key =3D { > + .data =3D { > + 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 =3D 32 > + }, > + .digest =3D { > + .data =3D { > + 0xE0, 0x4E, 0x39, 0x67, 0xB8, 0xB4, 0x56, 0xF4, > + 0x03, 0x0C, 0xF5, 0x74, 0x52, 0xFF, 0x63, 0x48, > + 0xE0, 0x3C, 0x38, 0x49, 0x76, 0x29, 0xC0, 0x57, > + 0xF4, 0x4A, 0x3E, 0x4F, 0x88, 0xB5, 0x05, 0x0E > + }, > + .len =3D 32 > + } > +}; > + > +static const struct test_crypto_vector > +aes256cbc_sha256_misalign_test_vector =3D { > + .crypto_algo =3D RTE_CRYPTO_CIPHER_AES_CBC, > + .cipher_offset =3D 0, > + .cipher_len =3D 511, > + .cipher_key =3D { > + .data =3D { > + 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 =3D 32 > + }, > + .iv =3D { > + .data =3D { > + 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, > + 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F > + }, > + .len =3D 16 > + }, > + .plaintext =3D { > + .data =3D plaintext_hash, > + .len =3D 511 > + }, > + .ciphertext =3D { > + .data =3D ciphertext512_aes256cbc, > + .len =3D 511 > + }, > + .auth_algo =3D RTE_CRYPTO_AUTH_SHA256, > + .auth_offset =3D 0, > + .auth_key =3D { > + .data =3D { > + 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 =3D 32 > + }, > + .digest =3D { > + .data =3D { > + 0x29, 0x1A, 0x38, 0x7E, 0xBC, 0x57, 0xC4, 0xB6, > + 0xD6, 0xCE, 0xEF, 0x96, 0x5D, 0x76, 0x2F, 0x3C, > + 0xDA, 0x95, 0x51, 0x82, 0xD7, 0x7B, 0x11, 0x92, > + 0x85, 0xED, 0x2D, 0xB5, 0xCF, 0x03, 0xF4, 0x54 > + }, > + .len =3D 32 > + } > +}; > + > +static const struct test_crypto_vector > +triple_des128cbc_sha1_misalign_test_vector =3D { > + .crypto_algo =3D RTE_CRYPTO_CIPHER_3DES_CBC, > + .cipher_len =3D 511, > + .cipher_key =3D { > + .data =3D { > + 0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2, > + 0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A > + }, > + .len =3D 16 > + }, > + .iv =3D { > + .data =3D { > + 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 > + }, > + .len =3D 8 > + }, > + .plaintext =3D { > + .data =3D plaintext_hash, > + .len =3D 511 > + }, > + .ciphertext =3D { > + .data =3D ciphertext512_des128cbc, > + .len =3D 511 > + }, > + .auth_algo =3D RTE_CRYPTO_AUTH_SHA1, > + .digest =3D { > + .data =3D { > + 0x94, 0x45, 0x7B, 0xDF, 0xFE, 0x80, 0xB9, 0xA6, > + 0xA0, 0x7A, 0xE8, 0x93, 0x40, 0x7B, 0x85, 0x02, > + 0x1C, 0xD7, 0xE8, 0x87 > + }, > + .len =3D 20 > + } > +}; > + > static const struct test_crypto_vector > aes128cbc_hmac_sha1_aad_test_vector =3D { > .crypto_algo =3D RTE_CRYPTO_CIPHER_AES_CBC, > @@ -15058,7 +15280,7 @@ > test_authenticated_decryption_fail_when_corruption( > } >=20 > static int > -test_authenticated_encrypt_with_esn( > +test_authenticated_encrypt( Any specific reason of changing the name of this function in this patch. > struct crypto_testsuite_params *ts_params, > struct crypto_unittest_params *ut_params, > const struct test_crypto_vector *reference) > @@ -15159,7 +15381,7 @@ test_authenticated_encrypt_with_esn( > ut_params->op =3D process_crypto_request( > ts_params->valid_devs[0], ut_params->op); >=20 > - TEST_ASSERT_NOT_NULL(ut_params->op, "no crypto operation > returned"); > + TEST_ASSERT_NOT_NULL(ut_params->op, "Failed crypto process, no > operation returned"); >=20 > TEST_ASSERT_EQUAL(ut_params->op->status, > RTE_CRYPTO_OP_STATUS_SUCCESS, > "crypto op processing failed"); > @@ -15191,7 +15413,7 @@ test_authenticated_encrypt_with_esn( > } >=20 > static int > -test_authenticated_decrypt_with_esn( > +test_authenticated_decrypt( > struct crypto_testsuite_params *ts_params, > struct crypto_unittest_params *ut_params, > const struct test_crypto_vector *reference) > @@ -15291,7 +15513,7 @@ test_authenticated_decrypt_with_esn( > ut_params->op =3D process_crypto_request(ts_params- > >valid_devs[0], > ut_params->op); >=20 > - TEST_ASSERT_NOT_NULL(ut_params->op, "failed crypto process"); > + TEST_ASSERT_NOT_NULL(ut_params->op, "Failed crypto process, no > operation returned"); > TEST_ASSERT_EQUAL(ut_params->op->status, > RTE_CRYPTO_OP_STATUS_SUCCESS, > "crypto op processing passed"); > @@ -15850,7 +16072,7 @@ > auth_decryption_AES128CBC_HMAC_SHA1_fail_tag_corrupt(void) > static int > auth_encrypt_AES128CBC_HMAC_SHA1_esn_check(void) > { > - return test_authenticated_encrypt_with_esn( > + return test_authenticated_encrypt( > &testsuite_params, > &unittest_params, > &aes128cbc_hmac_sha1_aad_test_vector); > @@ -15859,12 +16081,48 @@ > auth_encrypt_AES128CBC_HMAC_SHA1_esn_check(void) > static int > auth_decrypt_AES128CBC_HMAC_SHA1_esn_check(void) > { > - return test_authenticated_decrypt_with_esn( > + return test_authenticated_decrypt( > &testsuite_params, > &unittest_params, > &aes128cbc_hmac_sha1_aad_test_vector); > } >=20 > +static int > +test_cipher_auth_encryption_fail_data_misalignment(const void *test_data= ) > +{ > + struct test_crypto_vector test_vector; > + int res; > + > + memcpy(&test_vector, test_data, sizeof(test_vector)); > + RTE_LOG(INFO, USER1, "This is a negative test, errors are expected\n"); > + res =3D test_authenticated_encrypt( > + &testsuite_params, > + &unittest_params, > + &test_vector); > + if (res =3D=3D TEST_SKIPPED) > + return res; > + TEST_ASSERT_EQUAL(res, TEST_FAILED, "encryption not failed"); > + return TEST_SUCCESS; > +} > + > +static int > +test_cipher_auth_decryption_fail_data_misalignment(const void *test_data= ) > +{ > + struct test_crypto_vector test_vector; > + int res; > + > + memcpy(&test_vector, test_data, sizeof(test_vector)); > + RTE_LOG(INFO, USER1, "This is a negative test, errors are expected\n"); > + res =3D test_authenticated_decrypt( > + &testsuite_params, > + &unittest_params, > + &test_vector); > + if (res =3D=3D TEST_SKIPPED) > + return res; > + TEST_ASSERT_EQUAL(res, TEST_FAILED, "decryption not failed"); > + return TEST_SUCCESS; > +} > + > static int > test_chacha20_poly1305_encrypt_test_case_rfc8439(void) > { > @@ -16675,6 +16933,56 @@ static struct unit_test_suite > cryptodev_negative_hmac_sha1_testsuite =3D { > } > }; >=20 > +static struct unit_test_suite > cryptodev_negative_input_buffer_misalignment_testsuite =3D { > + .suite_name =3D "Negative Input buffer misalignment Unit Test Suite", > + .setup =3D negative_input_buffer_misalignment_testsuite_setup, > + .unit_test_cases =3D { > + /** Negative tests */ > + TEST_CASE_NAMED_WITH_DATA( > + "3DES128 CBC SHA1 auth encryption negative test for > data misalignment", > + ut_setup, ut_teardown, > + test_cipher_auth_encryption_fail_data_misalignment, > + &triple_des128cbc_sha1_misalign_test_vector), > + TEST_CASE_NAMED_WITH_DATA( > + "3DES128 CBC SHA1 auth decryption negative test for > data misalignment", > + ut_setup, ut_teardown, > + test_cipher_auth_decryption_fail_data_misalignment, > + &triple_des128cbc_sha1_misalign_test_vector), > + TEST_CASE_NAMED_WITH_DATA( > + "AES128 CBC SHA256 auth encryption negative test for > data misalignment", > + ut_setup, ut_teardown, > + test_cipher_auth_encryption_fail_data_misalignment, > + &aes128cbc_sha256_misalign_test_vector), > + TEST_CASE_NAMED_WITH_DATA( > + "AES128 CBC SHA256 auth decryption negative test for > data misalignment", > + ut_setup, ut_teardown, > + test_cipher_auth_decryption_fail_data_misalignment, > + &aes128cbc_sha256_misalign_test_vector), > + TEST_CASE_NAMED_WITH_DATA( > + "AES192 CBC SHA256 auth encryption negative test for > data misalignment", > + ut_setup, ut_teardown, > + test_cipher_auth_encryption_fail_data_misalignment, > + &aes192cbc_sha256_misalign_test_vector), > + TEST_CASE_NAMED_WITH_DATA( > + "AES192 CBC SHA256 auth decryption negative test for > data misalignment", > + ut_setup, ut_teardown, > + test_cipher_auth_decryption_fail_data_misalignment, > + &aes192cbc_sha256_misalign_test_vector), > + TEST_CASE_NAMED_WITH_DATA( > + "AES256 CBC SHA256 auth encryption negative test for > data misalignment", > + ut_setup, ut_teardown, > + test_cipher_auth_encryption_fail_data_misalignment, > + &aes256cbc_sha256_misalign_test_vector), > + TEST_CASE_NAMED_WITH_DATA( > + "AES256 CBC SHA256 auth decryption negative test for > data misalignment", > + ut_setup, ut_teardown, > + test_cipher_auth_decryption_fail_data_misalignment, > + &aes256cbc_sha256_misalign_test_vector), > + > + TEST_CASES_END() /**< NULL terminate unit test array */ > + } > +}; > + > static struct unit_test_suite cryptodev_multi_session_testsuite =3D { > .suite_name =3D "Multi Session Unit Test Suite", > .setup =3D multi_session_testsuite_setup, > @@ -17567,6 +17875,7 @@ run_cryptodev_testsuite(const char *pmd_name) > &cryptodev_esn_testsuite, > &cryptodev_negative_aes_gcm_testsuite, > &cryptodev_negative_aes_gmac_testsuite, > + &cryptodev_negative_input_buffer_misalignment_testsuite, > &cryptodev_mixed_cipher_hash_testsuite, > &cryptodev_negative_hmac_sha1_testsuite, > &cryptodev_gen_testsuite, > diff --git a/app/test/test_cryptodev_aes_test_vectors.h > b/app/test/test_cryptodev_aes_test_vectors.h > index 7127156cc4..a026c2ae0e 100644 > --- a/app/test/test_cryptodev_aes_test_vectors.h > +++ b/app/test/test_cryptodev_aes_test_vectors.h > @@ -1533,6 +1533,33 @@ static const struct blockcipher_test_data > aes_test_data_4 =3D { > } > }; >=20 > +/** AES-128-CBC Negative test vector */ > +static const struct blockcipher_test_data aes_128_cbc_misalign_test_data= =3D { > + .crypto_algo =3D RTE_CRYPTO_CIPHER_AES_CBC, > + .cipher_key =3D { > + .data =3D { > + 0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2, > + 0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A > + }, > + .len =3D 16 > + }, > + .iv =3D { > + .data =3D { > + 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, > + 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F > + }, > + .len =3D 16 > + }, > + .plaintext =3D { > + .data =3D plaintext_aes_common, > + .len =3D 511 > + }, > + .ciphertext =3D { > + .data =3D ciphertext512_aes128cbc, > + .len =3D 511 > + }, > +}; > + > /** AES-128-CBC SHA1 test vector (Digest encrypted mode) */ > static const struct blockcipher_test_data aes_test_data_4_digest_enc =3D= { > .crypto_algo =3D RTE_CRYPTO_CIPHER_AES_CBC, > @@ -2000,6 +2027,33 @@ static const struct blockcipher_test_data > aes_test_data_10 =3D { > } > }; >=20 > +/** AES-192-CBC neg test vector */ > +static const struct blockcipher_test_data aes_192_cbc_misalign_test_data= =3D { > + .crypto_algo =3D RTE_CRYPTO_CIPHER_AES_CBC, > + .cipher_key =3D { > + .data =3D { > + 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 =3D 24 > + }, > + .iv =3D { > + .data =3D { > + 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, > + 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F > + }, > + .len =3D 16 > + }, > + .plaintext =3D { > + .data =3D plaintext_aes_common, > + .len =3D 511 > + }, > + .ciphertext =3D { > + .data =3D ciphertext512_aes192cbc, > + .len =3D 511 > + } > +}; > /** AES-192-CBC SHA1 test vector (Digest encrypted mode) */ > static const struct blockcipher_test_data aes_test_data_10_digest_enc = =3D { > .crypto_algo =3D RTE_CRYPTO_CIPHER_AES_CBC, > @@ -2212,6 +2266,35 @@ static const struct blockcipher_test_data > aes_test_data_11 =3D { > } > }; >=20 > +/** AES-256-CBC neg test vector */ > +static const struct blockcipher_test_data aes_256_cbc_misalign_test_data= =3D { > + .crypto_algo =3D RTE_CRYPTO_CIPHER_AES_CBC, > + .cipher_key =3D { > + .data =3D { > + 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 =3D 32 > + }, > + .iv =3D { > + .data =3D { > + 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, > + 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F > + }, > + .len =3D 16 > + }, > + .plaintext =3D { > + .data =3D plaintext_aes_common, > + .len =3D 511 > + }, > + .ciphertext =3D { > + .data =3D ciphertext512_aes256cbc, > + .len =3D 511 > + } > +}; > + > /** AES-256-CBC SHA1 test vector (Digest encrypted mode) */ > static const struct blockcipher_test_data aes_test_data_11_digest_enc = =3D { > .crypto_algo =3D RTE_CRYPTO_CIPHER_AES_CBC, > @@ -5117,6 +5200,42 @@ static const struct blockcipher_test_case > aes_cipheronly_test_cases[] =3D { > .test_data =3D &aes_test_data_21, > .op_mask =3D BLOCKCIPHER_TEST_OP_DECRYPT, > }, > + { > + .test_descr =3D "AES-128-CBC Encryption Negative Test for data > misalignment", > + .test_data =3D &aes_128_cbc_misalign_test_data, > + .op_mask =3D BLOCKCIPHER_TEST_OP_ENCRYPT, > + .feature_mask =3D BLOCKCIPHER_TEST_NEG_TEST, > + }, > + { > + .test_descr =3D "AES-192-CBC Encryption Negative Test for data > misalignment", > + .test_data =3D &aes_192_cbc_misalign_test_data, > + .op_mask =3D BLOCKCIPHER_TEST_OP_ENCRYPT, > + .feature_mask =3D BLOCKCIPHER_TEST_NEG_TEST, > + }, > + { > + .test_descr =3D "AES-256-CBC Encryption Negative Test for data > misalignment", > + .test_data =3D &aes_256_cbc_misalign_test_data, > + .op_mask =3D BLOCKCIPHER_TEST_OP_ENCRYPT, > + .feature_mask =3D BLOCKCIPHER_TEST_NEG_TEST, > + }, > + { > + .test_descr =3D "AES-128-CBC Decryption Negative Test for data > misalignment", > + .test_data =3D &aes_128_cbc_misalign_test_data, > + .op_mask =3D BLOCKCIPHER_TEST_OP_DECRYPT, > + .feature_mask =3D BLOCKCIPHER_TEST_NEG_TEST, > + }, > + { > + .test_descr =3D "AES-192-CBC Decryption Negative Test for data > misalignment", > + .test_data =3D &aes_192_cbc_misalign_test_data, > + .op_mask =3D BLOCKCIPHER_TEST_OP_DECRYPT, > + .feature_mask =3D BLOCKCIPHER_TEST_NEG_TEST, > + }, > + { > + .test_descr =3D "AES-256-CBC Decryption Negative Test for data > misalignment", > + .test_data =3D &aes_256_cbc_misalign_test_data, > + .op_mask =3D BLOCKCIPHER_TEST_OP_DECRYPT, > + .feature_mask =3D BLOCKCIPHER_TEST_NEG_TEST, > + }, > }; >=20 > static const struct blockcipher_test_case aes_docsis_test_cases[] =3D { > diff --git a/app/test/test_cryptodev_blockcipher.c > b/app/test/test_cryptodev_blockcipher.c > index 87a321fac3..afd5fd2f2e 100644 > --- a/app/test/test_cryptodev_blockcipher.c > +++ b/app/test/test_cryptodev_blockcipher.c > @@ -100,6 +100,7 @@ test_blockcipher_one_case(const struct > blockcipher_test_case *t, > int nb_segs_out =3D 1; > uint64_t sgl_type =3D t->sgl_flag; > uint32_t nb_iterates =3D 0; > + bool validNegTestResult =3D false; >=20 > rte_cryptodev_info_get(dev_id, &dev_info); > uint64_t feat_flags =3D dev_info.feature_flags; > @@ -606,6 +607,8 @@ test_blockcipher_one_case(const struct > blockcipher_test_case *t, > snprintf(test_msg, BLOCKCIPHER_TEST_MSG_LEN, "line > %u " > "FAILED: Operation failed " > "(0x%X)", __LINE__, op->status); > + if (t->feature_mask & BLOCKCIPHER_TEST_NEG_TEST) > + validNegTestResult =3D true; > status =3D TEST_FAILED; > goto error_exit; > } > @@ -636,6 +639,8 @@ test_blockcipher_one_case(const struct > blockcipher_test_case *t, > "FAILED: %s", __LINE__, > "Crypto data not as expected"); > status =3D TEST_FAILED; > + if (t->feature_mask & BLOCKCIPHER_TEST_NEG_TEST) > + validNegTestResult =3D true; > goto error_exit; > } > } > @@ -655,6 +660,8 @@ test_blockcipher_one_case(const struct > blockcipher_test_case *t, > "FAILED: %s", __LINE__, "Generated " > "digest data not as expected"); > status =3D TEST_FAILED; > + if (t->feature_mask & > BLOCKCIPHER_TEST_NEG_TEST) > + validNegTestResult =3D true; > goto error_exit; > } > } > @@ -806,10 +813,19 @@ test_blockcipher_one_case(const struct > blockcipher_test_case *t, > } > } > } > - > - snprintf(test_msg, BLOCKCIPHER_TEST_MSG_LEN, "PASS"); > + if ((status =3D=3D TEST_SUCCESS) && > + ((t->feature_mask & BLOCKCIPHER_TEST_NEG_TEST) || > (validNegTestResult))) { > + snprintf(test_msg, BLOCKCIPHER_TEST_MSG_LEN, "FAIL"); > + status =3D TEST_FAILED; > + } else { > + snprintf(test_msg, BLOCKCIPHER_TEST_MSG_LEN, "PASS"); > + } >=20 > error_exit: > + if (validNegTestResult) { > + snprintf(test_msg, BLOCKCIPHER_TEST_MSG_LEN, "PASS"); > + status =3D TEST_SUCCESS; > + } > if (!(t->feature_mask & BLOCKCIPHER_TEST_FEATURE_SESSIONLESS)) { > if (sess) > rte_cryptodev_sym_session_free(dev_id, sess); > diff --git a/app/test/test_cryptodev_blockcipher.h > b/app/test/test_cryptodev_blockcipher.h > index e6f6c18067..b4d890d8cc 100644 > --- a/app/test/test_cryptodev_blockcipher.h > +++ b/app/test/test_cryptodev_blockcipher.h > @@ -20,6 +20,7 @@ > #define BLOCKCIPHER_TEST_FEATURE_STOPPER 0x04 /* stop upon > failing */ > #define BLOCKCIPHER_TEST_FEATURE_SG 0x08 /* Scatter Gather > */ > #define BLOCKCIPHER_TEST_FEATURE_DIGEST_ENCRYPTED 0x10 > +#define BLOCKCIPHER_TEST_NEG_TEST 0x80 /* MSB Bit is set for > negative test */ >=20 > #define BLOCKCIPHER_TEST_OP_CIPHER > (BLOCKCIPHER_TEST_OP_ENCRYPT | \ > BLOCKCIPHER_TEST_OP_DECRYPT) > diff --git a/app/test/test_cryptodev_des_test_vectors.h > b/app/test/test_cryptodev_des_test_vectors.h > index 3ded90b6d4..9921b77501 100644 > --- a/app/test/test_cryptodev_des_test_vectors.h > +++ b/app/test/test_cryptodev_des_test_vectors.h > @@ -541,6 +541,32 @@ triple_des128cbc_test_vector =3D { > } > }; >=20 > +static const struct blockcipher_test_data > +triple_des128cbc_misalign_test_vector =3D { > + .crypto_algo =3D RTE_CRYPTO_CIPHER_3DES_CBC, > + .cipher_key =3D { > + .data =3D { > + 0xE4, 0x23, 0x33, 0x8A, 0x35, 0x64, 0x61, 0xE2, > + 0x49, 0x03, 0xDD, 0xC6, 0xB8, 0xCA, 0x55, 0x7A > + }, > + .len =3D 16 > + }, > + .iv =3D { > + .data =3D { > + 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 > + }, > + .len =3D 8 > + }, > + .plaintext =3D { > + .data =3D plaintext_des, > + .len =3D 511 > + }, > + .ciphertext =3D { > + .data =3D ciphertext512_des128cbc, > + .len =3D 511 > + } > +}; > + > static const struct blockcipher_test_data > triple_des128cbc_sha1_test_vector =3D { > .crypto_algo =3D RTE_CRYPTO_CIPHER_3DES_CBC, > @@ -1183,6 +1209,18 @@ static const struct blockcipher_test_case > triple_des_cipheronly_test_cases[] =3D { > .test_descr =3D "3DES-192-CTR Decryption", > .test_data =3D &triple_des192ctr_test_vector, > .op_mask =3D BLOCKCIPHER_TEST_OP_DECRYPT, > + }, > + { > + .test_descr =3D "3DES-128-CBC Encryption Negative Test for data > misalignment", > + .test_data =3D &triple_des128cbc_misalign_test_vector, > + .op_mask =3D BLOCKCIPHER_TEST_OP_ENCRYPT, > + .feature_mask =3D BLOCKCIPHER_TEST_NEG_TEST, > + }, > + { > + .test_descr =3D "3DES-128-CBC Decryption Negative Test for data > misalignment", > + .test_data =3D &triple_des128cbc_misalign_test_vector, > + .op_mask =3D BLOCKCIPHER_TEST_OP_DECRYPT, > + .feature_mask =3D BLOCKCIPHER_TEST_NEG_TEST, > } > }; >=20 > -- > 2.25.1