-
-
Notifications
You must be signed in to change notification settings - Fork 11k
[1.0.2-bp][ec_asn1.c] Avoid injecting seed when built-in matches #10141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
romen
wants to merge
1
commit into
openssl:OpenSSL_1_0_2-stable
from
romen:ec_match_explicit_params_102
Closed
[1.0.2-bp][ec_asn1.c] Avoid injecting seed when built-in matches #10141
romen
wants to merge
1
commit into
openssl:OpenSSL_1_0_2-stable
from
romen:ec_match_explicit_params_102
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
An unintended consequence of openssl#9808 is that when an explicit parameters curve is matched against one of the well-known builtin curves we automatically inherit also the associated seed parameter, even if the the input parameters excluded such parameter. This later affects the serialization of such parsed keys, causing their input DER encoding and output DER encoding to differ due to the additional optional field. This does not cause problems internally but could affect external applications, as reported in openssl#9811 (comment) This commit fixes the issue by conditionally clearing the seed field if the original input parameters did not include it.
1 task
Member
Author
|
@matthauck could you give this PR a try to verify if it does indeed resolve your problem? |
Contributor
|
Awesome, thank you! Will give this a try and report back. |
Contributor
|
This did indeed fix our issue. Thank you! 🎉 🎈 |
Member
Author
|
Out of WIP as #10140 was approved without further changes. |
mattcaswell
approved these changes
Oct 11, 2019
t8m
approved these changes
Oct 11, 2019
Contributor
|
Same here: 'the the input parameters' -> 'the input parameters' |
levitte
pushed a commit
that referenced
this pull request
Oct 15, 2019
An unintended consequence of #9808 is that when an explicit parameters curve is matched against one of the well-known builtin curves we automatically inherit also the associated seed parameter, even if the input parameters excluded such parameter. This later affects the serialization of such parsed keys, causing their input DER encoding and output DER encoding to differ due to the additional optional field. This does not cause problems internally but could affect external applications, as reported in #9811 (comment) This commit fixes the issue by conditionally clearing the seed field if the original input parameters did not include it. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from #10141)
Member
Author
|
Merged with 4e545c6 Thanks everyone and thanks again @matthauck for reporting and testing this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
approval: done
This pull request has the required number of approvals
branch: 1.0.2
Applies to OpenSSL_1_0_2-stable branch (EOL)
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a backport of #10140 for
1.0.2where it did not cherry-pick cleanly.I'd like to keep the discussion about patching vs non-patching in the parent PR.
It is marked as WIP until the discussion in #10140 reaches a consensus.
Also we might need to add a
CHANGESentry.