-
Notifications
You must be signed in to change notification settings - Fork 121
Fix explicit Elliptic Curve parsing #705
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
Open
Marandil
wants to merge
6
commits into
Mbed-TLS:development
Choose a base branch
from
Marandil:fix/mbedtls-4314-parse-explicit-curve
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d5d81bd
Add failing tests
Marandil 337e93d
Fix explicit curve import
Marandil 8531ded
Add changelog
Marandil 638764c
Add depdencency on MBEDTLS_PK_PARSE_EC_EXTENDED to the new (explicit …
Marandil d154ad8
Remove internal functions from Changelog
Marandil 4c4fe7b
Cleanup changelog entry
Marandil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| Bugfix: | ||
| * Fix mbedtls_pk_parse_public_key failing to load keys with explicit curve parameters. | ||
| Fixes #4314 | ||
|
|
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
Submodule framework
updated
13 files
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1191,6 +1191,14 @@ Parse Public EC Key #4b (RFC 5480, secp256r1, DER) | |
| depends_on:PSA_WANT_ECC_SECP_R1_256 | ||
| pk_parse_public_keyfile_ec:"../framework/data_files/ec_256_pub.der":0 | ||
|
|
||
| Parse Public EC Key #4c (RFC 5480, secp256r1, explicit) | ||
| depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_DP_SECP256R1_ENABLED:MBEDTLS_PK_PARSE_EC_EXTENDED | ||
| pk_parse_public_keyfile_ec:"../framework/data_files/ec_256_pub.expl.pem":0 | ||
|
|
||
| Parse Public EC Key #4d (RFC 5480, secp256r1, explicit, DER) | ||
| depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_DP_SECP256R1_ENABLED:MBEDTLS_PK_PARSE_EC_EXTENDED | ||
| pk_parse_public_keyfile_ec:"../framework/data_files/ec_256_pub.expl.der":0 | ||
|
|
||
| Parse Public EC Key #5 (RFC 5480, secp384r1) | ||
| depends_on:MBEDTLS_PEM_PARSE_C:PSA_WANT_ECC_SECP_R1_384 | ||
| pk_parse_public_keyfile_ec:"../framework/data_files/ec_384_pub.pem":0 | ||
|
|
@@ -1199,6 +1207,10 @@ Parse Public EC Key #5a (RFC 5480, secp384r1, compressed) | |
| depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_PK_PARSE_EC_COMPRESSED:MBEDTLS_ECP_DP_SECP384R1_ENABLED | ||
| pk_parse_public_keyfile_ec:"../framework/data_files/ec_384_pub.comp.pem":0 | ||
|
|
||
| Parse Public EC Key #5b (RFC 5480, secp384r1, explicit) | ||
| depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_DP_SECP384R1_ENABLED:MBEDTLS_PK_PARSE_EC_EXTENDED | ||
| pk_parse_public_keyfile_ec:"../framework/data_files/ec_384_pub.expl.pem":0 | ||
|
|
||
| Parse Public EC Key #6 (RFC 5480, secp521r1) | ||
| depends_on:MBEDTLS_PEM_PARSE_C:PSA_WANT_ECC_SECP_R1_521 | ||
| pk_parse_public_keyfile_ec:"../framework/data_files/ec_521_pub.pem":0 | ||
|
|
@@ -1207,6 +1219,14 @@ Parse Public EC Key #6a (RFC 5480, secp521r1, compressed) | |
| depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_PK_PARSE_EC_COMPRESSED:MBEDTLS_ECP_DP_SECP521R1_ENABLED | ||
| pk_parse_public_keyfile_ec:"../framework/data_files/ec_521_pub.comp.pem":0 | ||
|
|
||
| Parse Public EC Key #6b (RFC 5480, secp521r1, explicit) | ||
| depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_DP_SECP521R1_ENABLED:MBEDTLS_PK_PARSE_EC_EXTENDED | ||
| pk_parse_public_keyfile_ec:"../framework/data_files/ec_521_pub.expl.pem":0 | ||
|
|
||
| Parse Public EC Key #6c (RFC 5480, secp521r1, explicit, DER) | ||
| depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_DP_SECP521R1_ENABLED:MBEDTLS_PK_PARSE_EC_EXTENDED | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. MBEDTLS_PEM_PARSE_C but the file is in |
||
| pk_parse_public_keyfile_ec:"../framework/data_files/ec_521_pub.expl.der":0 | ||
|
|
||
| Parse Public EC Key #7 (RFC 5480, brainpoolP256r1) | ||
| depends_on:MBEDTLS_PEM_PARSE_C:PSA_WANT_ECC_BRAINPOOL_P_R1_256 | ||
| pk_parse_public_keyfile_ec:"../framework/data_files/ec_bp256_pub.pem":0 | ||
|
|
@@ -1215,6 +1235,10 @@ Parse Public EC Key #7a (RFC 5480, brainpoolP256r1, compressed) | |
| depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_PK_PARSE_EC_COMPRESSED:MBEDTLS_ECP_DP_BP256R1_ENABLED | ||
| pk_parse_public_keyfile_ec:"../framework/data_files/ec_bp256_pub.comp.pem":0 | ||
|
|
||
| Parse Public EC Key #7b (RFC 5480, brainpoolP256r1, explicit) | ||
| depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_DP_BP256R1_ENABLED:MBEDTLS_PK_PARSE_EC_EXTENDED | ||
| pk_parse_public_keyfile_ec:"../framework/data_files/ec_bp256_pub.expl.pem":0 | ||
|
|
||
| Parse Public EC Key #8 (RFC 5480, brainpoolP384r1) | ||
| depends_on:MBEDTLS_PEM_PARSE_C:PSA_WANT_ECC_BRAINPOOL_P_R1_384 | ||
| pk_parse_public_keyfile_ec:"../framework/data_files/ec_bp384_pub.pem":0 | ||
|
|
@@ -1223,6 +1247,10 @@ Parse Public EC Key #8a (RFC 5480, brainpoolP384r1, compressed) | |
| depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_PK_PARSE_EC_COMPRESSED:MBEDTLS_ECP_DP_BP384R1_ENABLED | ||
| pk_parse_public_keyfile_ec:"../framework/data_files/ec_bp384_pub.comp.pem":0 | ||
|
|
||
| Parse Public EC Key #8b (RFC 5480, brainpoolP384r1, explicit) | ||
| depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_DP_BP384R1_ENABLED:MBEDTLS_PK_PARSE_EC_EXTENDED | ||
| pk_parse_public_keyfile_ec:"../framework/data_files/ec_bp384_pub.expl.pem":0 | ||
|
|
||
| Parse Public EC Key #9 (RFC 5480, brainpoolP512r1) | ||
| depends_on:MBEDTLS_PEM_PARSE_C:PSA_WANT_ECC_BRAINPOOL_P_R1_512 | ||
| pk_parse_public_keyfile_ec:"../framework/data_files/ec_bp512_pub.pem":0 | ||
|
|
@@ -1231,6 +1259,14 @@ Parse Public EC Key #9a (RFC 5480, brainpoolP512r1, compressed) | |
| depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_PK_PARSE_EC_COMPRESSED:MBEDTLS_ECP_DP_BP512R1_ENABLED | ||
| pk_parse_public_keyfile_ec:"../framework/data_files/ec_bp512_pub.comp.pem":0 | ||
|
|
||
| Parse Public EC Key #9b (RFC 5480, brainpoolP512r1, explicit) | ||
| depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_DP_BP512R1_ENABLED:MBEDTLS_PK_PARSE_EC_EXTENDED | ||
| pk_parse_public_keyfile_ec:"../framework/data_files/ec_bp512_pub.expl.pem":0 | ||
|
|
||
| Parse Public EC Key #9c (RFC 5480, brainpoolP512r1, explicit, DER) | ||
| depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_DP_BP512R1_ENABLED:MBEDTLS_PK_PARSE_EC_EXTENDED | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. MBEDTLS_PEM_PARSE_C but the file is in |
||
| pk_parse_public_keyfile_ec:"../framework/data_files/ec_bp512_pub.expl.der":0 | ||
|
|
||
| Parse Public EC Key #10 (RFC 8410, DER, X25519) | ||
| depends_on:MBEDTLS_PEM_PARSE_C:PSA_WANT_ECC_MONTGOMERY_255 | ||
| pk_parse_public_keyfile_ec:"../framework/data_files/ec_x25519_pub.der":0 | ||
|
|
||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MBEDTLS_PEM_PARSE_Cbut the file is in.derformat.