Re: [PATCH bpf-next v2 5/5] selftests/bpf: Add tests for ECDSA signature verification kfuncs

Song Liu
2025-12-06T01:16:24Z

On Fri, Dec 5, 2025 at 9:40 AM Daniel Hodges <git@danielhodges.dev> wrote:
>
> Add selftests to validate the ECDSA signature verification kfuncs
> introduced in the BPF crypto subsystem. The tests verify both valid
> signature acceptance and invalid signature rejection using the
> context-based ECDSA API.
>
> The tests use RFC 6979 test vectors for NIST P-256 (secp256r1) with
> well-known valid signatures. The algorithm "p1363(ecdsa-nist-p256)"
> is used to handle standard r||s signature format.
>
> Signed-off-by: Daniel Hodges <git@danielhodges.dev>
> ---
> .../selftests/bpf/prog_tests/ecdsa_verify.c | 74 ++++++++
> .../selftests/bpf/progs/ecdsa_verify.c | 159 ++++++++++++++++++

I think we should also add CONFIG_CRYPTO_ECDSA to
selftests/bpf/config?

Thanks,
Song