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

From: Song Liu

Date: Fri Dec 05 2025 - 20:16:24 EST


On Fri, Dec 5, 2025 at 9:40 AM Daniel Hodges <git@xxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx>
> ---
> .../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