Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3807719rdb; Thu, 14 Sep 2023 03:22:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFq1YHlzd9qvLC1KAvnUEGVv/oWBqC8zME5/QV3+SxnOhdRII3zz0RfPllJ0+5Dm0ncGrxH X-Received: by 2002:a05:6870:8308:b0:1d5:f22f:7a00 with SMTP id p8-20020a056870830800b001d5f22f7a00mr5704627oae.27.1694686938176; Thu, 14 Sep 2023 03:22:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694686938; cv=none; d=google.com; s=arc-20160816; b=m6H29kSjsXDoVkPjvM1x9n4nt8LTwpKCN+SFxqsUns4LHNtjzDDmoN1/tU1a1Rfc9E 8YEw6yYAlcmlMCcbVg/18x2AfPJ2G/6KUjwpM4hq6FNYWphJXBYvMfYeqgolNOPgo6/Y w+YuQ9RTif8247nDTCEJHkGcyec3G7IJuJhsFEjWOE6HxxhDbEA6dIuJ5LbArSnZ3TGf 1EqNuFc8rO1wiQAzfkzFwpAVuJktLDjWBnMItOown36wC+BRHlUoUZ41exPPGq0ILv0W aOXiSdLh8GWq8cisQK/mPfJbko3NUqlw3gi/WqVcLFk0Cch4Dn5nHA14zAz2cMBzOBoD igUg== 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:sender:dkim-signature; bh=xFlzIZ6L2I8fd8nS6zzaHrZbUJ0yA9sDxrpRBVDET44=; fh=okneah7i9WVE7NFkyyxtFud/d0rWX8LR4CpF9Ro7Ixg=; b=rJBChHSDLDj8cHn0JYlQUGSvRdro0NtNvdO1Hkw/nNrsw+UhgZZwjkRD1YSb0t4ZnX ThgXRcEQjnemI8fBJEqUvsGib7Y+cH+oJ87YgRc06A+lX/TGmHFxT9EmVJ8Q2frF+TcG DyLAz44UBm7HSV00zI5TAWqqeV6aaJtoqBuCt031Qu0Hix/mK3UmG97Y2tGF6eMYcGKq a8qBgb2mXV/GKgm1hUvH31PqyuEuF4Pdn/NVQX8HmhcI00w+pvn0wFE1F7c3WALULPGh t3W1U3xR257tUPoMi+idJkSgf/YwIsoTAz1DKPHkMFjjqbX+ckxvyVzgv3eGTfJKYn3p JtBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ZAVtZ+9n; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id 18-20020a630112000000b00577646e2b5bsi1245639pgb.652.2023.09.14.03.22.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 03:22:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ZAVtZ+9n; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 64DD9833D54A; Thu, 14 Sep 2023 02:30:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234427AbjINJaD (ORCPT + 99 others); Thu, 14 Sep 2023 05:30:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236923AbjINJaC (ORCPT ); Thu, 14 Sep 2023 05:30:02 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6B41CF3 for ; Thu, 14 Sep 2023 02:29:58 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1c1e3a4a06fso5702405ad.3 for ; Thu, 14 Sep 2023 02:29:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694683798; x=1695288598; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=xFlzIZ6L2I8fd8nS6zzaHrZbUJ0yA9sDxrpRBVDET44=; b=ZAVtZ+9nEVyjXas/Pnw21moeALfoYjT9JWlTpJTkNky0yDUtaarflnxhHk8qzCzeCO ophGHAbZnZcJVvlAdAG56HxM2lnZ+VrfYS1eLpeY2Ib6ujyysuyYxUiUE9QJmzFW3kP+ WkcJVrObf/O/DOogZT4azBrpZiu0Qr7amVZLDFwuiHX3sZ2d7vUZFs/dqLcgsnJnI5+V dfjWMG9q0c6dl5bzWcrhzdmcJzX4Hr1eZAvzlq0XBud1s9jYayqqkPGhukfON+T4wv59 soeQgtKFMG4JqsgPQqooI/IDos4Q6PSPIRUA8EhihDMeaVhjXjYCobw555WkMhN9RHWx cEeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694683798; x=1695288598; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xFlzIZ6L2I8fd8nS6zzaHrZbUJ0yA9sDxrpRBVDET44=; b=At6KNs7RuJEtumo97HIu0E1no06IMo0ZcPZskluJcZdROgQ9WEwLYiZjxJtTAqjZpv faRvAJMVh2LoMte3jUVtdcjWndVThVUa7/Pl5KDQuSxlIrx7iOiadvTobqniGxd8Aobs Nh1fGc/LasLRwEEnVCmI7PzV+JYrGs39iGQJYhKl6bhWxm02xLw+zby5HbYCjBD8ME77 DD3+G/FXuQV9u5qW2O5yn1yDXbI59KWzHjnGTWLRI30CGSCVkgZE1pa24E6Xq0oigT99 uWUFpGnwVTuJnmjKVDT85tgvdCa2DunKxThEPfXrwt8jcJ4R0faFdMXrHSBSx5aYTWNQ 9s+w== X-Gm-Message-State: AOJu0Yz99BRgmDQN8RquDa5KAdn2xct+H6IGtgzlOtWEv2v9Bd2caDx9 bYUNHjXrbKvTcbivzMavTuhCOj40ringKg== X-Received: by 2002:a17:902:b7c1:b0:1bd:f69e:6630 with SMTP id v1-20020a170902b7c100b001bdf69e6630mr4286641plz.65.1694683798301; Thu, 14 Sep 2023 02:29:58 -0700 (PDT) Received: from gondor.apana.org.au ([2404:c804:1b2a:5507:c00a:8aff:fe00:b003]) by smtp.gmail.com with ESMTPSA id jo5-20020a170903054500b001b89a6164desm1110981plb.118.2023.09.14.02.29.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 02:29:58 -0700 (PDT) Sender: Herbert Xu Date: Thu, 14 Sep 2023 17:29:58 +0800 From: Herbert Xu To: Ard Biesheuvel Cc: Linux Crypto Mailing List Subject: Re: [PATCH 0/8] crypto: Add lskcipher API type Message-ID: References: <20230914082828.895403-1-herbert@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 (morse.vger.email [0.0.0.0]); Thu, 14 Sep 2023 02:30:02 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,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 morse.vger.email On Thu, Sep 14, 2023 at 11:18:00AM +0200, Ard Biesheuvel wrote: > > So this means that the base name will be aes, not ecb(aes), right? > What about cbc and ctr? It makes sense for a single lskcipher to > implement all three of those at least, so that algorithms like XTS and > GCM can be implemented cheaply using generic templates, without the > need to call into the lskcipher for each block of input. You can certainly implement all three with arch-specific code but I didn't think there was a need to do this for the generic version. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt