Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp420111rdb; Fri, 17 Nov 2023 02:42:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IGA1vJkoSP00EvXCYbh8QBPb0Rl7ieaMvwPhROE7T/tEGnrzTmGubamCCi/LjLNLvFnrCQd X-Received: by 2002:a17:906:f9c8:b0:9b2:a96c:9290 with SMTP id lj8-20020a170906f9c800b009b2a96c9290mr12169464ejb.33.1700217763411; Fri, 17 Nov 2023 02:42:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700217763; cv=none; d=google.com; s=arc-20160816; b=lgZaV0CfzHGQeqDcGi4fxzDANc/Y3bWVYjQXZ/CJ6gT9st45Cayr9ul+2xpoIqWMun NMUNfeDXQCaoxXfBZHHQ9GI3z35Mt13b9mt1HMV9HxFedALMYUfN23OnWqFAL1y9A+28 WybTJqsPhKho+Oro9zUmOGdrnXRXscZzQpJc23GOFVKPdj/yinoiPUD6ivi4D2vzAnAa vd2trQU16U7bwIS/F22agky4BIm8v8VOZFqi3wxcO4fzj4c9qKKLxFeBBkh2MIzdDa2K vIo6kslhuxoy+xtD6q9FYvTF5pHjTXSnRY+4XYc623lT3esfOWLwxo3/SB/KJSZi3/RN uKsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=7c2rRfWFzpwcL882yluXpIdWNm5sc9idSJuPooez7EQ=; fh=gvAaTn7V2ako+socwadq3mowY+XpjEU7R+nroQHn0Qk=; b=tOtmckgPe7m8SD0W1z2FYkIBg/sqe9Jw+KcusC4hvUOPg/KoqJBhwp2h0M7eignw5s 03bM2VmeHfrsyQvqa2djaea4/qP6eHA2DCAPwkKDt3a38OgYT6Tpon8QJDcWC5dlVigO zKQ9xtxiTfztocQUIG9PN121XOu0ZFFm/J7YLvP5RrAt9UuT3e1Ld9Zfq7looA0qmBKl ACMDFzSFNW2VAmRKEXeDasI1k1FTQXmjVBP+QsAl+1My/cboXgXSyE6Y5EJsjPxjw2GO 4axCkTpnP3z1iAKOx1Rxxskq7WXv/zQM7XpvtP6fWAz7d7c6T2SOi4mQPj4IsGo2kCEv xrOQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto+bounces-144-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-144-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id nb31-20020a1709071c9f00b0099cb9d70178si834550ejc.869.2023.11.17.02.42.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 02:42:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-144-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-144-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-144-linux.lists.archive=gmail.com@vger.kernel.org" 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 2171C1F28907 for ; Fri, 17 Nov 2023 10:42:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9128F1A70D for ; Fri, 17 Nov 2023 10:42:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=none X-Original-To: linux-crypto@vger.kernel.org Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6777A1A5 for ; Fri, 17 Nov 2023 01:07:20 -0800 (PST) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1r3uok-000a36-RN; Fri, 17 Nov 2023 17:07:15 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 17 Nov 2023 17:07:22 +0800 Date: Fri, 17 Nov 2023 17:07:22 +0800 From: Herbert Xu To: Eric Biggers Cc: Linux Crypto Mailing List , Ard Biesheuvel Subject: Re: [PATCH 4/8] crypto: skcipher - Add lskcipher Message-ID: References: <20230914082828.895403-1-herbert@gondor.apana.org.au> <20230914082828.895403-5-herbert@gondor.apana.org.au> <20230920062551.GB2739@sol.localdomain> <20230922031030.GB935@sol.localdomain> <20231117054231.GC972@sol.localdomain> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231117054231.GC972@sol.localdomain> On Thu, Nov 16, 2023 at 09:42:31PM -0800, Eric Biggers wrote: . > crypto_lskcipher_crypt_sg() assumes that a single en/decryption operation can be > broken up into multiple ones. I think you're arguing that since there's no Good point. It means that we'd have to linearise the buffer for such algorithms, or just write an SG implementation as we do now in addition to the lskcipher. Let me think about this a bit more. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt