Re: [PATCH bpf-next 2/4] selftests/bpf: Add tests for SHA hash kfuncs

From: Vadim Fedorenko
Date: Tue Nov 18 2025 - 08:45:33 EST


On 17/11/2025 21:13, Daniel Hodges wrote:
Add selftests to validate the SHA-256, SHA-384, and SHA-512 hash kfuncs
introduced in the BPF crypto subsystem. The tests verify both correct
functionality and proper error handling.

Test Data:
All tests use the well-known NIST test vector input "abc" and validate
against the standardized expected outputs for each algorithm. This ensures
the BPF kfunc wrappers correctly delegate to the kernel crypto library.

Signed-off-by: Daniel Hodges <git@xxxxxxxxxxxxxxxx>

Reviewed-by: Vadim Fedorenko <vadim.fedorenko@xxxxxxxxx>