]> git.ipfire.org Git - thirdparty/openssl.git/commit
Refactor FIPS self-tests to use ID-based lookup
authorSimo Sorce <simo@redhat.com>
Tue, 2 Dec 2025 18:24:41 +0000 (13:24 -0500)
committerDmitry Belyavskiy <beldmit@gmail.com>
Fri, 13 Feb 2026 09:53:40 +0000 (10:53 +0100)
commit66549b5effea96e53581f3adc3f767eab17a713c
tree7d2c1e0508b91b79bbce0c90c02e0447bff4d357
parent8c63835c8c24783215bb47a842165f7ae45cd501
Refactor FIPS self-tests to use ID-based lookup

Consolidate separate self-test data arrays into a single `st_all_tests`
array indexed by a new `self_test_id_t` enumeration.

This replaces string-based algorithm lookups with direct array indexing
for running self-tests, simplifying the code and state management. The
`FIPS_DEFERRED_TEST` structure and `self_test_data.h` file are removed,
and the FIPS provider and implementations are updated to use the new
ID-based API.

Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/29222)
include/internal/fips.h
providers/fips/fipsprov.c
providers/fips/self_test.h
providers/fips/self_test_data.c
providers/fips/self_test_data.h [deleted file]
providers/fips/self_test_kats.c
providers/implementations/keymgmt/slh_dsa_kmgmt.c
providers/implementations/signature/slh_dsa_sig.c