diff options
author | Tomas Mraz <tomas@openssl.org> | 2021-05-10 16:51:39 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-05-12 13:12:00 +0200 |
commit | 6a2ab4a9c81c676570e849e474ce64f8c2dee2a9 (patch) | |
tree | 9496947faebd554ee93b7e1f7962aa8b7fb143bf /test | |
parent | b5d984bf67ba7bb5723a61f73cca89c1f86009ce (diff) |
Allow arbitrary digests with ECDSA and DSA
Unless the FIPS security check is enabled we allow arbitrary digests
with ECDSA and DSA.
Fixes #14696
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15220)
Diffstat (limited to 'test')
-rw-r--r-- | test/recipes/30-test_evp_data/evppkey_ecdsa.txt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/test/recipes/30-test_evp_data/evppkey_ecdsa.txt b/test/recipes/30-test_evp_data/evppkey_ecdsa.txt index 9297bb2d21..f36982845d 100644 --- a/test/recipes/30-test_evp_data/evppkey_ecdsa.txt +++ b/test/recipes/30-test_evp_data/evppkey_ecdsa.txt @@ -97,11 +97,6 @@ Key = P-256-PUBLIC Input = "Hello World" Output = 3046022100e7515177ec3817b77a4a94066ab3070817b7aa9d44a8a09f040da250116e8972022100ba59b0f631258e59a9026be5d84f60685f4cf22b9165a0c2736d5c21c8ec1862 -# Invalid digest -DigestVerify = MD5 -Key = P-256-PUBLIC -Result = DIGESTVERIFYINIT_ERROR - # Oneshot tests OneShotDigestVerify = SHA256 Key = P-256-PUBLIC @@ -214,3 +209,10 @@ Securitycheck = 1 Ctrl = digest:SHA1 Input = "0123456789ABCDEF1234" Result = PKEY_CTRL_ERROR + +# Invalid non-approved digest +Availablein = fips +DigestVerify = MD5 +Securitycheck = 1 +Key = P-256-PUBLIC +Result = DIGESTVERIFYINIT_ERROR |