openssl/providers/fips
Shane Lontis 04cb5ec0b7 Add 'on demand self test' and status test to providers
The default and legacy providers currently return 1 for status and self test checks.
Added test to show the 3 different stages the self test can be run (for installation, loading and on demand).

For the fips provider:
  - If the on demand self test fails, then any subsequent fetches should also fail. To implement this the
    cached algorithms are flushed on failure.
  - getting the self test callback in the fips provider is a bit complicated since the callback hangs off the core
    libctx (as it is set by the application) not the actual fips library context. Also the callback can be set at
    any time not just during the OSSL_provider_init() so it is calculated each time before doing any self test.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11752)
2020-08-09 18:06:52 +10:00
..
build.info Add pairwise consistency self tests to asym keygenerators 2020-03-03 14:02:36 +10:00
fipsprov.c Add 'on demand self test' and status test to providers 2020-08-09 18:06:52 +10:00
self_test_data.inc fips rand: DRBG KAT self test updates to provider model. 2020-06-24 20:05:42 +10:00
self_test_kats.c Revert "kdf: make function naming consistent." 2020-07-16 14:21:07 +02:00
self_test.c Add 'on demand self test' and status test to providers 2020-08-09 18:06:52 +10:00
self_test.h Add 'on demand self test' and status test to providers 2020-08-09 18:06:52 +10:00