All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Biggers <ebiggers@kernel.org>
To: linux-fscrypt@vger.kernel.org
Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] fscrypt: Use aes_ecb_encrypt() for v1 key derivation
Date: Thu, 17 Sep 2026 19:22:26 -0700	[thread overview]
Message-ID: <20260918022226.GA1703@sol> (raw)
In-Reply-To: <20260831192411.99035-1-ebiggers@kernel.org>

On Mon, Aug 31, 2026 at 12:24:11PM -0700, Eric Biggers wrote:
> Now that there's a library function aes_ecb_encrypt(), use it instead of
> a loop of aes_encrypt() calls.
> 
> Note that the use of AES-ECB here is purely for the key derivation
> function used by the deprecated v1 encryption policies.  v2 encryption
> policies use HKDF-SHA512 instead.  Nevertheless, the original version
> has to continue to be supported for backwards compatibility.
> 
> Signed-off-by: Eric Biggers <ebiggers@kernel.org>
> ---
>  fs/crypto/Kconfig       | 2 +-
>  fs/crypto/keysetup_v1.c | 5 ++---
>  2 files changed, 3 insertions(+), 4 deletions(-)

Applied to https://git.kernel.org/pub/scm/fs/fscrypt/linux.git/log/?h=for-next

- Eric

      reply	other threads:[~2026-09-18  2:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-31 19:24 [PATCH] fscrypt: Use aes_ecb_encrypt() for v1 key derivation Eric Biggers
2026-09-18  2:22 ` Eric Biggers [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260918022226.GA1703@sol \
    --to=ebiggers@kernel.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-fscrypt@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.