diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-12-10 13:59:29 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-12-10 13:59:29 +0000 |
commit | cce65266299e2e89303a90c131e8171225a1bf88 (patch) | |
tree | 25b069e55d3b894d294a6d80dd7551c2bc5a38ce /test/evptests.txt | |
parent | c922ebe23247ff9ee07310fa30647623c0547cd9 (diff) |
Additional error tests in evp_test.c
Support checking for errors during test initialisation and parsing.
Add errors and tests for key operation initalisation and ctrl errors.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/evptests.txt')
-rw-r--r-- | test/evptests.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/evptests.txt b/test/evptests.txt index 32abf7ffe6..9f33466583 100644 --- a/test/evptests.txt +++ b/test/evptests.txt @@ -2770,6 +2770,15 @@ Ctrl = digest:SHA1 Input = "0123456789ABCDEF1234" Output = c09d402423cbf233d26cae21f954547bc43fe80fd41360a0336cfdbe9aedad05bef6fd2eaee6cd60089a52482d4809a238149520df3bdde4cb9e23d9307b05c0a6f327052325a29adf2cc95b66523be7024e2a585c3d4db15dfbe146efe0ecdc0402e33fe5d40324ee96c5c3edd374a15cdc0f5d84aa243c0f07e188c6518fbfceae158a9943be398e31097da81b62074f626eff738be6160741d5a26957a482b3251fd85d8df78b98148459de10aa93305dbb4a5230aa1da291a9b0e481918f99b7638d72bb687f97661d304ae145d64a474437a4ef39d7b8059332ddeb07e92bf6e0e3acaf8afedc93795e4511737ec1e7aab6d5bc9466afc950c1c17b48ad +# Illegal RSA key derivation +Derive = RSA-2048 +Result = KEYOP_INIT_ERROR + +# Invalid ctrl +Sign = RSA-2048 +Ctrl = rsa_mgf1_md:sha1 +Result = PKEY_CTRL_INVALID + # EC tests Verify = P-256 @@ -3694,3 +3703,11 @@ SharedSecret=4A5D9D5BA4CE2DE1728E3BF480350F25E07E21C947D19E3376F09B3C1E161742 Derive=Bob-25519 PeerKey=Alice-25519-PUBLIC SharedSecret=4A5D9D5BA4CE2DE1728E3BF480350F25E07E21C947D19E3376F09B3C1E161742 + +# Illegal sign/verify operations with X25519 key + +Sign=Alice-25519 +Result = KEYOP_INIT_ERROR + +Verify=Alice-25519 +Result = KEYOP_INIT_ERROR |