Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2274366rdd; Fri, 12 Jan 2024 05:00:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IGIDBSFFv2VYF/9YHn5LeNzkzOrCCdP4d+Gg0EXnX3IVd8719ssCzmKf7q4yxQCCMMmEEOz X-Received: by 2002:aa7:c558:0:b0:558:d6e6:ccc7 with SMTP id s24-20020aa7c558000000b00558d6e6ccc7mr202900edr.165.1705064427275; Fri, 12 Jan 2024 05:00:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705064427; cv=none; d=google.com; s=arc-20160816; b=v+iyg13NASjdBR12mbvtSpeK7wimlQri+mrXjVvU4qA0BYDtP5elZ6yI5opQxYXXLb 6Rbfewy2aldvaw9tlY3zpIY58OlRrkGjkOajoQaTo2d6DrmM9cuUi1MlKPBeexcyHfbC v5dDGO92aIDzhM+qIvOh/BL+ff1pJtGGqJwRCvGkeWiS6mKWaSOnS1yIos8YDjodu1pW /ub8IaO/UxiiE7CqYIjJttpQABH1lquujM1WqjYEVpBMCcE/GgQpPY4djxC/gC8VCFcD Lo54togjW3gGwt9/7O/7nEUyx/a3H4G3hEKWhPMOs/1Nzf7m8vGrT9mlxwaeT+Dt8VVA LMLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from; bh=gTGmxugltdxkdY2HfeIfV4ufncRqmhyb78uf+Hgk0nQ=; fh=XkifM+/zAgh7ziZnBNbl6qjrYRDCAVOk7+dPufNxmP8=; b=YghEpqeYKjpXtp3XHJVb7rOVqASDKDw+PgpfxAsKtxmufecJ2yntblBN6V6CbTVsXc 6Kuz9dQS7oORk8VHpmRpza925lCsIR8SwGkugGTObDO8UTl1OIhbsUIARRyRUIRrvhZq mKFkA2NzqIEVbG4Sc1dR7fsF7LhG2yDCelUgcvSFtnQINgVYjMpMA57aHGYVY2937o67 RqDgw27ffAit5zCT8mrD1aahlVwSx88Dbsp3xyMdJRsYuAMQPhclb3i/A/F6FBskhqOD vS336XJU0y2EErImYlk8m9WnfajJPFbHBHEXnFXeRJRzcCa15b7lTtMBqpz95hvT9xD7 bGVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto+bounces-1408-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1408-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t2-20020a056402240200b005573d454c4csi1407191eda.6.2024.01.12.05.00.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 05:00:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-1408-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto+bounces-1408-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1408-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0AD891F21DAA for ; Fri, 12 Jan 2024 13:00:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A16D6BB35; Fri, 12 Jan 2024 13:00:19 +0000 (UTC) X-Original-To: linux-crypto@vger.kernel.org Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7DEDD6BB22 for ; Fri, 12 Jan 2024 13:00:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ACULAB.COM Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aculab.com Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-107-MotGPF6GOuKC6jFoeEgFUA-1; Fri, 12 Jan 2024 13:00:14 +0000 X-MC-Unique: MotGPF6GOuKC6jFoeEgFUA-1 Received: from AcuMS.Aculab.com (10.202.163.4) by AcuMS.aculab.com (10.202.163.4) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Fri, 12 Jan 2024 12:59:56 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Fri, 12 Jan 2024 12:59:56 +0000 From: David Laight To: 'Dongsoo Lee' , Herbert Xu , "David S. Miller" , "Jens Axboe" , Eric Biggers , "Theodore Y. Ts'o" , Jaegeuk Kim , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "x86@kernel.org" , "H. Peter Anvin" CC: "linux-crypto@vger.kernel.org" , "linux-block@vger.kernel.org" , "linux-fscrypt@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v6 RESEND 5/5] crypto: LEA block cipher x86_64 optimization Thread-Topic: [PATCH v6 RESEND 5/5] crypto: LEA block cipher x86_64 optimization Thread-Index: AQHaRP97Qv3M1SIfYkW1atonfzlDU7DWJB2Q Date: Fri, 12 Jan 2024 12:59:56 +0000 Message-ID: References: <20240112022859.2384-1-letrhee@nsr.re.kr> <20240112022859.2384-6-letrhee@nsr.re.kr> In-Reply-To: <20240112022859.2384-6-letrhee@nsr.re.kr> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable From: Dongsoo Lee > Sent: 12 January 2024 02:29 >=20 > For the x86_64 environment, we use AVX-512F/AVX2/SSE2 instructions. > Since LEA uses 128-bit blocks of four 32-bit integers, for optimization, > SSE2 encrypts 4 blocks, AVX2 encrypts 4/8 blocks, and AVX-512F encrypts > 4/8/16 blocks at a time. >=20 > Our submission provides a optimized implementation of ECB, CBC > decryption, CTR, and XTS cipher operation modes on x86_64 CPUs > supporting. Given you say in 0/0: The LEA algorithm is a lightweight block cipher that processes data blocks = of 128-bits and has three different key lengths, each with a different numb= er of rounds: Just how big is it ? Doesn't look 'lightweight' to me. =09David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1= PT, UK Registration No: 1397386 (Wales)