Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5807870ybf; Thu, 5 Mar 2020 07:23:31 -0800 (PST) X-Google-Smtp-Source: ADFU+vsPh9nn4EqRZQF1Ppc34Ye3XxMRwWvJs0nUQTFfy7uJNrhk4jJMYt3tjMdZuZdgN2VmsQbI X-Received: by 2002:aca:815:: with SMTP id 21mr6202861oii.52.1583421811408; Thu, 05 Mar 2020 07:23:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1583421811; cv=pass; d=google.com; s=arc-20160816; b=RQwoUjM+Wbp+FzufplH2X9cuG59Pj2dGDCr7dBWbVEf+qBwFpgwUAGtFGGaOp9jpfS aMtNKYPsXm7Kvjmo12Fv1S6hXRRl+jCzisS9/QM3WniXglg3gW7Of5vjjk/DPjALOVBw 4BQJrklxfjzbfyTMCtN2TXpIgkYdWLJYaHR9TnK5p8T58iVPXX9d5dVs34UyWN+aTYFS osCQ2g1nuG0tq+sDLtSzwY8oxMt+leLi6jQpEbI1Jt0bmv9VfdU+3FlpO9XEjr6jC834 fSbUhGu3w4XS3mY3I5R5BBW3W5XWsx8ma8fvV0x0oXsEuOVr7dYDEWkM1ElJ94xI9qra VJUQ== 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:in-reply-to:user-agent:date:message-id:from :references:cc:to:subject:dkim-signature; bh=zYqGmPT1brv6ph8EjqOto7COR4sIhDwT8GZ9MipF6x8=; b=sSck9q26fA7/mPbsWtW96ln0XZ3MWM7U4oaABRJDa9uCCFynOuLhdTot3l8iu+JU9K 7T2SDz2DAzKe/PrIlgVSSwdmfOm6h38KKozaox2mg26fQawoWJgCYd+ddhstK8B2cvbh Iu4EU7XL5iGCZxpnoXaMj2SAwO8s43tkVu31KxwuBW46+spkdJm5ok8TI5/h6VGRIWQQ V5S4CIPgL4dt8wI9UhRCxbSqrD+0q8DhohzN0X4h0HDVCyuOZqC6aKCyn6qsOKPd0z/J 1VLM5PlsO89/e+Kf6J2F4a8bhU3G9kGq3ZWsUk9mE8IVvd4rXjDnk8b/waggZzELTRG1 jdCg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=ph1gntAs; 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 7si3190310oiy.68.2020.03.05.07.23.07; Thu, 05 Mar 2020 07:23:31 -0800 (PST) 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=ph1gntAs; 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 S1726579AbgCEPW5 (ORCPT + 99 others); Thu, 5 Mar 2020 10:22:57 -0500 Received: from mail-eopbgr40088.outbound.protection.outlook.com ([40.107.4.88]:54658 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726413AbgCEPW5 (ORCPT ); Thu, 5 Mar 2020 10:22:57 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ls9VXZVCxfrDfK1IaddF1YUeaup22dHN7YoVZqfYUnvNUQHYTLAtg0eSY5wyQMXBsOleY18QRAB+57OPo4LOlTx5P5BebX78QeF/o+W4BHfStvij+g5jtNSpav6ot5PsE1P49TeTwp1fUJCN/joLBteBVlOx4MbrQkt8TtTSjl/Yli9HP/pCyySwoK4M49bYLMbuGFO1eXklj2+7QT/BW9VSwgGUymLxAQA0ksICAru4PWQ9F4yZsM0jOLZNFZqgglt7VKjbNYPk9atXvhbawCRdf6p/ba/Xmnugod4WDgo2zfBsIkTthdqeNzMHArrqeHgoJAKR0dbpllbOg/rv5A== 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=zYqGmPT1brv6ph8EjqOto7COR4sIhDwT8GZ9MipF6x8=; b=KQMGES6ChDZt8mM7Ls8Jv3LKwOK9TQiKG3Fg+9LykxvwFClTb/1BRIAwrjzuzOtR+SOgs3vtTwOvA2oyikIR18ygkLY9XGgbOjQ4od2LR7U8C+bXIo0QVvNiJpSv4K2JATj2siPc6GU2EfRRvD835uNEDYL8E9ujflS9w0sGDVTqJNC3MZeca9JI/6I68rnZD+rCmXuxaxzCdcvUHmsVMXWi3IIrifIRqf2KhVciI6ckdIe6CzYlbr6wtfG8JfWX/UTpraNBtmzytRRTz+8FsWpZ/msP5wJWazw7a/4Q8I6Y31XgCUVqRMjJu2Q3BM8usQeAQdYXMtySyIpfsmOFlw== 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=zYqGmPT1brv6ph8EjqOto7COR4sIhDwT8GZ9MipF6x8=; b=ph1gntAsLId/MS/6VrHcLBEh/99tA1lnngl0RX/Ml1ztRlQ52GseGj1mGTKEYJmDC7jlyr/9JatqM6RFUXx6G5gdbSefRKvgXxcD9I/jMfl0wF8gc0961upKuD5gLv0ZRaaDSEp1bNmn7+XYvRY/fGFTDcJmGXGP1y78k5+fupo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=horia.geanta@nxp.com; Received: from VI1PR0402MB3485.eurprd04.prod.outlook.com (52.134.3.153) by VI1PR0402MB3391.eurprd04.prod.outlook.com (52.134.1.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.15; Thu, 5 Mar 2020 15:22:54 +0000 Received: from VI1PR0402MB3485.eurprd04.prod.outlook.com ([fe80::751e:7e8d:ed4:ef5f]) by VI1PR0402MB3485.eurprd04.prod.outlook.com ([fe80::751e:7e8d:ed4:ef5f%7]) with mapi id 15.20.2772.019; Thu, 5 Mar 2020 15:22:54 +0000 Subject: Re: [RFC] crypto: xts - limit accepted key length To: "Van Leeuwen, Pascal" , "Andrei Botila (OSS)" , Herbert Xu , "David S. Miller" Cc: "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Eric Biggers References: From: =?UTF-8?Q?Horia_Geant=c4=83?= Message-ID: <7264f497-8fee-04ac-5ed0-819ab7dd5b9e@nxp.com> Date: Thu, 5 Mar 2020 17:22:48 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AM4PR0701CA0023.eurprd07.prod.outlook.com (2603:10a6:200:42::33) To VI1PR0402MB3485.eurprd04.prod.outlook.com (2603:10a6:803:7::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [10.171.74.188] (212.146.100.6) by AM4PR0701CA0023.eurprd07.prod.outlook.com (2603:10a6:200:42::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.11 via Frontend Transport; Thu, 5 Mar 2020 15:22:50 +0000 X-Originating-IP: [212.146.100.6] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: e5238907-1a0f-4b32-95e5-08d7c11911cd X-MS-TrafficTypeDiagnostic: VI1PR0402MB3391:|VI1PR0402MB3391: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-Forefront-PRVS: 03333C607F X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4636009)(366004)(136003)(376002)(346002)(39860400002)(396003)(189003)(199004)(110136005)(54906003)(16576012)(4326008)(316002)(16526019)(186003)(86362001)(26005)(6486002)(52116002)(31696002)(478600001)(31686004)(53546011)(8676002)(66946007)(66556008)(36756003)(81156014)(5660300002)(8936002)(66476007)(81166006)(956004)(2616005)(2906002)(4744005);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0402MB3391;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: BCL:0; X-Microsoft-Antispam-Message-Info: aTQmmj8iB0WCr5MpQeDvKCeKHbDN6zHnaFVLmy/bWFyRijqQSW6C5BBgt/pwsU2RaBrLtkVxI1OvPuSlkyYX4sdfC/8JRaNeCW0YXuhx215u4SJiPL36X/QCs0/bvcip3HtlPZhRWwRfOctEwvaCXecdKaOSXqLlS8aU8YQXX6D4yLFyCisaSQhkNTujRega8Gj3oxVL0kT8mGq7AQjUKoHtEZ+N0DSiK/S4P0Pn4KPaDt9B2O3rdCJydi6aPBwtGCL08pzJN03sp2KuPf26iRA9zunTYyDlPiZG9+hEp2/EnzzwTbwp3tdOGeEynzhCCCtkzi4sMdVB2E9Li/z14q0OFiui58EhKBcwEKFCT+4Q82cx8RafqSQrReCCvdYeQvjEHBoRtgI8Y29IZCQuxXWtsQBrdLaVlhFtXmE2KSovb0IcH5ud+gc5k0xNvF6s X-MS-Exchange-AntiSpam-MessageData: Q4Uwa8IlC71tm8K2VvvwS10j0cFpjL0MA2x4hkaXNcLKlbvcTiXCjTsXheabxdAENoRZXMDUUojthZ7oDCy9jz4ijyR8D1i55o19CEoVOXNyu6Wwzrh2GHERUYYxOAnOboRn+faZS24qL8ah9egawA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e5238907-1a0f-4b32-95e5-08d7c11911cd X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2020 15:22:54.1577 (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: xLiJb0v5YYOnaqe8iDb7jGuQ3PXICgKVDKHxNyF7ayhbYevSRhYam0ptpDvLu+o1j1HNGrEvul/7KZsaInugHQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3391 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 3/3/2020 3:09 PM, Van Leeuwen, Pascal wrote: > What is wrong with software fallback for the 192 bit keys in your driver? More code to maintain. AES-XTS-192 should be: -either rejected (since there's a standard in place) or -at most made optional (allowing for implementations to *optionally* support more key sizes), meaning crypto fuzz testing shouldn't fail. Suggestions on how to do this? Thanks, Horia