openssl/providers/fips
Shane Lontis f8e747471e Add a copy of OSSL_SELF_TEST_get_callback() to the fips module.
The user can set up a self test callback that should be activated when a keygen operation (e.g ec) occurs for the fips module.
The callback information is stored inside the applications library context, but this was not being triggered since the
library context used for the key generation operation was the internal library context used by the fips module (which is not
the same as the application's library context). During the keygen operation the OSSL_SELF_TEST_get_callback() function is used
to retrieve the callback info.
By having a seperate copy of OSSL_SELF_TEST_get_callback() for the fips module we can ensure that the parent library context
is used instead.
The core OSSL_SELF_TEST_get_callback() function pointer is passed across the boundary during the fips modules entry point
such that the fips version of the function can call it after changing the libctx.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12877)
2020-09-19 18:21:09 +10:00
..
build.info Add pairwise consistency self tests to asym keygenerators 2020-03-03 14:02:36 +10:00
fipsprov.c Add a copy of OSSL_SELF_TEST_get_callback() to the fips module. 2020-09-19 18:21:09 +10:00
self_test_data.inc Add self tests for rsa encryption 2020-09-16 14:10:23 +10:00
self_test_kats.c Add self tests for rsa encryption 2020-09-16 14:10:23 +10:00
self_test.c keygen: add FIPS error state management to conditional self tests 2020-09-12 16:46:51 +10:00
self_test.h keygen: add FIPS error state management to conditional self tests 2020-09-12 16:46:51 +10:00