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 2076AA328D for ; Tue, 22 Oct 2019 15:24:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 07C651BECC; Tue, 22 Oct 2019 15:24:25 +0200 (CEST) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40040.outbound.protection.outlook.com [40.107.4.40]) by dpdk.org (Postfix) with ESMTP id CCA411BEC2 for ; Tue, 22 Oct 2019 15:24:23 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AHxp52PZn0ifX313vmas3YfUyvpX8Kv3p4ePyu/3cFFTt1pLZAkzfo710Km7PuQIfDoPGhv9AMKdfmFMt/YZoIlDkqN6r8xzU4+1cLnS1eOz1md1iEvx8IfdT5ZyoBnrHTDs6rSLRpuFfSHbubFUL7298TpMT9M+PAjVraMLVMVnCb4X1Zrdq3w4GiBSTPIN+2I5fh+z8mw1YidvWe2G61aUhUkVZVIqqjS095g0QGIt0dCWXsTqTerC6iEIchOl76L6jI+LEo3hKagF7c+pTFYAHNqak6t+X6sY4IPpbnbrpc7euVZW5CFhaoB07I5JnLsimrOdsvLMsLWY+lyP6w== 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=qbZb7C4CD2MOQW6AEqhKqtmAsMX06zOpBl7wiz6BIUQ=; b=ANQZjWt6KwzMtMOO+NPmzhyQA/aPJ3u1mPMLCtj7mU7M5mSgMh0QMxwr8Xy6vmcJuPyyfyjMgcVMz4NaIPVft0GJxnISPN/070d1COzodMgb1ym2oCdv4xsIpcJNRSEgWl8YsDyVLpCe2NeAW6vc1P9B99UkQiVvLlcl9E5eE59nhD/uFOSFf1TIZdDnHfZ5LFVMFDowECk/ECL/iB14yVGfgNiq0GKhZ9nKlpWM/lLXCCpYD0qMaijCm0o/PsjqiEa4Th9whGfCedc+IUksHj2pkkfqb/ezGJjjtCBWjY6gfbdB9eaSgD9qNwqOolprzsGMEpCef5lRB4MFkZS8WA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qbZb7C4CD2MOQW6AEqhKqtmAsMX06zOpBl7wiz6BIUQ=; b=QIvMUxhA1Y6/nAtTsclWafHNf4O3M8qEDhFSOEP9B3Q8HCEkxaN968T6q4Zz5IeP5ztrMvmuP6aTvDOfzM0Pc/bFTn5iova3JB+GQGJWS9daHL2HJbMIETZJ71kORl8L3FhbZG+K89RoYk9vWe7xeZOirKy+jOGMTR2Vp+byrq0= Received: from VE1PR04MB6639.eurprd04.prod.outlook.com (10.255.118.11) by VE1PR04MB6351.eurprd04.prod.outlook.com (20.179.235.204) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2347.16; Tue, 22 Oct 2019 13:24:22 +0000 Received: from VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::9dc:aa5c:2bb8:b561]) by VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::9dc:aa5c:2bb8:b561%6]) with mapi id 15.20.2367.022; Tue, 22 Oct 2019 13:24:22 +0000 From: Akhil Goyal To: Fiona Trahe , "dev@dpdk.org" CC: "arkadiuszx.kusztal@intel.com" , "adamx.dybkowski@intel.com" Thread-Topic: [PATCH v2] cryptodev: clarify wireless inputs in digest-encrypted cases Thread-Index: AQHViNt3bOA7mWxlDU2PckpTRDqXCKdmpaPw Date: Tue, 22 Oct 2019 13:24:22 +0000 Message-ID: References: <1571744076-7623-1-git-send-email-fiona.trahe@intel.com> <1571750416-11742-1-git-send-email-fiona.trahe@intel.com> In-Reply-To: <1571750416-11742-1-git-send-email-fiona.trahe@intel.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=akhil.goyal@nxp.com; x-originating-ip: [92.120.1.65] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: b6d970bc-5747-4e26-b2f1-08d756f326d9 x-ms-traffictypediagnostic: VE1PR04MB6351: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 01986AE76B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(39860400002)(376002)(136003)(346002)(396003)(199004)(189003)(18543002)(55016002)(66066001)(305945005)(3846002)(6116002)(229853002)(6246003)(81156014)(2906002)(26005)(7736002)(102836004)(186003)(476003)(446003)(4326008)(44832011)(7696005)(6436002)(486006)(11346002)(14444005)(256004)(86362001)(8936002)(81166006)(9686003)(6506007)(74316002)(8676002)(99286004)(76176011)(25786009)(33656002)(76116006)(5660300002)(52536014)(66946007)(66446008)(64756008)(66556008)(54906003)(110136005)(4744005)(478600001)(316002)(71190400001)(14454004)(2501003)(66476007)(71200400001); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6351; H:VE1PR04MB6639.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: LPC5gOocrQM9b16SA8Q//Jsl4bsJn1dCHs57UGnqr0ebA/VnaLLjylFui3IkxZbSu5bsZKUOA/X8C9ZtkuP7Huob3Ma7ah1NCt4t0HHzYcpfmXx2S5wqi0nGvsb9E20pYyI4jo46oQuL6iFK9V+Jb2mnF+ECh/LsX1szy0ZWFFv7W/Hnttf9Td2Pwn+NBkymH+zejDdBwMonjSfm/4Fst8dikpVEwn22pU2sm+CmpjCQGZwA8UlPAEVkKGyTXE0VnzgOdHkdRqp1oGEcrLdzTYGgi0CmN558in714jX0CG9MCXpVfahfIzpvdiT4bx//ywOdIREKADJfzl9XDTQxomDWtioY1lYpo2f6nutFPfFnnC646aS2le4mqk0coGDaTMkg024GBP7dGmgGQ3o1amgu+nsIgQZjeyxc3ip99Rw= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b6d970bc-5747-4e26-b2f1-08d756f326d9 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Oct 2019 13:24:22.4118 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: WRaL9cTKTj2dD1VFncAe+oRleoLnt41ridFak7XqbJkUJR7Kyay1ZmGR1/QC9C/RnRp2uil5hrdu2x8JRLS8Ww== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6351 Subject: Re: [dpdk-dev] [PATCH v2] cryptodev: clarify wireless inputs in digest-encrypted cases 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" >=20 > Clarify constraints on fields specified in bits for wireless > algorithms in digest-encrypted case. >=20 > v2 changes: > - added note on each of the affected parameter fields >=20 > Signed-off-by: Fiona Trahe > --- > lib/librte_cryptodev/rte_crypto_sym.h | 23 +++++++++++++++++++---- > 1 files changed, 19 insertions(+), 4 deletions(-) >=20 //snip// > @@ -703,6 +711,13 @@ struct rte_crypto_sym_op { > * auth.data.length and is typically > * equal to auth.data.offset + > * auth.data.length + digest_length. > + * - for wireless algorithms, i.e. > + * SNOW 3G, KASUMI and ZUC, as the > + * cipher.data.length, > + * cipher.data.offset, > + * auth.data.length and > + * auth.data.offset are in bits, they > + * must be 8-bit multiples. Why do you need this change? This is redundant information. > * > * Note, that for security reasons, it > * is PMDs' responsibility to not > -- > 1.7.0.7