openssl/crypto/ffc
Shane Lontis 4f2271d58a Add ACVP fips module tests
For FIPS validation purposes - Automated Cryptographic Validation Protocol (ACVP) tests need to be
performed. (See https://github.com/usnistgov/ACVP). These tests are very similiar to the old CAVS tests.

This PR uses a hardwired subset of these test vectors to perform similiar operations,
to show the usage and prove that the API's are able to perform the required operations.
It may also help with communication with the lab (i.e- The lab could add a test here to show
a unworking use case - which we can then address).

The EVP layer performs these tests instead of calling lower level API's
as was done in the old FOM.
Some of these tests require access to internals that are not normally allowed/required.

The config option 'acvp_tests' (enabled by default) has been added so that this
access may be removed.

The mechanism has been implemented as additional OSSL_PARAM values that can be set and get.
A callback mechanism did not seem to add any additional benefit.
These params will not be added to the gettables lists.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11572)
2020-06-17 11:33:16 +10:00
..
build.info EVP: Implement support for key downgrading in backends 2020-03-25 17:01:32 +01:00
ffc_backend.c Add ACVP fips module tests 2020-06-17 11:33:16 +10:00
ffc_key_generate.c Fix DH_get_nid() so that it does not cache values. 2020-04-20 11:07:38 +10:00
ffc_key_validate.c Add FFC param/key validation 2020-02-16 13:03:46 +10:00
ffc_params_generate.c Add ACVP fips module tests 2020-06-17 11:33:16 +10:00
ffc_params_validate.c Add ACVP fips module tests 2020-06-17 11:33:16 +10:00
ffc_params.c Add ACVP fips module tests 2020-06-17 11:33:16 +10:00