Skip to content
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

Auto-enable ASN1 when RSA is enabled #9035

Merged
merged 3 commits into from
Apr 22, 2024

Conversation

valeriosetti
Copy link
Contributor

@valeriosetti valeriosetti commented Apr 18, 2024

Description

RSA needs ASN1 functions to parse/write private and public keys, but there is no guards in the code for that. So we need to enable ASN1 support whenever RSA is enabled.

Resolves #9041.

PR checklist

@valeriosetti valeriosetti added bug needs-review Every commit must be reviewed by at least two team members, needs-ci Needs to pass CI tests needs-reviewer This PR needs someone to pick it up for review priority-high High priority - will be reviewed soon size-xs Estimated task size: extra small (a few hours at most) labels Apr 18, 2024
@valeriosetti valeriosetti requested a review from mpg April 18, 2024 04:59
@valeriosetti valeriosetti self-assigned this Apr 18, 2024
@valeriosetti
Copy link
Contributor Author

@mpg I added you as reviewer because this issue is related to the work we did recently on RSA. If you don't have time to review this please let me know and I will remove you form the reviewers list ;)

RSA needs ASN1 functions to parse/write private and public keys,
but there is no guards in the code for that. So we need to enable
ASN1 support whenever RSA is enabled.

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
@valeriosetti valeriosetti force-pushed the asn1-missing-guard-in-rsa branch from fc91ef4 to 89f5af8 Compare April 18, 2024 16:47
Copy link
Contributor

@gilles-peskine-arm gilles-peskine-arm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for noticing this and fixing it! Looks good to me apart from the missing changelog entry.

@@ -293,6 +293,14 @@
#define MBEDTLS_ECP_LIGHT
#endif

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a changelog entry. It would even be nice to file an issue, to be more visible to other people who might encounter the problem.

Copy link
Contributor Author

@valeriosetti valeriosetti Apr 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just created the issue: #9041

@gilles-peskine-arm gilles-peskine-arm removed the needs-reviewer This PR needs someone to pick it up for review label Apr 18, 2024
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
@valeriosetti valeriosetti removed the needs-ci Needs to pass CI tests label Apr 19, 2024
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Copy link
Contributor

@gilles-peskine-arm gilles-peskine-arm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@tom-cosgrove-arm tom-cosgrove-arm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tom-cosgrove-arm tom-cosgrove-arm added approved Design and code approved - may be waiting for CI or backports and removed needs-review Every commit must be reviewed by at least two team members, labels Apr 19, 2024
@mpg mpg added this pull request to the merge queue Apr 22, 2024
Merged via the queue into Mbed-TLS:development with commit 3caada6 Apr 22, 2024
6 checks passed
@valeriosetti valeriosetti deleted the asn1-missing-guard-in-rsa branch December 6, 2024 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Design and code approved - may be waiting for CI or backports bug priority-high High priority - will be reviewed soon size-xs Estimated task size: extra small (a few hours at most)
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Missing ASN1 functions in a build with RSA_C
4 participants