]> git.ipfire.org Git - thirdparty/openssl.git/commit
Move FIPS self-test data into a separate .c file
authorSimo Sorce <simo@redhat.com>
Tue, 25 Nov 2025 18:19:35 +0000 (13:19 -0500)
committerDmitry Belyavskiy <beldmit@gmail.com>
Fri, 13 Feb 2026 09:53:40 +0000 (10:53 +0100)
commit0e86806197605f4396e5e060115280baf1640dcd
tree26568f93e33f0c99d587e234a6a30125de05d4b1
parent48dd58fa2497881136b8aa6ec02a56fde7681945
Move FIPS self-test data into a separate .c file

The Known Answer Test (KAT) data, previously in `self_test_data.inc`, is moved
into its own compilation unit, `self_test_data.c`. This separates the large
data definitions from the test execution logic.

This refactoring improves code organization and modularity. A new header,
`self_test_data.h`, is added to declare the data arrays for external linkage.
The shared data structure definitions are moved to `self_test.h` to be
accessible by both the test logic and the data files.

Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/29222)
providers/fips.module.sources
providers/fips/build.info
providers/fips/self_test.h
providers/fips/self_test_data.c [moved from providers/fips/self_test_data.inc with 93% similarity]
providers/fips/self_test_data.h [new file with mode: 0644]
providers/fips/self_test_kats.c