[PATCH 01/12] bpf: Implement an internal helper for SHA256 hashing

KP Singh kpsingh at kernel.org
Tue Jun 17 00:04:55 UTC 2025


On Tue, Jun 17, 2025 at 1:49 AM Eric Biggers <ebiggers at kernel.org> wrote:
>
> On Tue, Jun 17, 2025 at 01:40:22AM +0200, KP Singh wrote:
> > On Thu, Jun 12, 2025 at 9:08 PM Eric Biggers <ebiggers at kernel.org> wrote:
> > >
> > [...]
> > >
> > > You're looking for sha256() from <crypto/sha2.h>.  Just use that instead.
> >
> > I did look at it but my understanding is that it will always use the
> > non-accelerated version and in theory the program can be megabytes in
> > size, so might be worth using the accelerated crypto API. What do you
> > think?
> >
>
> I fixed that in 6.16.  sha256() gives you the accelerated version now.

This is awesome, I will drop this patch.

- KP

>
> - Eric



More information about the Linux-security-module-archive mailing list