diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2017-01-04 17:32:03 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2017-01-08 01:42:50 +0000 |
commit | 23d674e802c5fbfaea9c428997eac4ef31a96b7b (patch) | |
tree | 3ac025bed7da4aa78b3643f8a5b2067d50857ef0 /test/evptests.txt | |
parent | 7751098ecdc6598af42c99950ac9554eeb2d60b3 (diff) |
add test for invalid key parameters
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2177)
Diffstat (limited to 'test/evptests.txt')
-rw-r--r-- | test/evptests.txt | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/test/evptests.txt b/test/evptests.txt index 7badc3d199..095aced25e 100644 --- a/test/evptests.txt +++ b/test/evptests.txt @@ -3012,6 +3012,17 @@ gCwL7Ksyj4posAc721Rv7qmAnShJkSs5DBUyvH4px2WPgXX65G80My/4e8qz5AZJ uYV3hp2g6nGDU/ByJ1SIaRNkh2DRIr5nbg/Eg90g/8Mb2pajGWbJqi51rQPeR+HE TwIDAQAB -----END PUBLIC KEY----- +# Key with invalid negative minimum salt length +PublicKey = RSA-PSS-BAD +-----BEGIN PUBLIC KEY----- +MIIBJzASBgkqhkiG9w0BAQowBaIDAgH/A4IBDwAwggEKAoIBAQDNAIHqeyrh6gbV +n3xz2f+5SglhXC5Lp8Y2zvCN01M+wxhVJbAVx2m5mnfWclv5w1Mqm25fZifV+4UW +B2jT3anL01l0URcX3D0wnS/EfuQfl+Mq23+d2GShxHZ6Zm7NcbwarPXnUX9LOFlP +6psF5C1a2pkSAIAT5FMWpNm7jtCGuI0odYusr5ItRqhotIXSOcm66w4rZFknEPQr +LR6gpLSALAvsqzKPimiwBzvbVG/uqYCdKEmRKzkMFTK8finHZY+BdfrkbzQzL/h7 +yrPkBkm5hXeGnaDqcYNT8HInVIhpE2SHYNEivmduD8SD3SD/wxvalqMZZsmqLnWt +A95H4cRPAgMBAAE= +-----END PUBLIC KEY----- # Verify using default parameters Verify = RSA-PSS-DEFAULT @@ -3048,12 +3059,17 @@ Ctrl = digest:sha256 Result = PKEY_CTRL_ERROR # Illegal decrypt - Decrypt = RSA-PSS Result = KEYOP_INIT_ERROR Function = EVP_PKEY_decrypt_init Reason = operation not supported for this keytype +# Invalid key: rejected when we try to init +Verify = RSA-PSS-BAD +Result = KEYOP_INIT_ERROR +Function = rsa_pss_get_param +Reason = invalid salt length + # scrypt tests from draft-josefsson-scrypt-kdf-03 PBE = scrypt Password = "" |