Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp105315ybi; Fri, 26 Jul 2019 06:51:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4v4C0bUiSj7Kn21lwrngNjRkPPzxFvDj1S5e0znubT8j3+1Gc9mhfcuqH6HhLbQYaToCS X-Received: by 2002:aa7:90d4:: with SMTP id k20mr12910394pfk.78.1564149075912; Fri, 26 Jul 2019 06:51:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1564149075; cv=pass; d=google.com; s=arc-20160816; b=ne4SlwGJEBAymtBlqF+HtOx32tVWpwrxnSw6OwXaCeqT4rOplfCSfdtMKco0HXGb8f 1J4FWRq2RCXloSMLTNQvCxhjxyIKZ3PTUGNV/rizmBgk5Mq8YLcWfiAP+EPPz49cNUd8 bgOBWy5zjokwxw41rP5r2mAebr7If/wM2qUHiZRI4ffYyaQ6mTmiTK+OE0LHoREazy94 b4ZhN1fsSkgqZBFK09mwHEndMVO/0jV2JQs+v6UbzdTvTPXsxL2vCPwiUUEwWq2dGECo 91epMylceJxcti1vhCLCCj6guHgflTQYnDWMBwHJ8mCqZF1TRMmGxVpWG/u8p56QhK8Y l1LQ== 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=f2lxrbfXCAq/f3DnHYW0id94UZkJcFpMIYbFzOdApLM=; b=a2EsJNdoP4p1GPiYmtdlfsAlYS6gR6VKhLw8+9lyK1qCDKiDSdlwdOJUlhItvYxXlk pmPzopy4E/5JFyfHOWEwF9VbdqB06hCkqcah5wKYeGhHpxR4hN4oMKqek2s1IBfTzBHD d99XfcloyANOqeq7AMbUHXGHzilQQcqzPtmSRhiQeCiXvlInBgkHp9Gz4ShPCk50m3DD o3L0T3lhq7CZOwFOh8spkwLHkhPVLDAMUJghulKVc4qD0emzzNgWNmADF7PjjBvU9EU8 FUpbwwqAbE4+6goSycZXUXMIG6f5IeU3ShHTwv8kh/jv5dqpN4L7FL1a62yekFOIGulE NKfA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=gbeAFiu5; 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 l186si21311838pgd.455.2019.07.26.06.50.58; Fri, 26 Jul 2019 06:51:15 -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=gbeAFiu5; 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 S2388513AbfGZNuC (ORCPT + 99 others); Fri, 26 Jul 2019 09:50:02 -0400 Received: from mail-eopbgr60042.outbound.protection.outlook.com ([40.107.6.42]:40672 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388763AbfGZNts (ORCPT ); Fri, 26 Jul 2019 09:49:48 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Dor/wjAfNm2fGNzYiJlM4i04lf29wNnVvdCDaeT54bozdQHIL8+WOs+A8UDii86TKnktOzFyErv5LGFjX+Pljtm2y17LQZzjpFM2vqlX8Wei5BxiZAFX5lU/B1EtDHLr09qQgh3J/TTQiIj5bh2pXlt1ps7tjkMoLRgcbpKlRboEDsrlKgk1f6kzrYrkzkO2dOwASwR+6Rb8WfBoV7HWzMv8RvYSsCNQCsShK1vEjdYXgXPg54q7XHGTURl6a+DCJkBK7lB9gTZSUQCiNXuX5EpxlEVoRy+n/b03kTlTo1QQ0Id/dKOh+CTyXhIdzto4jbugT703N/kGNcrdlInzGA== 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=f2lxrbfXCAq/f3DnHYW0id94UZkJcFpMIYbFzOdApLM=; b=QL4QX6C1JQsfaDBbL/bR0Ft6/HB3qS+TXgH1+YCkLf0RYe7pbS/GV86A7zBcaxjqhqxENOk5M8ANRxRguWXP5akYbzZEfj2ivYxzDKS+ilCIX0oN09oVWzFpV2yG8FXcyQ/N83TwaEAO1etP78FEUk4yQf2iVU43smBWPmd2Tl4iCDNY9nSh3xmR6FXTyahHmhsTj/rBCqR51872vnQi2HtrmaC4IBOCk3o42EpQ0+VRilR7kBNu/4+iyPSkGuU00ys3FFlF5vWR8+MdVRLbACR+oEOqa1Nzy+lZkT8B3IF/lH/OtbQIubjnik5qba+F2jIfNXbKIbuHzwnU2cN15g== 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=f2lxrbfXCAq/f3DnHYW0id94UZkJcFpMIYbFzOdApLM=; b=gbeAFiu5ir0QEx4QUAyE4Muyf8Aq35iDC5w5lrwR7xtFDjACyFRPK0n8zK6Tb9TIMwhFZdnsRq+RS0dLA94JA9v3ErTnNRvAEi06wfXpAdZBOyB+T0nQ7j3DXRGOD5O4PzMykyCGz+jCEWqASpk75/3YBB3VawUyXrcgVNVoeFU= Received: from VI1PR0402MB3485.eurprd04.prod.outlook.com (52.134.3.153) by VI1PR0402MB3774.eurprd04.prod.outlook.com (52.134.15.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2115.14; Fri, 26 Jul 2019 13:49:46 +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 13:49:46 +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 2/2] crypto: aes - helper function to validate key length for AES algorithms Thread-Topic: [PATCH 2/2] crypto: aes - helper function to validate key length for AES algorithms Thread-Index: AQHVQu+BMaF0j5tHz0K2l7Z8IRB8oA== Date: Fri, 26 Jul 2019 13:49:46 +0000 Message-ID: References: <1564062431-8873-1-git-send-email-iuliana.prodan@nxp.com> <1564062431-8873-3-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: 292f386f-51cc-4f7a-5361-08d711d01eb8 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:VI1PR0402MB3774; x-ms-traffictypediagnostic: VI1PR0402MB3774: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 01106E96F6 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(136003)(39860400002)(366004)(376002)(346002)(396003)(189003)(199004)(52536014)(8676002)(110136005)(26005)(33656002)(76176011)(316002)(5660300002)(54906003)(44832011)(8936002)(446003)(71200400001)(71190400001)(476003)(66946007)(7696005)(486006)(91956017)(256004)(76116006)(81156014)(81166006)(66446008)(68736007)(229853002)(64756008)(66556008)(66476007)(4744005)(102836004)(9686003)(6246003)(6436002)(53546011)(6506007)(55016002)(53936002)(25786009)(478600001)(6116002)(66066001)(3846002)(14454004)(186003)(7736002)(86362001)(2906002)(305945005)(74316002)(99286004)(4326008);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0402MB3774;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: t3LJ86OuTF2uW0GwX1YiC51M2rg5X9+3u+RGJ1ImqpdBlYsAYKqTvpCz1leuPyqmb9VVisnJ2blHIMSUmzDg/QF4lMGSALRVpkjnxkSUsnKWs/mePn7hB1AsCUG/V4kxlqltqy5SvckbOAvMLmtnw+85z7mg2n9p2+UcLqN9RK/b8ioRuYyisD7yXwhxzvptumuxT5b9yY/V2Mg6ygvB10t6Bnm6p9nITVvy2liAicBUNYIHeTBkRTlIf+Pcxjfk4nT01z8mcKHDEUgar0y0iZLjZDGddCuQMcb9URFeVFCiFCUxhlSj8PL/Qsw7yxBHutOcQ4ejnvjz/yp6W1tP09keSV8aEyJNsnetl26dI1VyxjzqMEN16Nv4T59A+nCr7eZKHdSQd+B5ZQuyuQepe5Qrvmoir6D09wo5fB3SzMM= 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: 292f386f-51cc-4f7a-5361-08d711d01eb8 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jul 2019 13:49:46.0751 (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: VI1PR0402MB3774 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 7/25/2019 4:47 PM, Iuliana Prodan wrote:=0A= > Add inline helper function to check key length for AES algorithms.=0A= > The key can be 128, 192 or 256 bits size.=0A= > This function is used in the generic aes and aes_ti implementations.=0A= > =0A= Looks good.=0A= Will need to respin it, since aes has just been refactored and moved in lib= /crypto/.=0A= =0A= Horia=0A=