From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7F410A0573; Wed, 4 Mar 2020 14:40:03 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D0AE22C02; Wed, 4 Mar 2020 14:40:02 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 99948FEB for ; Wed, 4 Mar 2020 14:40:00 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Mar 2020 05:39:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,514,1574150400"; d="scan'208";a="387169085" Received: from orsmsx110.amr.corp.intel.com ([10.22.240.8]) by orsmga004.jf.intel.com with ESMTP; 04 Mar 2020 05:39:59 -0800 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX110.amr.corp.intel.com (10.22.240.8) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 4 Mar 2020 05:39:59 -0800 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 4 Mar 2020 05:39:58 -0800 Received: from ORSEDG002.ED.cps.intel.com (10.7.248.5) by orsmsx602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Wed, 4 Mar 2020 05:39:58 -0800 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.171) by edgegateway.intel.com (134.134.137.101) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 4 Mar 2020 05:39:56 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lg9iUEvy8r177i2hp7W4hWLD88/BOW6WLhHlqOoaCWCquf0SG28OEMQYVbirZrV6a1Fi9pwDOq3zhyi8YapvIOWrwFXf6dO5hwTXqVPbnMyeIDOO0+D9diQ3ljX08f97IVQmdrPobsYBcv39RFgQioGIauWPBc/6vYCZaOemWrxTZpoHqinao3/QlFDud8KFF9YB1N+G5ypPFCeRkKSSIy6k1KD6FmpAV4YE3hkSJFBfafdIsihgyoWt3Bk5SF+Xa4LYcGw1tjDBJ7DU3PaqRMnAhtuW+oSS3Dz7RsFowSNhovoprMVZqYCrrbZ6Modq0geTP4lKEZKB42+PUv97HQ== 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=oLNMV6h2jLneyMIJ1cebbDl6bhUGdC7I6IhhN/5Shkk=; b=d8xxgFUmH7zuYOV6LicZkH0CRdiI6aGFh470WN1k2t/+qZZAGz4emKcsYeSf0nYdal3oX1FPzvetptiNPYtfhq54Ju8RF/M55r7ZJIH5my8AkAES2s71k+Ayx6k0IcOT6abm3hZwmAK+mtUdTnC01ZClOg8BiCgxDZvtU2R0kZaZCYiCF0vbRScqQoP9jSjv7aNLdLl39SBsDWftnfb7RbLq1f566gCX3EoN+gKmPspkYCti5Kcdt3OmRzZzITDBBVrErrxdNoeMnycQYRVEFhGn9inV1Fe7NEuxpNe7j8yZ9ZG3mSEJxmQETLb4K29TcNIcH0XHXAsSh4EL3zOecA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oLNMV6h2jLneyMIJ1cebbDl6bhUGdC7I6IhhN/5Shkk=; b=Fd2WERlwtc4Hd+z6uoOK3JnhxY53+yMVfS2xJQtYLyEnmPycb4gkAzTAyYNvhcHIykonK7RIZqrNpey+m09gWNWiZ/U6GkP8dU9zlzezjdj1nSvAO9eKKSCE/uGE+mUlafKdrfGIcIAB4NikOTh6y6hYkOnSxNYtS6AzXiD6ucw= Received: from BN6PR11MB1796.namprd11.prod.outlook.com (2603:10b6:404:103::8) by BN6PR11MB1329.namprd11.prod.outlook.com (2603:10b6:404:47::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.11; Wed, 4 Mar 2020 13:39:54 +0000 Received: from BN6PR11MB1796.namprd11.prod.outlook.com ([fe80::4519:125f:2122:de07]) by BN6PR11MB1796.namprd11.prod.outlook.com ([fe80::4519:125f:2122:de07%3]) with mapi id 15.20.2772.019; Wed, 4 Mar 2020 13:39:54 +0000 From: "Trahe, Fiona" To: "O'loingsigh, Mairtin" , "akhil.goyal@nxp.com" CC: "dev@dpdk.org" Thread-Topic: [PATCH 2/2] test/crypto: Add AES-256 DOCSIS test vectors Thread-Index: AQHV8gX7tiMnBw2PwkGEEhMIZ9sEeKg4cEAA Date: Wed, 4 Mar 2020 13:39:52 +0000 Message-ID: References: <1583313472-5843-1-git-send-email-mairtin.oloingsigh@intel.com> <1583313472-5843-2-git-send-email-mairtin.oloingsigh@intel.com> In-Reply-To: <1583313472-5843-2-git-send-email-mairtin.oloingsigh@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 authentication-results: spf=none (sender IP is ) smtp.mailfrom=fiona.trahe@intel.com; x-originating-ip: [192.198.151.164] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f37f7d3a-43b1-49c3-cc20-08d7c041856c x-ms-traffictypediagnostic: BN6PR11MB1329: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1388; x-forefront-prvs: 0332AACBC3 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(396003)(376002)(346002)(39860400002)(366004)(136003)(189003)(199004)(71200400001)(76116006)(4326008)(66946007)(478600001)(86362001)(26005)(55016002)(9686003)(2906002)(186003)(81156014)(53546011)(8676002)(6506007)(110136005)(52536014)(8936002)(81166006)(316002)(66446008)(66476007)(33656002)(7696005)(5660300002)(64756008)(66556008); DIR:OUT; SFP:1102; SCL:1; SRVR:BN6PR11MB1329; H:BN6PR11MB1796.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: XrhV57Lc6goJT0iNmDgF4Wfwzn9TuEczDbbjtde8OIurkREQWwXZAgHoyzehRoXwKgvC9PzavjSHUihG7YCQ0eK22BH+R2HgRZzFe/prm3SJ0oBhYUHO90C+7BqizzRPfRbuEp7imls/WYQfYOxhmBI70Hxnu9BhD3qLb8qU/O3MrAz1h7K0h0WHVXeMxiToOJBSy8VcRF4GRDtlhVwCDquyCGiJ4KcwCPMaNcV+Ba19yrMj9fszg7rNjRMV969efGb1Cv2Vyfhm4qck1qVnk22lUhzpHXw+UCpf+bu5U7KOfbVrdEgat2BhaTo+eK4HYmocSxVfPkPA0AlYqd5l0FB0By6Ntnpn+maNpxL7E8hzxtvywGtHk/wANb6A9bPibDlwOMkPQ7JfYAVztEA1AFoDsfVNDQmvHVkvggifV9xc0V2P0HPal4EIFdL/4kTX x-ms-exchange-antispam-messagedata: gtCyQAmuF7Inx0Fy7mj3S34V9JTILnrcAc3467Q+D/2czrIAuLl4X9Itr0WMiu+1SKhe4biFzVYvIZtXzLKGLkea+bKvxB9zVoxDP7qP9sDKj/MhcORqiEgAcy6IM/ScloBebZMOhQHEJXRNTaCJCA== Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: f37f7d3a-43b1-49c3-cc20-08d7c041856c X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2020 13:39:53.0525 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: yF2Ag7VLoN0Of41Q8y6X4SJWTbNvq3yZOFfDrk1zZ55e8NyKDil6/Mplc/iRDrl2Y2rpTv3+xxdu7psbfHm+og== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB1329 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 2/2] test/crypto: Add AES-256 DOCSIS test vectors X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Hi M=E1irtin, Wasn't this patch already upstreamed with the QAT patchset? If so no need to resend. Fiona =20 > -----Original Message----- > From: O'loingsigh, Mairtin > Sent: Wednesday, March 4, 2020 9:18 AM > To: Trahe, Fiona ; akhil.goyal@nxp.com > Cc: dev@dpdk.org; O'loingsigh, Mairtin > Subject: [PATCH 2/2] test/crypto: Add AES-256 DOCSIS test vectors >=20 > This patch adds test vectors for AES-256 and sets AESNI-MB as the > target PMD >=20 > Signed-off-by: Mairtin o Loingsigh > --- > app/test/test_cryptodev_aes_test_vectors.h | 176 ++++++++++++++++++++++= ++++++ > 1 files changed, 176 insertions(+), 0 deletions(-) >=20 > diff --git a/app/test/test_cryptodev_aes_test_vectors.h > b/app/test/test_cryptodev_aes_test_vectors.h > index 8307fcf..4c7a4f2 100644 > --- a/app/test/test_cryptodev_aes_test_vectors.h > +++ b/app/test/test_cryptodev_aes_test_vectors.h > @@ -47,6 +47,10 @@ > 0xFC, 0x68, 0xA3, 0x55, 0x60, 0x37, 0xDC > }; >=20 > +static const uint8_t ciphertext_aes256_docsis_bpi_cfb[] =3D { > + 0xE3, 0x75, 0xF2, 0x30, 0x1F, 0x75, 0x9A > +}; > + > static const uint8_t plaintext_aes_docsis_bpi_cbc_cfb[] =3D { > 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, > 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x91, > @@ -59,6 +63,12 @@ > 0x44, 0xD4, 0x73 > }; >=20 > +static const uint8_t ciphertext_aes256_docsis_bpi_cbc_cfb[] =3D { > + 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[] =3D { > 0x01, 0x0F, 0x10, 0x1F, 0x20, 0x1C, 0x0E, 0xB8, > 0xFB, 0x5C, 0xCD, 0xCC, 0x1F, 0xF9, 0xAF, 0x0B, > @@ -1535,6 +1545,93 @@ > } > }; >=20 > +/* Multiple of AES 256 block size */ > +static const struct blockcipher_test_data aes_test_data_docsis_4 =3D { > + .crypto_algo =3D RTE_CRYPTO_CIPHER_AES_DOCSISBPI, > + .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 512 > + }, > + .ciphertext =3D { > + .data =3D ciphertext512_aes256cbc, > + .len =3D 512 > + } > +}; > + > +/* Less than AES 256 block size */ > +static const struct blockcipher_test_data aes_test_data_docsis_5 =3D { > + .crypto_algo =3D RTE_CRYPTO_CIPHER_AES_DOCSISBPI, > + .cipher_key =3D { > + .data =3D { > + 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 =3D 32 > + }, > + .iv =3D { > + .data =3D { > + 0x81, 0x0E, 0x52, 0x8E, 0x1C, 0x5F, 0xDA, 0x1A, > + 0x81, 0x0E, 0x52, 0x8E, 0x1C, 0x5F, 0xDA, 0x1A > + }, > + .len =3D 16 > + }, > + .plaintext =3D { > + .data =3D plaintext_aes_docsis_bpi_cfb, > + .len =3D 7 > + }, > + .ciphertext =3D { > + .data =3D ciphertext_aes256_docsis_bpi_cfb, > + .len =3D 7 > + } > +}; > + > +/* Not multiple of AES 256 block size */ > +static const struct blockcipher_test_data aes_test_data_docsis_6 =3D { > + .crypto_algo =3D RTE_CRYPTO_CIPHER_AES_DOCSISBPI, > + .cipher_key =3D { > + .data =3D { > + 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 =3D 32 > + }, > + .iv =3D { > + .data =3D { > + 0x81, 0x0E, 0x52, 0x8E, 0x1C, 0x5F, 0xDA, 0x1A, > + 0x81, 0x0E, 0x52, 0x8E, 0x1C, 0x5F, 0xDA, 0x1A > + }, > + .len =3D 16 > + }, > + .plaintext =3D { > + .data =3D plaintext_aes_docsis_bpi_cbc_cfb, > + .len =3D 19 > + }, > + .ciphertext =3D { > + .data =3D ciphertext_aes256_docsis_bpi_cbc_cfb, > + .len =3D 19 > + } > +}; > + > static const uint8_t > cipher_aescbc_offset_16[] =3D { > 0x57, 0x68, 0x61, 0x74, 0x20, 0x61, 0x20, 0x6C, > @@ -2637,5 +2734,84 @@ > .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_QAT | > BLOCKCIPHER_TEST_TARGET_PMD_MB > }, > + /* AES 256 */ > + { > + .test_descr =3D "AES-256-DOCSIS-BPI Full Block Encryption", > + .test_data =3D &aes_test_data_docsis_4, > + .op_mask =3D BLOCKCIPHER_TEST_OP_ENCRYPT, > + .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_MB > + }, > + { > + .test_descr =3D "AES-256-DOCSIS-BPI Runt Block Encryption", > + .test_data =3D &aes_test_data_docsis_5, > + .op_mask =3D BLOCKCIPHER_TEST_OP_ENCRYPT, > + .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_MB > + }, > + { > + .test_descr =3D "AES-256-DOCSIS-BPI Uneven Encryption", > + .test_data =3D &aes_test_data_docsis_6, > + .op_mask =3D BLOCKCIPHER_TEST_OP_ENCRYPT, > + .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_MB > + }, > + { > + .test_descr =3D "AES-256-DOCSIS-BPI Full Block Decryption", > + .test_data =3D &aes_test_data_docsis_4, > + .op_mask =3D BLOCKCIPHER_TEST_OP_DECRYPT, > + .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_MB > + }, > + { > + .test_descr =3D "AES-256-DOCSIS-BPI Runt Block Decryption", > + .test_data =3D &aes_test_data_docsis_5, > + .op_mask =3D BLOCKCIPHER_TEST_OP_DECRYPT, > + .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_MB > + }, > + { > + .test_descr =3D "AES-256-DOCSIS-BPI Uneven Decryption", > + .test_data =3D &aes_test_data_docsis_6, > + .op_mask =3D BLOCKCIPHER_TEST_OP_DECRYPT, > + .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_MB > + }, > + { > + .test_descr =3D "AES-256-DOCSIS-BPI OOP Full Block Encryption", > + .test_data =3D &aes_test_data_docsis_4, > + .op_mask =3D BLOCKCIPHER_TEST_OP_ENCRYPT, > + .feature_mask =3D BLOCKCIPHER_TEST_FEATURE_OOP, > + .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_MB > + }, > + { > + .test_descr =3D "AES-256-DOCSIS-BPI OOP Runt Block Encryption", > + .test_data =3D &aes_test_data_docsis_5, > + .op_mask =3D BLOCKCIPHER_TEST_OP_ENCRYPT, > + .feature_mask =3D BLOCKCIPHER_TEST_FEATURE_OOP, > + .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_MB > + }, > + { > + .test_descr =3D "AES-256-DOCSIS-BPI OOP Uneven Block Encryption", > + .test_data =3D &aes_test_data_docsis_6, > + .op_mask =3D BLOCKCIPHER_TEST_OP_ENCRYPT, > + .feature_mask =3D BLOCKCIPHER_TEST_FEATURE_OOP, > + .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_MB > + }, > + { > + .test_descr =3D "AES-256-DOCSIS-BPI OOP Full Block Decryption", > + .test_data =3D &aes_test_data_docsis_4, > + .op_mask =3D BLOCKCIPHER_TEST_OP_DECRYPT, > + .feature_mask =3D BLOCKCIPHER_TEST_FEATURE_OOP, > + .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_MB > + }, > + { > + .test_descr =3D "AES-256-DOCSIS-BPI OOP Runt Block Decryption", > + .test_data =3D &aes_test_data_docsis_5, > + .op_mask =3D BLOCKCIPHER_TEST_OP_DECRYPT, > + .feature_mask =3D BLOCKCIPHER_TEST_FEATURE_OOP, > + .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_MB > + }, > + { > + .test_descr =3D "AES-256-DOCSIS-BPI OOP Uneven Block Decryption", > + .test_data =3D &aes_test_data_docsis_6, > + .op_mask =3D BLOCKCIPHER_TEST_OP_DECRYPT, > + .feature_mask =3D BLOCKCIPHER_TEST_FEATURE_OOP, > + .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_MB > + }, > }; > #endif /* TEST_CRYPTODEV_AES_TEST_VECTORS_H_ */ > -- > 1.7.0.7