summaryrefslogtreecommitdiffstats
path: root/test/recipes/91-test_pkey_check.t
diff options
context:
space:
mode:
authorNicola Tuveri <nic.tuv@gmail.com>2020-11-10 12:28:52 +0200
committerNicola Tuveri <nic.tuv@gmail.com>2021-01-08 23:59:02 +0200
commit1330093b9c7e0325ca76589fb9ace5b664830c6d (patch)
treec139ea6b1f2d015a3be7cf17c4668c46b2f39380 /test/recipes/91-test_pkey_check.t
parent9e49aff2aaac4c42ea6c4078266947c75761276b (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.t4
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"