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 4DC05A0C4B; Fri, 16 Jul 2021 22:10:39 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CE0524067B; Fri, 16 Jul 2021 22:10:38 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 5CF8640151 for ; Fri, 16 Jul 2021 22:10:37 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16GK57Np013154; Fri, 16 Jul 2021 13:10:35 -0700 Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2177.outbound.protection.outlook.com [104.47.55.177]) by mx0b-0016f401.pphosted.com with ESMTP id 39udxggmja-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Jul 2021 13:10:35 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f/aQzgt1gqGjXLitL04v2aSn5N3DkoYqGE6kzkt+KgbifMD9Zf0EfNazkwJEDW1/eFaORLQvqlT7uDHQf5kzzUrzKj+Jb6wm+YmsAmVA8M6C/toarmE2CI6WtffTx/VGyLrm1cc5oy9MnVT4KA/FRNU0jmq3CVoD5AirnPjRGO06+fTGJuLpiRXcnz6u+fnCtsI+ZwMZ3wmN5c9npjsfLSehU8sqn+4uQL4Inal0sKITIdEK2LueZTNJhmZapUnwis2FHVMfQ/s+xWcwxmugzID7kfzvkQwjipC8VzXYd2WiXolqkO70FOnnM+xSXHMLkaaGWmapHRcnnDr+tM6GUA== 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-SenderADCheck; bh=/q9btqIyfA3FLCgRvUI8hseS+Z/1If5B0BxWW/qS+6M=; b=LQdWUlRBAAfq84VDHJemSROcVDmJ6gRVUZMlRvSd8PG25/20D/v6mYuEGuNZ7ObSFdWKXXrTGJUOO1yE2eKuIX92fKgJX6CSdRC4hsSOEvnv4G0O54NMTn9X5gLz7C0fpAKNze4/nSv35YOANtWxXZumuEf+zM0Gtbw7Q2T2GnOHpJdQoF8aMwP4Miqkw/AhsIHMFxj47/k/PV0kHUJG+I1oOfKOi1vfi9n5Y8y1aJc+RM1yV6KE6/KXlRsK0ser6DDUTqAraSUoBXoYpZn49rPsRxNgqv2KgmOl2eRMJms/wmtpCo2I+CiwHSSW3HGxR2PSudPG+khj9PH9hFqp6w== 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=/q9btqIyfA3FLCgRvUI8hseS+Z/1If5B0BxWW/qS+6M=; b=ROvbgp+NphnZG8xvuH5BluCBvfcj3xWiN5EiWvlXHgakhTzs6jFC9aqwt+pthRAdNcf5IyrwPN0o6nMDxrPjU7hV8VMbU4FoMsRW12eDUkUmxeA+pon2kzDLdy/kC9ijb4oqDCeBVGa99rlPL8RJC+iWNjFOlA/gjRPWL7y4PRI= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by CO1PR18MB4732.namprd18.prod.outlook.com (2603:10b6:303:eb::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21; Fri, 16 Jul 2021 20:10:34 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::1455:9a67:a6e7:e557]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::1455:9a67:a6e7:e557%6]) with mapi id 15.20.4331.028; Fri, 16 Jul 2021 20:10:34 +0000 From: Akhil Goyal To: Shiri Kuzin , "dev@dpdk.org" , "Power, Ciara" , "roy.fan.zhang@intel.com" CC: "matan@nvidia.com" , "suanmingm@nvidia.com" , "david.marchand@redhat.com" Thread-Topic: [EXT] [PATCH v8 16/16] test/crypto: add AES-XTS multi segment OOP tests Thread-Index: AQHXeZhoZsogSmX++kWJiF6DjDTi/KtGCQOg Date: Fri, 16 Jul 2021 20:10:34 +0000 Message-ID: References: <20210715150817.51485-1-shirik@nvidia.com> <20210715164126.54073-1-shirik@nvidia.com> <20210715164126.54073-17-shirik@nvidia.com> In-Reply-To: <20210715164126.54073-17-shirik@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=marvell.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c3676052-47ba-4961-c973-08d94895c507 x-ms-traffictypediagnostic: CO1PR18MB4732: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4714; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2dwxiP/sLnceY3yuBp2WPjxm35XG+EsDltWZYalKNAXk1MH8q28kgLXGjsg6mvOxouBpnsUCNotec90F/WVbV+dPu+9LpyWx1etk8qi1rgSgUvMeJmnGYRJ6ujaaDKu1g3jCkCMYQivM4RSfWv5jUlxpcD/dP/NKgSkJhBZxgl+GEJhjRcQXKojD8NMBjSg18BfocEnLY6gcHAyzqFo/2qf0onPPvpIbJinHSXxKtCqAwPPrTXc5XMkS1CCXBRia+R6kjXIv6AHlPERYPwSMVbl+rVs4VJ6ugq96ML0NbIocMWmiSYd7pAwE8AzwT6fidSjoZO2o5QCi6HXh1rnGPn0Ou3mFAJrw7sGV8Mc2bTFfcdrOf1LTZHSKFg7UN4XNqGfmjCMRV27rjF4KEzAHZF8aRFXKCe523KNkWLOqIUTYyTXbwvfnStBEjG5Qq4JwErrR+oChOLjRZn3UYli2HWMJ7GV10GAQRf/9Vrrbyp/zRn2JRuC76+jPgi2eSQtt5yOh35XsEujEGmNv38yEcamE/mi8RaxmRO2DRHerLcEU70YVmdhRHB3qiqNnf5JkbqVFYx0/EWNkQ4ZhX2aNkBFc21su4mmh7SHss+jhCviyv8AfTqbytH0/G3hFKyjd3vtPcnBMl2/3dfqMvS7bU3Srs9tU4KdehJZQtOcDz5ygZOK4QlfcEwrZaNjuMjLkEZI+bn5/vNEdBRW09HbQeA== 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:(4636009)(376002)(366004)(346002)(396003)(136003)(39860400002)(316002)(110136005)(6506007)(8936002)(2906002)(9686003)(478600001)(8676002)(26005)(122000001)(4326008)(38100700002)(52536014)(33656002)(66446008)(64756008)(186003)(71200400001)(55016002)(7696005)(66946007)(66476007)(66556008)(76116006)(54906003)(5660300002)(83380400001)(86362001)(38070700004); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?iABVwChWsHg4xw7vX5Vzh+rTL031p1IdAYJTn1BtCGRI+O1iYh6nUGxiuPo4?= =?us-ascii?Q?MCanXalJFS/rXtLSgTAY8UkGn2dJfcPRv01fxBihL4unr6gclVdaXed/j5/u?= =?us-ascii?Q?7Q7LDmoLTJBNBEDVOqmauu/kpfcVbQstxwe/wIgsd39ux844bQLCHX+7IrWh?= =?us-ascii?Q?0+uyYqg4T/I8AOt9GNzTYf/uJ0EL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dNj3ozcRrwVoS7R1uoet/mbidmAGD5CvcBIQE3m1gZjMKS6xNbc0a4+?= =?us-ascii?Q?8AE5amd9M7yRWpB0k7UUReEGKHYJVZfNTfugqZgjretVdSMGhNFPna+ZUmIP?= =?us-ascii?Q?XhvqRihcgh8U15xT5RJklJbvyqMBQWXABO5RwUHu7m7i4MS4fNzl4yARMjs9?= =?us-ascii?Q?ddpnnpV+9BBvhsN/nrjTWbROdwTIZp/n1wEpt31wA79/TF9udk99zNMZAZUA?= =?us-ascii?Q?yy2Sx/sbPqj/mB/CjkGlfI57?= x-ms-exchange-transport-forked: True 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: c3676052-47ba-4961-c973-08d94895c507 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jul 2021 20:10:34.1051 (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: emE3n3nAVnBfjRzyc1+20Bpisz/xHFY8ZgG+kWkB/l7YSLPAkvlSd3odZKQIrBE222y75EMbwi0D+vbEDgdtNw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR18MB4732 X-Proofpoint-ORIG-GUID: WXYbrv0jblWbyKWgnwaHnHY1-nINAm1E X-Proofpoint-GUID: WXYbrv0jblWbyKWgnwaHnHY1-nINAm1E X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-16_09:2021-07-16, 2021-07-16 signatures=0 Subject: Re: [dpdk-dev] [EXT] [PATCH v8 16/16] test/crypto: add AES-XTS multi segment OOP tests 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 Sender: "dev" > The AES-XTS algorithm can supports wrapped key and data-unit. > The encryption/decryption can be done out of place and using multi > segments. >=20 > Add multi segment and out of place tests to the recently added AES-XTS > vectors, which support using data-unit and a wrapped key. >=20 > Signed-off-by: Shiri Kuzin > Acked-by: Matan Azrad @Fan/Ciara: Can you test these test app patches on intel platforms and prov= ide Feedback on these patches. > --- > app/test/test_cryptodev_aes_test_vectors.h | 64 ++++++++++++++++++++++ > 1 file changed, 64 insertions(+) >=20 > diff --git a/app/test/test_cryptodev_aes_test_vectors.h > b/app/test/test_cryptodev_aes_test_vectors.h > index dd7ffde685..a797af1b00 100644 > --- a/app/test/test_cryptodev_aes_test_vectors.h > +++ b/app/test/test_cryptodev_aes_test_vectors.h > @@ -4687,6 +4687,70 @@ static const struct blockcipher_test_case > aes_cipheronly_test_cases[] =3D { > .test_data =3D > &aes_test_data_xts_wrapped_key_48_pt_4096_du_0, > .op_mask =3D BLOCKCIPHER_TEST_OP_DECRYPT, > }, > + { > + .test_descr =3D "AES-256-XTS Encryption (512-byte plaintext" > + " Dataunit 512) Scater gather OOP", Spell check for scatter at all places. > + .test_data =3D > &aes_test_data_xts_wrapped_key_48_pt_512_du_512, > + .op_mask =3D BLOCKCIPHER_TEST_OP_ENCRYPT, > + .feature_mask =3D BLOCKCIPHER_TEST_FEATURE_OOP | > + BLOCKCIPHER_TEST_FEATURE_SG, > + }, > + { > + .test_descr =3D "AES-256-XTS Decryption (512-byte plaintext" > + " Dataunit 512) Scater gather OOP", > + .test_data =3D > &aes_test_data_xts_wrapped_key_48_pt_512_du_512, > + .op_mask =3D BLOCKCIPHER_TEST_OP_DECRYPT, > + .feature_mask =3D BLOCKCIPHER_TEST_FEATURE_OOP | > + BLOCKCIPHER_TEST_FEATURE_SG, > + }, > + { > + .test_descr =3D "AES-256-XTS Encryption (512-byte plaintext" > + " Dataunit 0) Scater gather OOP", > + .test_data =3D > &aes_test_data_xts_wrapped_key_48_pt_512_du_0, > + .op_mask =3D BLOCKCIPHER_TEST_OP_ENCRYPT, > + .feature_mask =3D BLOCKCIPHER_TEST_FEATURE_OOP | > + BLOCKCIPHER_TEST_FEATURE_SG, > + }, > + { > + .test_descr =3D "AES-256-XTS Decryption (512-byte plaintext" > + " Dataunit 0) Scater gather OOP", > + .test_data =3D > &aes_test_data_xts_wrapped_key_48_pt_512_du_0, > + .op_mask =3D BLOCKCIPHER_TEST_OP_DECRYPT, > + .feature_mask =3D BLOCKCIPHER_TEST_FEATURE_OOP | > + BLOCKCIPHER_TEST_FEATURE_SG, > + }, > + { > + .test_descr =3D "AES-256-XTS Encryption (4096-byte plaintext" > + " Dataunit 4096) Scater gather OOP", > + .test_data =3D > &aes_test_data_xts_wrapped_key_48_pt_4096_du_4096, > + .op_mask =3D BLOCKCIPHER_TEST_OP_ENCRYPT, > + .feature_mask =3D BLOCKCIPHER_TEST_FEATURE_OOP | > + BLOCKCIPHER_TEST_FEATURE_SG, > + }, > + { > + .test_descr =3D "AES-256-XTS Decryption (4096-byte plaintext" > + " Dataunit 4096) Scater gather OOP", > + .test_data =3D > &aes_test_data_xts_wrapped_key_48_pt_4096_du_4096, > + .op_mask =3D BLOCKCIPHER_TEST_OP_DECRYPT, > + .feature_mask =3D BLOCKCIPHER_TEST_FEATURE_OOP | > + BLOCKCIPHER_TEST_FEATURE_SG, > + }, > + { > + .test_descr =3D "AES-256-XTS Encryption (4096-byte plaintext" > + " Dataunit 0) Scater gather OOP", > + .test_data =3D > &aes_test_data_xts_wrapped_key_48_pt_4096_du_0, > + .op_mask =3D BLOCKCIPHER_TEST_OP_ENCRYPT, > + .feature_mask =3D BLOCKCIPHER_TEST_FEATURE_OOP | > + BLOCKCIPHER_TEST_FEATURE_SG, > + }, > + { > + .test_descr =3D "AES-256-XTS Decryption (4096-byte plaintext" > + " Dataunit 0) Scater gather OOP", > + .test_data =3D > &aes_test_data_xts_wrapped_key_48_pt_4096_du_0, > + .op_mask =3D BLOCKCIPHER_TEST_OP_DECRYPT, > + .feature_mask =3D BLOCKCIPHER_TEST_FEATURE_OOP | > + BLOCKCIPHER_TEST_FEATURE_SG, > + }, > { > .test_descr =3D "cipher-only - NULL algo - x8 - encryption", > .test_data =3D &null_test_data_chain_x8_multiple, > -- > 2.27.0