]> git.ipfire.org Git - thirdparty/openssl.git/commit
Add self tests for rsa encryption
authorShane Lontis <shane.lontis@oracle.com>
Wed, 16 Sep 2020 04:10:23 +0000 (14:10 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Wed, 16 Sep 2020 04:10:23 +0000 (14:10 +1000)
commit4343a4187d28d719006642a610afea6e186832bf
tree1dfeffe1ad5f1b6e823163d7e1c21657c3307eb8
parenta268ed3acf16948c0e19ba67b2b3f89b3312a416
Add self tests for rsa encryption

SP800-56br2 requires seperate KAT's (fips self tests) to be tested for both encryption and decryption
using the RSA primitive (i.e. no padding). This is specified in FIPS140-2 IG D.9

A copy of the methods EVP_PKEY_encrypt_init(), EVP_PKEY_encrypt(), EVP_PKEY_decrypt_init(), EVP_PKEY_decrypt()
are now in the fips module.

Removed the #ifdef FIPS_MODULE in evp_pkey_ctx_free_old_ops().

Added corruption test

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/12835)
crypto/evp/asymcipher.c [moved from crypto/evp/pmeth_fn.c with 100% similarity]
crypto/evp/build.info
crypto/evp/pmeth_lib.c
doc/man7/OSSL_PROVIDER-FIPS.pod
include/openssl/self_test.h
providers/fips/self_test_data.inc
providers/fips/self_test_kats.c
test/recipes/03-test_fipsinstall.t