Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2207055rdb; Thu, 21 Sep 2023 11:28:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEyxaqZsJflSVMyveNLaqAKgu1HZMbu7yh9pmUj3H68I+A/Jji+xn59MSpOykBtD2/arN4s X-Received: by 2002:a17:90a:7b88:b0:268:38a7:842e with SMTP id z8-20020a17090a7b8800b0026838a7842emr6035239pjc.2.1695320882960; Thu, 21 Sep 2023 11:28:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695320882; cv=none; d=google.com; s=arc-20160816; b=DizTO8niZXrSg1ANe8UyE5YCjM0JJxENmfgATVCKeta/0OlwVb/KiXA2gU/xmZhg2y eQMgQbiUKTwkJgGjqK58Za2n9+EZjzWiAxMoQsDZNdlKpQHwtLRfvBVl0wWmhWJVybF6 T+lasuppyjFfSCYNGXOF8e3Hlft5GRBU1w9k1WDlYDnTYOvHrXcBv9KEd+as1jB0Ye1/ LOooBi4LoIis8DTdm/tHziDfhecfg3030ISNc6KQRnCMffgeq+A65FOuP3SLSXWJTT7A 2ISzovHyL0xzE36P49lm8L/Yn9njt/Nsd2ml3gPugcxOqaT2qLEMunHgobfV3XGzLXao QT1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=pWsXFPBDtEeV3L8qKFSw5qE22FeBXxHiBBhJ3zYghCM=; fh=gvAaTn7V2ako+socwadq3mowY+XpjEU7R+nroQHn0Qk=; b=rFxg1vHGdR08VZMhJCAfPN3ljN1qon6qf0bUwC2E5M8iMXE6AHRqqcG6UPs5xKbeph 9qlG/vih95qudqDhsbdGYYQfLIB0IQ/V9IWrAIDgADhQreDVzMUTssRKBWpKqrCZStFQ SQt2dp+JWdEp1mx8cVZ40LGFzuooiE5tmc0aHNBKKFTTyi7Co+G8D5ZylF1hNyFy5PC5 sPzX7qRmQ006RBZmOg7Jd4U+fA4cEVhrFjci2C6DXXWhwXrJWqFU0U1KxO2qIPKTsb8B 4GHGkBvfvHK61WdBsYbKAF2ZsbbrwFOSzmiS18HYqoBsx3CiufYbaOiHepuvheRRucKl OGqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id gf3-20020a17090ac7c300b002748b96d88csi4104277pjb.179.2023.09.21.11.28.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 11:28:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id D744982A6768; Thu, 21 Sep 2023 10:52:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229962AbjIURwe (ORCPT + 99 others); Thu, 21 Sep 2023 13:52:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229972AbjIURwX (ORCPT ); Thu, 21 Sep 2023 13:52:23 -0400 Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89306133 for ; Thu, 21 Sep 2023 10:27:16 -0700 (PDT) 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 1qjBMM-00GbZs-Il; Thu, 21 Sep 2023 12:32:15 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Thu, 21 Sep 2023 12:32:17 +0800 Date: Thu, 21 Sep 2023 12:32:17 +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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230920062551.GB2739@sol.localdomain> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 21 Sep 2023 10:52:34 -0700 (PDT) On Tue, Sep 19, 2023 at 11:25:51PM -0700, Eric Biggers wrote: > > Is lskcipher only for algorithms that can be computed incrementally? That would > exclude the wide-block modes, and maybe others too. And if so, what is the You mean things like adiantum? We could add a flag for that so the skcipher wrapper linearises the input before calling lskcipher. > model for incremental computation? Based on crypto_lskcipher_crypt_sg(), all > the state is assumed to be carried forward in the "IV". Does that work for all > algorithms? Note that shash has an arbitrary state struct (shash_desc) instead. Is there any practical difference? You could always represent one as the other, no? The only case where it would matter is if an algorithm had both an IV as well as additional state that should not be passed along as part of the IV, do you have anything in mind? Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt