From: Eric Biggers <ebiggers@kernel.org>
To: fsverity@lists.linux.dev
Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-ext4@vger.kernel.org,
linux-f2fs-devel@lists.sourceforge.net,
linux-btrfs@vger.kernel.org, Ard Biesheuvel <ardb@kernel.org>,
"Jason A . Donenfeld" <Jason@zx2c4.com>,
Theodore Ts'o <tytso@mit.edu>
Subject: Re: [PATCH 0/2] Convert fs/verity/ to use SHA-2 library API
Date: Wed, 9 Jul 2025 13:29:21 -0700 [thread overview]
Message-ID: <20250709202921.GC28537@sol> (raw)
In-Reply-To: <20250709192650.GB28537@sol>
On Wed, Jul 09, 2025 at 12:26:50PM -0700, Eric Biggers wrote:
> On Mon, Jun 30, 2025 at 10:22:22AM -0700, Eric Biggers wrote:
> > This series, including all its prerequisites, is also available at:
> >
> > git fetch https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git fsverity-libcrypto-v1
> >
> > This series makes fs/verity/ use the SHA-2 library API instead of the
> > old-school crypto API. This is simpler and more efficient.
> >
> > This depends on my SHA-2 library improvements for 6.17 (many patches),
> > so this patchset might need to wait until 6.18. But I'm also thinking
> > about just basing the fsverity tree on libcrypto-next for 6.17.
> >
> > Eric Biggers (2):
> > lib/crypto: hash_info: Move hash_info.c into lib/crypto/
> > fsverity: Switch from crypto_shash to SHA-2 library
>
> FYI, I've applied this series to
> https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git/log/?h=libcrypto-next
> so that it gets linux-next coverage.
>
> As mentioned, it depends on the SHA-256 and SHA-512 improvements in
> lib/crypto/. But Linus has also expressed a preference to not put too
> much in one pull request.
>
> My current plan is to do 3 pull requests:
>
> 1. "Crypto library updates" - most patches, mainly SHA-256 and
> SHA-512 library improvements
>
> 2. "Crypto library tests" - based on (1) but adds:
> lib/crypto: tests: Add hash-test-template.h and gen-hash-testvecs.py
> lib/crypto: tests: Add KUnit tests for SHA-224 and SHA-256
> lib/crypto: tests: Add KUnit tests for SHA-384 and SHA-512
> lib/crypto: tests: Add KUnit tests for Poly1305
>
> 3. "Crypto library conversions" - based on (1) but adds:
> apparmor: use SHA-256 library API instead of crypto_shash API
> fsverity: Explicitly include <linux/export.h>
> fsverity: Switch from crypto_shash to SHA-2 library
>
> I'll put all of these in libcrypto-next for linux-next coverage, but (3)
> will have a slightly different base commit in the final version.
Correction: everything can have the same commit ID in libcrypto-next as
in the final pull requests, if I put (2) and (3) on their own branches
and merge them together. I've done that.
- Eric
WARNING: multiple messages have this Message-ID (diff)
From: Eric Biggers via Linux-f2fs-devel <linux-f2fs-devel@lists.sourceforge.net>
To: fsverity@lists.linux.dev
Cc: "Jason A . Donenfeld" <Jason@zx2c4.com>,
Theodore Ts'o <tytso@mit.edu>,
linux-kernel@vger.kernel.org,
linux-f2fs-devel@lists.sourceforge.net,
linux-crypto@vger.kernel.org, linux-ext4@vger.kernel.org,
Ard Biesheuvel <ardb@kernel.org>,
linux-btrfs@vger.kernel.org
Subject: Re: [f2fs-dev] [PATCH 0/2] Convert fs/verity/ to use SHA-2 library API
Date: Wed, 9 Jul 2025 13:29:21 -0700 [thread overview]
Message-ID: <20250709202921.GC28537@sol> (raw)
In-Reply-To: <20250709192650.GB28537@sol>
On Wed, Jul 09, 2025 at 12:26:50PM -0700, Eric Biggers wrote:
> On Mon, Jun 30, 2025 at 10:22:22AM -0700, Eric Biggers wrote:
> > This series, including all its prerequisites, is also available at:
> >
> > git fetch https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git fsverity-libcrypto-v1
> >
> > This series makes fs/verity/ use the SHA-2 library API instead of the
> > old-school crypto API. This is simpler and more efficient.
> >
> > This depends on my SHA-2 library improvements for 6.17 (many patches),
> > so this patchset might need to wait until 6.18. But I'm also thinking
> > about just basing the fsverity tree on libcrypto-next for 6.17.
> >
> > Eric Biggers (2):
> > lib/crypto: hash_info: Move hash_info.c into lib/crypto/
> > fsverity: Switch from crypto_shash to SHA-2 library
>
> FYI, I've applied this series to
> https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git/log/?h=libcrypto-next
> so that it gets linux-next coverage.
>
> As mentioned, it depends on the SHA-256 and SHA-512 improvements in
> lib/crypto/. But Linus has also expressed a preference to not put too
> much in one pull request.
>
> My current plan is to do 3 pull requests:
>
> 1. "Crypto library updates" - most patches, mainly SHA-256 and
> SHA-512 library improvements
>
> 2. "Crypto library tests" - based on (1) but adds:
> lib/crypto: tests: Add hash-test-template.h and gen-hash-testvecs.py
> lib/crypto: tests: Add KUnit tests for SHA-224 and SHA-256
> lib/crypto: tests: Add KUnit tests for SHA-384 and SHA-512
> lib/crypto: tests: Add KUnit tests for Poly1305
>
> 3. "Crypto library conversions" - based on (1) but adds:
> apparmor: use SHA-256 library API instead of crypto_shash API
> fsverity: Explicitly include <linux/export.h>
> fsverity: Switch from crypto_shash to SHA-2 library
>
> I'll put all of these in libcrypto-next for linux-next coverage, but (3)
> will have a slightly different base commit in the final version.
Correction: everything can have the same commit ID in libcrypto-next as
in the final pull requests, if I put (2) and (3) on their own branches
and merge them together. I've done that.
- Eric
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
next prev parent reply other threads:[~2025-07-09 20:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-30 17:22 [PATCH 0/2] Convert fs/verity/ to use SHA-2 library API Eric Biggers
2025-06-30 17:22 ` [f2fs-dev] " Eric Biggers via Linux-f2fs-devel
2025-06-30 17:22 ` [PATCH 1/2] lib/crypto: hash_info: Move hash_info.c into lib/crypto/ Eric Biggers
2025-06-30 17:22 ` [f2fs-dev] " Eric Biggers via Linux-f2fs-devel
2025-06-30 17:22 ` [PATCH 2/2] fsverity: Switch from crypto_shash to SHA-2 library Eric Biggers
2025-06-30 17:22 ` [f2fs-dev] " Eric Biggers via Linux-f2fs-devel
2025-07-04 13:25 ` [PATCH 0/2] Convert fs/verity/ to use SHA-2 library API Ard Biesheuvel
2025-07-04 13:25 ` [f2fs-dev] " Ard Biesheuvel via Linux-f2fs-devel
2025-07-09 19:26 ` Eric Biggers
2025-07-09 19:26 ` [f2fs-dev] " Eric Biggers via Linux-f2fs-devel
2025-07-09 20:29 ` Eric Biggers [this message]
2025-07-09 20:29 ` Eric Biggers via Linux-f2fs-devel
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=20250709202921.GC28537@sol \
--to=ebiggers@kernel.org \
--cc=Jason@zx2c4.com \
--cc=ardb@kernel.org \
--cc=fsverity@lists.linux.dev \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=tytso@mit.edu \
/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.