Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp199340ybi; Fri, 26 Jul 2019 08:19:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqx79c9CB5O+kqJ1qd0FGlGfd8k1gpiV0/VnX9QbhMIDtSu9xK1PCLFWlME+LGwFylKOvtew X-Received: by 2002:a17:902:86:: with SMTP id a6mr9994354pla.244.1564154385753; Fri, 26 Jul 2019 08:19:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1564154385; cv=pass; d=google.com; s=arc-20160816; b=teSqNAlNgOTiSxCB8HIPSdZszAmrlyHTfJWcm1+nwlD/js8/YpzJac1X+iNLR2/jlj 41wT7VXOwxvFDkqUNcgNZXnvM28uwaC/NeC7Fo9cMqi/DqCH3oXfaywKCIUYwUVObi56 kOydBbWrNscMlOf4EAPzlUwc1tRfFX+Yh6sEVqyTJ+oNrRuLpVU8oqXHwAzKX/NZLPdH Su6WZEqnvAA9fI7IebL76JKA/m+cSd6eLXgTPiIorwHoV96dA+iB6YjSwuP89hWLRRRq C28KcsaW9TuPH+xOM2s8f+gdTn2hhB5YOHRqJNziLt8Jer1cul1MdGVJnBgeaAbBRnt5 LAUQ== 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=Xjs7Bp6nmdbHMVAEZ3BZ3jW1f5VMrUB9oWN0BudQTNk=; b=nOlHPzbjYJh04EcfbfKOXVFMSpvO+ygLMISFSywTFTahJGmYZ1HG7jKecyqraAzahb ZgLvGsxJ7Gx18rY91kIO75Rwl2l6cNFAjMirD67uxZDhuflO65eSsraaqNxYH1bhd+IW LWDrcW2p2t5MP12UtnpUNi99POksqYJNGPXyHNVb0XnUtoRHnq5leHY2x2YWKUi1x4a+ I2FBmaXO/EXZ71zg/o7x8AuyEx+rYUrx2aOMzPO4bOPishXxxmaCQd7AqSqYDHpIJuQT 5xxJJ8EliV7ic3vCdgdvuyvomqcA2cojDxg9SX9l1L9JIsSoDN3Qc87sGkLWm9YuroQl Qx4g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=OFtWV+bB; 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 x3si16990470plv.26.2019.07.26.08.19.26; Fri, 26 Jul 2019 08:19: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=OFtWV+bB; 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 S1727100AbfGZPTW (ORCPT + 99 others); Fri, 26 Jul 2019 11:19:22 -0400 Received: from mail-eopbgr140053.outbound.protection.outlook.com ([40.107.14.53]:42469 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726681AbfGZPTW (ORCPT ); Fri, 26 Jul 2019 11:19:22 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c+oNplWQAaolRCP+bxsHDba066ndJh7f7MY6cJdeKq2fg3j9MBxI61Lp6J8R6s4krPOb7sfarUwwan1GHMpS5nW9Ux5gmxcA1tNTducpDUKvWIB/ucnONaVglz3C2REnU5qcZq8Gx1ppt3Mx/Sg2ncbjfW+szB0YtjFJIUjN8lF/Ps7OVPv7oTWj8NAPVRAVdt+mYGKrXXGse+iy0qsaEEyYVNTCIJbGqcQ5tUG2tHCVxlrOvtvMpWnY1RHy1TYGsl0+r4LQb+ytN1J7nEVFxjxhRWXFMkQWK297AZQ+zPTI/xVsOUmUAzM3oPDNr0nnZavMpX8of9DXiF2AdDJLYw== 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=Xjs7Bp6nmdbHMVAEZ3BZ3jW1f5VMrUB9oWN0BudQTNk=; b=gZ3wBE55S9So21vvV+HTyL5JDodnGeBDWO0AGct8FkfaAkeMO8W3YEFk7WsoB1hokdW5Oxzi+t/cBjtdnPf1u7gJqXFcDnXAQk/V/b4Jj6fPyXchULRoNXr/NSyqT1iQVDey/xqVStv2fFvYffxH4MT6mXbw/maconrXgyYKs7qOUh6qASN4L0ukciQQdU9BCGQJgVd/hGXE2FcvCI0TDpXB1ovSQPWLDVtoYymmeKnc5uUZAs8cbiDrHFdg3YpMdlQQKJuzrhIvv95EQW10UpOCW3bHVQ56ut0hn5p+QFonrmhn4+o0TGLqT/0Dn+r/IYihBeIS06GlRm1m6LvoRQ== 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=Xjs7Bp6nmdbHMVAEZ3BZ3jW1f5VMrUB9oWN0BudQTNk=; b=OFtWV+bBM36mXwFMdJ0/aVTjwRlplBdBrvjNdf39utEU6MZHvS6cIe8DmGHzugzHIQ1mmKoasRbGoxGm4/rOCO62y6ZgI8DPDPSBFLAWP6Y8s7rbwPdLr/uG1ynxGrk3tLkDeQa8KDVPV0bEfvcIIHYpElCxq9F062zfF65l6eU= Received: from VI1PR0402MB3485.eurprd04.prod.outlook.com (52.134.3.153) by VI1PR0402MB3742.eurprd04.prod.outlook.com (52.134.15.148) 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 15:19:19 +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:19:18 +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 04/14] crypto: caam - check key length Thread-Topic: [PATCH v3 04/14] crypto: caam - check key length Thread-Index: AQHVQvEQZTrNEftHI0aaBTmv2mddVQ== Date: Fri, 26 Jul 2019 15:19:18 +0000 Message-ID: References: <1564063106-9552-1-git-send-email-iuliana.prodan@nxp.com> <1564063106-9552-5-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: f30882d2-1a4b-4a46-f765-08d711dca11e 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:VI1PR0402MB3742; x-ms-traffictypediagnostic: VI1PR0402MB3742: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 01106E96F6 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(39860400002)(396003)(346002)(136003)(366004)(376002)(189003)(199004)(52536014)(6116002)(6436002)(3846002)(86362001)(5660300002)(66446008)(64756008)(66556008)(66476007)(66946007)(76116006)(91956017)(14454004)(53546011)(6506007)(102836004)(76176011)(2906002)(7696005)(229853002)(478600001)(486006)(305945005)(14444005)(256004)(44832011)(476003)(7736002)(9686003)(71190400001)(99286004)(68736007)(71200400001)(81166006)(81156014)(8676002)(55016002)(110136005)(54906003)(316002)(8936002)(6636002)(74316002)(25786009)(558084003)(6246003)(186003)(66066001)(4326008)(446003)(53936002)(26005)(33656002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0402MB3742;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: PgrQTZwRu/IOMxnM28HOgf8n+XnxT25ABNxHarBE5ldfcco14jTuG2Uyif5p6W45tColbmlVcFo53Y8zHd2m+0LanmInnZuFZVMHPlpzFDRkLl63K7UVf/8L6lzmKUEV0bOhaUcBLdgPFKb9MN37DPrL/+rcdZT1+0N9FLrfAWC4JedWl/+uYhDccDmtrRXMyggNi4Hl5sQJmodvRQZilNxvXprT9vKsyHWgiNJThbkbkzDnPkcFAz1mlHeazFO9553fYvq2r2t+LXSo+biTLx6Jo0vyt0Y+b8Up5EeInTtkUzatvmq8xRe3cJhmqMzcuT5q1TvZOLHhkXGydZLeprQBNg4LisppXwTKiUsuXdhwn8vqKZ9EVPcMqqWjw5z026vqmqMCJ4Wn2y1tHE/gI0YqioLVVP48zpILzQxm1Ug= 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: f30882d2-1a4b-4a46-f765-08d711dca11e X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jul 2019 15:19:18.9403 (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: VI1PR0402MB3742 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 key length to solve the extra tests that expect -EINVAL to be=0A= > returned when the key size is not valid.=0A= > =0A= > Validated AES keylen for skcipher, ahash and aead.=0A= > =0A= > Signed-off-by: Iuliana Prodan =0A= Reviewed-by: Horia Geant=E3 =0A= =0A= Thanks,=0A= Horia=0A=