[test][15-test_genec] Improve EC tests with genpkey#12307
[test][15-test_genec] Improve EC tests with genpkey#12307romen wants to merge 12 commits intoopenssl:masterfrom
Conversation
…d keys The following built-in curves do not have an assigned OID: - Oakley-EC2N-3 - Oakley-EC2N-4 In general we shouldn't assume that an OID is always available. This commit detects such cases, raises an error and returns appropriate return values so that the condition can be detected and correctly handled by the callers, when serializing EC parameters or EC keys with the default `ec_param_enc:named_curve`. Fixes openssl#12306
…ters and keys make update
If the key is to be serialized or printed as text and the framework returns an error, the app should signal the failure to the user using a non-zero exit status.
Test separately EC parameters and EC key generation. For some curves we have had cases in which generating the parameters under certain conditions failed, while generating and serializing a key under the same conditions did not. See <openssl#12306> for more details.
[test][15-test_genec] Some curves only support explicit params encoding
da3534d to
e23e9b0
Compare
… parameters and keys Detect missing OID in serializer implementation
[extended tests]
…zing EC parameters and keys EC_R_MISSING_OID -> PROV_R_MISSING_OID
[extended tests]
|
@DDvO I see Travis already has some red crosses which seem related to the cmp cli tests failing again with ubsan, can you look into it? |
The problems seem to be with both |
|
The other 2 errors are timeouts, I just restarted those jobs to see if kicking the container helps |
These issues are duplicates of issue that @mattcaswell for the most part already solved #12275 If you cherry-pick his two commits and also do the following patch I proposed there: those test failures should be gone. |
|
Thanks again @richsalz for the hint on detecting |
mattcaswell
left a comment
There was a problem hiding this comment.
I'm assuming I'm just supposed to be reviewing the test changes right? The other changes are from the other PRs? On that assumption this looks good.
Yes @mattcaswell, the commits prefixed with drop are from the other PRs! |
Test separately EC parameters and EC key generation. Some curves only support explicit params encoding. For some curves we have had cases in which generating the parameters under certain conditions failed, while generating and serializing a key under the same conditions did not. See <openssl#12306> for more details. Reviewed-by: Matt Caswell <[email protected]> (Merged from openssl#12307)
|
This pull request is ready to merge |
Test separately EC parameters and EC key generation. Some curves only support explicit params encoding. For some curves we have had cases in which generating the parameters under certain conditions failed, while generating and serializing a key under the same conditions did not. See <#12306> for more details. Reviewed-by: Matt Caswell <[email protected]> (Merged from #12307)
|
Merged to
Thanks! |
This follows up on #12080 (
master) and #12085 (1.1.1, merging is not trivial due to the TODO annotations required inmasteruntil #12102 is fixed, a separate PR will follow).Checklist