Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6087084ybi; Wed, 31 Jul 2019 08:09:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwEYshJYXj+61lYvbR+pmM5QjMQX6ztXOjPKbypZX/GsQefYClw6OOoCeQgVvSXNNsnKz2e X-Received: by 2002:aa7:8817:: with SMTP id c23mr48530841pfo.146.1564585785611; Wed, 31 Jul 2019 08:09:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1564585785; cv=pass; d=google.com; s=arc-20160816; b=rPB8RAq+W0HPYrUhHhOuOKr9tFfHV2melk7dZC4SMVAmdQmX8MpzpSYKNR5b9KremW ez42VZZS6b5UCnvz/vm+CNxIsVWW5tjvn8rmGi3cNFHm1bUcdsFducQIsEqBx+meY69o 8V61VNHQ7dsTmYMuc4WA8H3nrJ1I5Rjc4n1omxl9ZwEwxBGVBFoc2dhu2hb2khha3siV JrII882TqiWFHLquyJ4wSWv4Hc2/zyLf7hmXVeH0qqWXKB88GYlBOVsjDWspUwXzUH/t MjeLaUxyyTuKId/5ExU19TMIfpiioK7/JJGG8wd9B2+CyXDlGqzHEki/6mMSYT8Ea9YS pSSA== 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=NYBCiFoR4tOzFJKhdTO64d/9ZhXVoURedETAtik4p/s=; b=wWbC8GbWjj6n7r022kOXefYdIWe1Qe+ZjldGx258yLHWpLZPtG7K5TkueAue20+oFt OHFFJeaEw6EuqfqYRpYJihW/TZBwBwJUIZfMAo9eygIzDUtvtSEEggBO+R5uJ3pEyWm9 TDAHwzarHPmPfxHbZYvJpB2cZC1JUKTkmkW8tNGi5wM0XYIOkbUaU/7tC3VJRJILNJo1 DCERhz65b9NBix3GDWhbxiO2SO6WeTpTfsZ7cCu+tBwFCgutd9U1TQaWEQChXHprPPrk j2zcbxCl+ZvRDLg0l5jrhZp0blvI1Zyd3Caap7wG26VNA0HLVO6nSUBebiW7AqQJYlcC 2i5g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="k/w82AxF"; 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 b92si1764281pjc.17.2019.07.31.08.09.24; Wed, 31 Jul 2019 08:09:45 -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="k/w82AxF"; 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 S1728245AbfGaNfe (ORCPT + 99 others); Wed, 31 Jul 2019 09:35:34 -0400 Received: from mail-eopbgr00055.outbound.protection.outlook.com ([40.107.0.55]:16931 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726219AbfGaNfd (ORCPT ); Wed, 31 Jul 2019 09:35:33 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eX47rG0WgLo8GDGC4m97tTj0smBjEnUEYsXhEDqxLta6dFBy8sTtu3jocQf6cDOKIMTShYjKlhMGjETY7mtg6/LRnUKqiK8yEpeliMbWZcLj/HIFHPfbQwVOShi+EeXdAKqsfeBd0FPWSNAB3dxskViXSjj1iBIWY0J4uXAZiCBWJHF5K+gG5LJ0RqNzMyoGh+zAA4CA/wYhxKsriS+UE4rD6buxH30ie/cpUnAaQs58dyj49C4b9Lxwl+GK2dMKJimm737L62mSO6Y5vTuB6UVEeNshg1COqvOR6PSOxNWSAul7I29pltHI2W/g+yhMrT1hbQZJ6Uf+gTgwmoaOMA== 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=NYBCiFoR4tOzFJKhdTO64d/9ZhXVoURedETAtik4p/s=; b=VvmzJ2hxX9JqB1GLFH/gY65Wp5tr9ySzKKh+//DLUdj+cUCIfr2H+8u6U1yvAL6a3BmNu3klGtvBoPk4KihNGfxiAjD0hgIJSxEFV6WDp5v7RgAihLyMVaqrvd6HCUQiK5nmE/f6gfzJUP6cI+zu4bDyYlwjhwXHp+VxGdtQIreKCSXoRhdPa/GxIvj+bEE4Yp6svMRRIQqPeF8v5QYvn3M+hgWHTMhf9eS426c7KE/wy9OY5PXwng24gxwMgVwK2+hGphuvWnHt0WUNDrUsx5QD7f2/sbFuOSgUk43zTrWpiDqiD5AQ5myM3jMUDyWps6hdkHoF3yNG8YZQP5R01g== 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=NYBCiFoR4tOzFJKhdTO64d/9ZhXVoURedETAtik4p/s=; b=k/w82AxFFgXcgkppxFSq6v+0N5Sxlkc3fwuS1oJJMZ7KjMYdoyCH6bsWE3GtTZQ4fIiSuEUub9IUurXpumv8oRKXGfmxUtLkhlvBQjh56+FjyWJBakqIOd+9FuLnrrGNctF/vtk/pLMyd48oYuluvKWZl1v1zelw4FTqWYDnRn0= Received: from VI1PR0402MB3485.eurprd04.prod.outlook.com (52.134.3.153) by VI1PR0402MB2766.eurprd04.prod.outlook.com (10.172.255.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2115.10; Wed, 31 Jul 2019 13:35:30 +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; Wed, 31 Jul 2019 13:35:30 +0000 From: Horia Geanta To: Iuliana Prodan , Herbert Xu , "David S. Miller" CC: "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: Re: [PATCH v3 0/2] crypto: validate inputs for gcm and aes Thread-Topic: [PATCH v3 0/2] crypto: validate inputs for gcm and aes Thread-Index: AQHVR6TR78bS9d+svUKdGLQI7wpYQg== Date: Wed, 31 Jul 2019 13:35:30 +0000 Message-ID: References: <1564578355-9639-1-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: [212.146.100.6] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f8c093ef-8629-4a8e-1a9c-08d715bbf4bf 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:VI1PR0402MB2766; x-ms-traffictypediagnostic: VI1PR0402MB2766: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 011579F31F x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(366004)(396003)(376002)(346002)(39860400002)(136003)(189003)(199004)(74316002)(66946007)(305945005)(66476007)(66446008)(64756008)(66556008)(53936002)(4744005)(81166006)(81156014)(256004)(14454004)(99286004)(8676002)(91956017)(76116006)(110136005)(229853002)(25786009)(66066001)(6246003)(52536014)(71190400001)(54906003)(5660300002)(478600001)(7736002)(2906002)(316002)(33656002)(6436002)(8936002)(86362001)(102836004)(4326008)(76176011)(53546011)(446003)(6506007)(71200400001)(68736007)(55016002)(186003)(9686003)(26005)(486006)(7696005)(44832011)(3846002)(476003)(6116002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0402MB2766;H:VI1PR0402MB3485.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A: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: Ir2t7ERCnew1icxjoFUXWKPtSGI2M5/h2BL1ujv1PQAvvIu1YW4DS/+cPzKr/GP/rxcDLGuUkrXJp9xzN0LjKVbarJm7YwtmF9yf5E+nIAat0DNMZ6FvAs2/ohKju++e/v2khC70UOcf9iVU8ixBDETEWE8gjAeJYgBFfNpvkQX9p5MTWj3EMTVhuXkzDXodoOeZtuzgf8Puly54G2wb9IUpkPioGAMXetB7iB7iDHbDtmJqHKVQ9PnSQ1daJQJPHqcokp3HZew42mmfZcFEwLPeG18W//I3Mk9lEWk7FMZBbtMfzL4D1b9KWpUM5HjdVyPddA2fN+70pZVB4sqjkGvAhUt/+gpn4fpzjs94dZcANjnX6aZ4uRLG+VCFGviCtmbo796LgX+WGJG63kF28mHrYd3VqySIWOUr1Y6FEcA= 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: f8c093ef-8629-4a8e-1a9c-08d715bbf4bf X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jul 2019 13:35:30.4127 (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: VI1PR0402MB2766 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 7/31/2019 4:06 PM, Iuliana Prodan wrote:=0A= > Added inline helper functions to check authsize and assoclen for=0A= > gcm, rfc4106 and rfc4543. =0A= > Added, also, inline helper function to check key length for AES algorithm= s.=0A= > These are used in the generic implementation of gcm/rfc4106/rfc4543=0A= > and aes.=0A= > =0A= For the series:=0A= Reviewed-by: Horia Geant=E3 =0A= =0A= Thanks,=0A= Horia=0A=