Commit 17461f2
Derive the expected ECC rejection in the priv-only key test
wolfSSL master now rejects a private scalar outside [1, n-1] when importing
one, so the zeroed key that test_IdentifyAsn1Key_EccPrivOnlyDerFailure builds
fails in wc_EccPrivateKeyDecode instead of reaching the wc_ecc_make_pub
fallback in IdentifyAsn1Key. The identify call then reports the key as
unidentified, WS_UNIMPLEMENTED_E, rather than WS_CRYPTO_FAILED, and the test
failed against any wolfSSL built from master.
- decode the corrupted DER first and expect the rejection the linked wolfSSL
performs, so the assertion stays strict on either library1 parent e7c8dc2 commit 17461f2
1 file changed
Lines changed: 22 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11167 | 11167 | | |
11168 | 11168 | | |
11169 | 11169 | | |
| 11170 | + | |
11170 | 11171 | | |
11171 | 11172 | | |
11172 | 11173 | | |
| |||
11209 | 11210 | | |
11210 | 11211 | | |
11211 | 11212 | | |
| 11213 | + | |
| 11214 | + | |
| 11215 | + | |
| 11216 | + | |
| 11217 | + | |
| 11218 | + | |
| 11219 | + | |
| 11220 | + | |
| 11221 | + | |
| 11222 | + | |
| 11223 | + | |
| 11224 | + | |
| 11225 | + | |
| 11226 | + | |
| 11227 | + | |
| 11228 | + | |
| 11229 | + | |
| 11230 | + | |
11212 | 11231 | | |
11213 | 11232 | | |
11214 | 11233 | | |
11215 | | - | |
11216 | | - | |
11217 | | - | |
| 11234 | + | |
| 11235 | + | |
| 11236 | + | |
11218 | 11237 | | |
11219 | 11238 | | |
11220 | 11239 | | |
| |||
0 commit comments