Add FIPS Self test kats for digests
authorShane Lontis <shane.lontis@oracle.com>
Wed, 15 Jan 2020 00:48:01 +0000 (10:48 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Wed, 15 Jan 2020 00:48:01 +0000 (10:48 +1000)
commit36fc5fc6bd5ca53fb30aabc38e3fefbab0005b2c
tree16e416a148ab7e40d416977ab971e315f7b034f1
parent76123661a1db136b9ef368dc296a628818e7a4cc
Add FIPS Self test kats for digests

Added an API to optionally set a self test callback.
The callback has the following 2 purposes
(1) Output information about the KAT tests.
(2) Allow the ability to corrupt one of the KAT's
The fipsinstall program uses the API.

Some KATS are not included in this PR since the required functionality did not yet exist in the provider.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10374)
24 files changed:
apps/fipsinstall.c
crypto/build.info
crypto/provider_core.c
crypto/self_test_core.c [new file with mode: 0644]
doc/man1/openssl-fipsinstall.pod
doc/man3/OSSL_SELF_TEST_set_callback.pod [new file with mode: 0644]
doc/man7/OSSL_PROVIDER-FIPS.pod [new file with mode: 0644]
doc/man7/provider-base.pod
include/internal/cryptlib.h
include/internal/provider.h
include/openssl/core_names.h
include/openssl/core_numbers.h
include/openssl/self_test.h [new file with mode: 0644]
providers/fips/build.info
providers/fips/fipsprov.c
providers/fips/self_test.c [new file with mode: 0644]
providers/fips/self_test.h [new file with mode: 0644]
providers/fips/self_test_data.inc [new file with mode: 0644]
providers/fips/self_test_event.c [new file with mode: 0644]
providers/fips/self_test_kats.c [new file with mode: 0644]
providers/fips/selftest.c [deleted file]
providers/fips/selftest.h [deleted file]
test/recipes/03-test_fipsinstall.t
util/libcrypto.num