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

Fix dependencies of mbedtls_pk_ec_ro and mbedtls_pk_ec_rw #8320

Merged
merged 4 commits into from
Oct 18, 2023

Conversation

valeriosetti
Copy link
Contributor

@valeriosetti valeriosetti commented Oct 6, 2023

Description

This PR resolves #8263 by using !MBEDTLS_PK_USE_PSA_EC_DATA as guard for mbedtls_pk_ec_[ro/rw] and fixing related issues.

PR checklist

  • changelog not required as nothing changes for the end user
  • backport not required
  • tests not required as no new code is introduced and this part is already tested by existing ones

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
@valeriosetti valeriosetti added 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 size-s Estimated task size: small (~2d) priority-high High priority - will be reviewed soon labels Oct 6, 2023
@valeriosetti valeriosetti requested a review from mpg October 6, 2023 11:24
@valeriosetti valeriosetti self-assigned this Oct 6, 2023
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
@valeriosetti valeriosetti removed the needs-ci Needs to pass CI tests label Oct 12, 2023
Copy link
Contributor

@mpg mpg left a comment

Choose a reason for hiding this comment

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

LGTM, but I suggested a small improvement.

@@ -676,7 +676,11 @@ static int ssl_check_key_curve(mbedtls_pk_context *pk,
uint16_t *curves_tls_id)
{
uint16_t *curr_tls_id = curves_tls_id;
#if defined(MBEDTLS_PK_USE_PSA_EC_DATA)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion: use mbedtls_pk_get_group_id().

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice! I added that function but I totally forgot about it :D

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
@valeriosetti valeriosetti requested a review from mpg October 16, 2023 11:52
Copy link
Contributor

@mpg mpg left a comment

Choose a reason for hiding this comment

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

LGTM

@gabor-mezei-arm gabor-mezei-arm self-requested a review October 17, 2023 10:23
Copy link
Contributor

@gabor-mezei-arm gabor-mezei-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

@gabor-mezei-arm gabor-mezei-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, needs-reviewer This PR needs someone to pick it up for review labels Oct 18, 2023
@gilles-peskine-arm gilles-peskine-arm added this pull request to the merge queue Oct 18, 2023
Merged via the queue into Mbed-TLS:development with commit f6f4695 Oct 18, 2023
1 check passed
@valeriosetti valeriosetti deleted the issue8263 branch December 6, 2024 06:01
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 priority-high High priority - will be reviewed soon size-s Estimated task size: small (~2d)
Projects
Development

Successfully merging this pull request may close these issues.

Fix dependencies of mbedtls_pk_ec_ro and mbedtls_pk_ec_rw
4 participants