Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1123675rdb; Tue, 19 Sep 2023 23:29:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGAWAOxHgckP5nRe6a1PddEVflJqXn+TOd8kO2qjb2ZOtWUm/N3nEOyBcAIU9CPohiQqp// X-Received: by 2002:a05:6a20:8e01:b0:13f:c40c:379 with SMTP id y1-20020a056a208e0100b0013fc40c0379mr2202059pzj.13.1695191376706; Tue, 19 Sep 2023 23:29:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695191376; cv=none; d=google.com; s=arc-20160816; b=gX6qBN6fGeh0mhDTfiKftrCMzBmJntWFaXJv4Ekuw2Bt/x3GiT9YYfbMONrJuFoxCz hlSf0dhwWjXNzPfTvj2CJ20MW4zZKFB7meS9C9mo5CzfrmMekT8Xoh1nAPfxTqywqAq9 VF6RRez3aGWnatJbhBVW5qVV5KS6x4O95ZPLVMC2mrmI3e5X125QIczoEEXZqfbMri+5 uBIROKggmH6jjOtigG8i3gue9Jf7pZ+YZ6vIlyUvLGZIHxM13d5yAWwY4CeYhCSzZX/D bMR8Jks/f/bkTqqPGVyJJBHLYeAcs9jlzdK6vQViPVA2W+WXNrPShMCpCt4rzRKAoplu M+uQ== 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:dkim-signature; bh=9WMHBXsvwqmb1mJWtWnI5mdxskEDl/8SiX8UANcEyyo=; fh=UDWDhAO7lJRReNZvubywdGsu9mvQhvlekph1HTPfwkE=; b=OOQY71n2lDwPZUDGrjO5+sElgghmXlSQRx0j/Q51/2CSuEWjjTj5wv4JCCXe3NnX3f BMHjyl7OcIC3kQoK6ILjyrgzIpRwyjNOTmAEbUDW6eoiYVbDcjpC39kMdTMo/Koi2T2f Pt3zi4ybOxs3rxcIk0USLHsqS3hXC0hApOxgJDs9FF0pfQpvlXSTMsbH1JuGQMOs4n75 mydzmRmjvxpvWWFcbNJbNRNa6LBvpdawfGTJW9OUz7iYnnmL3JhfcWvsnzck7o8amrw9 Ex0LyceYibPMLnJUYmVUo5MOyY2/gkjgyyWjhZacm/4TvxFU5Hfd3dF3uAGyfrg8YF9/ w1zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bAK+zYHI; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id o8-20020a17090ad24800b00262ffca5a31si876054pjw.161.2023.09.19.23.29.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 23:29:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bAK+zYHI; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id B267580763CA; Tue, 19 Sep 2023 23:25:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231269AbjITG0D (ORCPT + 99 others); Wed, 20 Sep 2023 02:26:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230447AbjITG0C (ORCPT ); Wed, 20 Sep 2023 02:26:02 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97A8A99 for ; Tue, 19 Sep 2023 23:25:54 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6957C433C8; Wed, 20 Sep 2023 06:25:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695191152; bh=8HUuNtkf22Rxrb0JqBDE5eeuzu96jbxQjTL30cOOl7Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bAK+zYHI5aWxBCCCB2w2xrI3GX8RK6eKdre1Te0dDIjTwyzlJY8UahLEWqUX5zDiP dzLEXNuWpRHxV6NAMdosPx4A90OQRwDXG5ro9UV0Y6KCa29b0DE6SsTwdcNpHG1A6m gTylTut58gZEzcerjT6OaDAHWXmD5MURx69ZByrZj2hnSA++/ABsMjiF0LpQ/FzFdM see6Nofk8wKxgYZmw53xnrpCcHfFj+FfBDVDQ/oiyQYmhtNUAZqcLLL9874r/7jbm6 MC2ng0EEjLF8PzNab8pf+ZKsaqIWg2fDsMoGNCEp4B7e2n8ANuXnXhD1yO1W4ac8UA p5L9Ep6SuLS5w== Date: Tue, 19 Sep 2023 23:25:51 -0700 From: Eric Biggers To: Herbert Xu Cc: Linux Crypto Mailing List , Ard Biesheuvel Subject: Re: [PATCH 4/8] crypto: skcipher - Add lskcipher Message-ID: <20230920062551.GB2739@sol.localdomain> References: <20230914082828.895403-1-herbert@gondor.apana.org.au> <20230914082828.895403-5-herbert@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230914082828.895403-5-herbert@gondor.apana.org.au> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Tue, 19 Sep 2023 23:26:00 -0700 (PDT) On Thu, Sep 14, 2023 at 04:28:24PM +0800, Herbert Xu wrote: > Add a new API type lskcipher designed for taking straight kernel > pointers instead of SG lists. Its relationship to skcipher will > be analogous to that between shash and ahash. 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 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. - Eric