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

KP Singh kpsingh at kernel.org
Mon Jun 16 23:40:22 UTC 2025


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?

- KP

>
> You'll just need to select CRYPTO_LIB_SHA256.
>
> - Eric



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