Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3163396pxb; Mon, 18 Apr 2022 17:46:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVcQqfESV0PCiVwRtX1XbPZG0HPuWWYtQdLTACmJcJpVK/UNa1IGcHSCdPFPOO3s2GjeGd X-Received: by 2002:a17:902:bcc2:b0:14f:23c6:c8c5 with SMTP id o2-20020a170902bcc200b0014f23c6c8c5mr13143422pls.131.1650329165587; Mon, 18 Apr 2022 17:46:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650329165; cv=none; d=google.com; s=arc-20160816; b=MM9CRdrXDOomBZrseLUN+2Lxsj42AT58c7XQY71lBma8Om3k+GC2cn/3wFzQttBE1m 1XOw51E42vrs3hr14m11TA7pS/SS0tyhFmKvFVWVD7H5o6Mou8/i3N2qjA5AIGA13hPH 3+HCvdaVCTuZx3ZzxBTrVJrAISTTWGEhUajBqcf+CMyyBv01lY5/PIxg/zd4VsKFBZg1 15xnk9zZokUi1Fv4scz6C7G4zg8qThYHGfxaFhL9IrnOjzT2p2dADU7hYHDVWRHxZjKU 0yjjnTfX5atnWpddL41tsN3GN9LQcefmgyyJfB5ilkkSuiqnaFpJ4yXIUOiP0p8e1ylw FSGw== 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=p0AlSjC4k0grrsnchApFVMRuj5/fp46aYtD7AK7vkVY=; b=T8mvMJ6ocyM/aDN52fJ1XG/0jsJQHu9RvWOOhfVD/FnpT99yJH8WkmKLLOm6SIlLqG H2lWqWSrU8dMqkLqxhEhoubXs5/HcQ+nN8lghwjqmP0NO0DCD9GNJNBOyDCTPKyf/R82 QEiEwm5XgdE6thAPEbSCpTzQneQj6mQ8EHm9jQERMKrOAS7BClE6cbAZZezleZkaRS7n YFW7gCb098AAvUc7T+RAZH0uUDA4CqAAZD0NLaqkioCpKUDMf7Xb/fKHIRP93Jdm6oA2 UCjqQnOMJBX1o/UjBAyTyUDyaJV5ZPrKssgY4PzpF9dDOfBJxywZy0b6pi8OY33ov/Sp JuVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aSU3Bpuc; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i19-20020a63d453000000b003aa2211ac3dsi1925247pgj.730.2022.04.18.17.45.37; Mon, 18 Apr 2022 17:46:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aSU3Bpuc; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230174AbiDRSH4 (ORCPT + 99 others); Mon, 18 Apr 2022 14:07:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229651AbiDRSHy (ORCPT ); Mon, 18 Apr 2022 14:07:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3367E36153 for ; Mon, 18 Apr 2022 11:05:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BEA826138B for ; Mon, 18 Apr 2022 18:05:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0DA2C385A1; Mon, 18 Apr 2022 18:05:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650305114; bh=iTh2BkOqbHJTxvKBcPXRBs8xRFkDQ76lvXa466UhJLw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aSU3BpucxT9Zzk/p5V77sXpgvetmRV+ga2HeRdb0/UF/ImvjiUK+HEFk6EU1aqXR/ NnVVC4ShHFVeLvDbdVDSN4Ln1qxnUKQsLL4z3BA2tFrPOq8WMLh6/w0jLJzA/NcX2S cVQPGgpJpAb86p/ogH85UdotB+kTfDehGBqGcQD8IgoGFds+1ZwXaugI4Aeqdj1VXg Kf9da3B6cz5U6+qLwTS2XrDZXDFAMjPIsn0aem0N7GLq0MdqcvIWQ5OBojkAswvIy8 anaXmVT7kSXXaTfSbGiVzTWOmxpKVzU+qTWQOjkTN4Bc+EPnMlt+O0/l1IoOonM0gH 2qICaLnnHsTag== Date: Mon, 18 Apr 2022 18:05:12 +0000 From: Eric Biggers To: Nathan Huckleberry Cc: linux-crypto@vger.kernel.org, Herbert Xu , "David S. Miller" , linux-arm-kernel@lists.infradead.org, Paul Crowley , Sami Tolvanen , Ard Biesheuvel Subject: Re: [PATCH v4 8/8] fscrypt: Add HCTR2 support for filename encryption Message-ID: References: <20220412172816.917723-1-nhuck@google.com> <20220412172816.917723-9-nhuck@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220412172816.917723-9-nhuck@google.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Tue, Apr 12, 2022 at 05:28:16PM +0000, Nathan Huckleberry wrote: > diff --git a/fs/crypto/keysetup.c b/fs/crypto/keysetup.c > index eede186b04ce..ae24b581d3d7 100644 > --- a/fs/crypto/keysetup.c > +++ b/fs/crypto/keysetup.c > @@ -53,6 +53,13 @@ struct fscrypt_mode fscrypt_modes[] = { > .ivsize = 32, > .blk_crypto_mode = BLK_ENCRYPTION_MODE_ADIANTUM, > }, > + [FSCRYPT_MODE_AES_256_HCTR2] = { > + .friendly_name = "HCTR2", Can you use "AES-256-HCTR2" here instead of just "HCTR2"? This would be similar to how FSCRYPT_MODE_AES_256_XTS uses .friendly_name = "AES-256-XTS". - Eric