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

Eric Biggers ebiggers at kernel.org
Mon Jun 16 23:48:57 UTC 2025


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.

- Eric



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