diff options
author | Nicola Tuveri <nic.tuv@gmail.com> | 2020-11-10 12:28:52 +0200 |
---|---|---|
committer | Nicola Tuveri <nic.tuv@gmail.com> | 2021-01-08 23:59:02 +0200 |
commit | 1330093b9c7e0325ca76589fb9ace5b664830c6d (patch) | |
tree | c139ea6b1f2d015a3be7cf17c4668c46b2f39380 /test/recipes/91-test_pkey_check.t | |
parent | 9e49aff2aaac4c42ea6c4078266947c75761276b (diff) |
[test][pkey_check] Add more invalid SM2 key tests
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/13359)
Diffstat (limited to 'test/recipes/91-test_pkey_check.t')
-rw-r--r-- | test/recipes/91-test_pkey_check.t | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/recipes/91-test_pkey_check.t b/test/recipes/91-test_pkey_check.t index c85ab5c377..4dce838d1f 100644 --- a/test/recipes/91-test_pkey_check.t +++ b/test/recipes/91-test_pkey_check.t @@ -46,7 +46,9 @@ push(@tests, ( push(@tests, ( # For SM2 keys the range for the secret scalar `k` is `1 <= k < n-1` - "sm2_bad_max.pem", # `k` set to `n-1` (invalid, because SM2 range) + "sm2_bad_neg1.pem", # `k` set to `n-1` (invalid, because SM2 range) + "sm2_bad_0.pem", # `k` set to `n` (equivalent to `0 mod n`, invalid) + "sm2_bad_1.pem", # `k` set to `n+1` (equivalent to `1 mod n`, invalid) )) unless disabled("sm2"); plan skip_all => "No tests within the current enabled feature set" |