Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp205549ybi; Fri, 26 Jul 2019 08:25:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUmYnZYGyJfzSKY1pJ/A7YS1CUHmNVbR3vJu8Q77w9sIusUTYfRtVcPozHeTUvOorP+7Tf X-Received: by 2002:a62:be02:: with SMTP id l2mr23335606pff.63.1564154749921; Fri, 26 Jul 2019 08:25:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1564154749; cv=pass; d=google.com; s=arc-20160816; b=wV6hIR65obh8gk27o8uXL0DvOkHysZMe+cv1AEzOuvhy/pUt0agsRklg7Cq9RnOz2z sRLlxRYpqqAA4lrH5AcPpuFlwLlGkJxx5ptn+/BdjbH3hiD8zYk05tK1FbDv0oo4iJ4Y xF/i4seTDfdYgmuPNrg7zFDNDCpq3/5ahvcbKb2kzhHl3Xw2D4mR0Dn4AM0aThKFAtjV Nrpwfe1+DK439tuMorgsnWiwEkcMoSCdnRL5fKhatipCaBvij/jYPtAP+n2Lesks+okJ mOhzxuq3qlldeY2B2m1iG65aX9ij9OCC7jnTvwiSXV70uiLhmtXFWmKR+am+WzYWxMf6 8o5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:references:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=n+bKdT2+COwjFBZ28cC301VbdXIIY0AMRzlju+ouLE4=; b=rZz/juLl8I7ylnNmRcSdrkmc2+pMSTLP/UL4qZe2+7hUMSWog6Tc10KYEu/GAfc2xF GBJc1e0uYXFsnNE5d/hRjVdDepEGiV9FiNqd6C6GdP9vTTajziLXUzDYdhVH47qowx/6 APxIsa06LfkawCCDMdU2Q5BIwxwcSnEfk2UE4sOrZ6/9Kgq5HCm3TXEZxWWluJLagLZf 4z637oKn0qi96dzlRuLEUcjyLaE1BgenR4AbDpUCg43xJcXxqx2gXH+rjHph1h4jNSFn o4ff4TpESm+hs5rBGXRiIH1ERLYp3mEjCJMOd6PUCikC3f0cNaqbLJEeV+TwJ+8Q0ulD gKsQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Y3QrsQ1Q; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m5si17322682pls.358.2019.07.26.08.25.36; Fri, 26 Jul 2019 08:25:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Y3QrsQ1Q; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727545AbfGZPZZ (ORCPT + 99 others); Fri, 26 Jul 2019 11:25:25 -0400 Received: from mail-eopbgr60065.outbound.protection.outlook.com ([40.107.6.65]:4674 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727476AbfGZPZZ (ORCPT ); Fri, 26 Jul 2019 11:25:25 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AHVb/c7F6VvWGT8OtnCyc5BUDA0o1O3vea6+1jCce6GR+cIeg08sLVVd2hGME/D5ThECTjU0rr0hpsaY8UBnOq8yEhuwnTHez+PfyvHdIK+9VeXvwf12iPhclqujXgVyWLulEQoky+HlEtMla81EqWSxLY7x+2ezShk79+1NqZ7xuLwvzlYSUVSOoqE5oJiPuP6or7q55E0WT7GIKb2zjPO7qvM9y/ClS8ySckqZsl44aafs2ZsTamVukFjbgXOv4kompz8Hb5nvAbEvQIUMQrqjajC9rFajHSZS/fH80gEaZybt9VJEhjieFAkh6/avSbukEIwigeP0ldhkBIvlow== 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=n+bKdT2+COwjFBZ28cC301VbdXIIY0AMRzlju+ouLE4=; b=JuvEdKlEYIWqHp2x8dkqOGdnrChqmJYKsxoR5UvueRNJ9zDwMIVzaYDFdeMykChqG9blkC5ZUbqVFQ0rbObtSAfyy/K4Ue1b30NwojcH76XZtIdY8uz7k4YoKUpinjcSwHFQkyjZ3wzwS4kOGEsazQ4YSeqBde4wNj87Q6ik7bI/Dw1F4o2j+jni/lCihwRkHTkCXBtoD2N1By+hb1UL5D+XYhFRqntzk2+2D/E360PPhc8o/JNjFOtxXyC4QmCY6X/WPg6zGAhh6lQXlLpIb529PDAw4yKuX+Mz/ylslRWprblaAXVApshBbzjgeg1rrpZL2pZaogFHFPjNTqzXxA== 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=n+bKdT2+COwjFBZ28cC301VbdXIIY0AMRzlju+ouLE4=; b=Y3QrsQ1QkT+ONgKIZR1pU/V4FNXOX0d7wb5EHxS+A/OX6slYGhpN9f3iMuFT4D+QGcHO2bb5doHy1DOJrMqAOhhyzYR2l+1wgL3KMugjL8BlwsIw7u6mkAFUBtrCM39Ya2rm7iliuwY4VY8vk32JHEJGr7YOU1QRVf3OYbEAh3U= Received: from VI1PR0402MB3485.eurprd04.prod.outlook.com (52.134.3.153) by VI1PR0402MB3631.eurprd04.prod.outlook.com (52.134.7.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2094.17; Fri, 26 Jul 2019 15:25:21 +0000 Received: from VI1PR0402MB3485.eurprd04.prod.outlook.com ([fe80::7c64:5296:4607:e10]) by VI1PR0402MB3485.eurprd04.prod.outlook.com ([fe80::7c64:5296:4607:e10%5]) with mapi id 15.20.2094.017; Fri, 26 Jul 2019 15:25:21 +0000 From: Horia Geanta To: Iuliana Prodan , Herbert Xu , Aymen Sghaier CC: "David S. Miller" , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: Re: [PATCH v3 05/14] crypto: caam - check authsize Thread-Topic: [PATCH v3 05/14] crypto: caam - check authsize Thread-Index: AQHVQvEPg1sByUmkbE2MhOZimAmAuA== Date: Fri, 26 Jul 2019 15:25:21 +0000 Message-ID: References: <1564063106-9552-1-git-send-email-iuliana.prodan@nxp.com> <1564063106-9552-6-git-send-email-iuliana.prodan@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=horia.geanta@nxp.com; x-originating-ip: [79.118.216.219] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 41e31e43-09b3-4f95-07c3-08d711dd7967 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:VI1PR0402MB3631; x-ms-traffictypediagnostic: VI1PR0402MB3631: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 01106E96F6 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(396003)(39860400002)(366004)(136003)(376002)(346002)(199004)(189003)(3846002)(6116002)(53936002)(81166006)(6436002)(9686003)(81156014)(99286004)(6506007)(86362001)(55016002)(316002)(478600001)(25786009)(26005)(71190400001)(71200400001)(6636002)(6246003)(14454004)(8676002)(558084003)(54906003)(8936002)(44832011)(66556008)(66446008)(76116006)(74316002)(66476007)(52536014)(229853002)(66946007)(5660300002)(66066001)(102836004)(7696005)(110136005)(476003)(446003)(186003)(14444005)(256004)(76176011)(68736007)(486006)(7736002)(33656002)(305945005)(4326008)(53546011)(64756008)(91956017)(2906002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0402MB3631;H:VI1PR0402MB3485.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-message-info: YEZ7N23cv6XIR1z0EyWV03gWkYChTH/p0gVtiSrSu0ui/zq7WEvJBf4cQg5ny36lDLoZWXyfClVAz4JwUPIk532ndIZnW4nSwyufPWHfS9cqAQwFRmaRKXxgHfs+Z3u3cCVOxgEyEddu4IW/OhS9vwXRUmK1EGlxh7WhLBhoyogv66lTERI9pM+V+Dv/cDw3p0keiDwDNPeOSzsBnLRTA6nvYIHflgxVtoARFCULpRAoUD1xJNOn7/XQ+ZBEI5cbgzp+Vk3fj7GIUH4uYGNoVZevduDxN7ay/qZFwec5lh5HOEnXKtGwxTZ+fS6IBLlonOosvHxMcjSr1Hd/4r2DZa2gDrExNgFmpjwt+GcLAuh5Mk2i8NOqjsWDXzwAXXypQSXfXZlH7kG9rRP6nRz1qec5mlIUCouXLEEDUCv41Q0= Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 41e31e43-09b3-4f95-07c3-08d711dd7967 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jul 2019 15:25:21.7355 (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: horia.geanta@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3631 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 7/25/2019 4:58 PM, Iuliana Prodan wrote:=0A= > Check authsize to solve the extra tests that expect -EINVAL to be=0A= > returned when the authentication tag size is not valid.=0A= > =0A= > Validated authsize for GCM, RFC4106 and RFC4543.=0A= > =0A= > Signed-off-by: Iuliana Prodan =0A= Reviewed-by: Horia Geant=E3 =0A= =0A= Thanks,=0A= Horia=0A=