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

Update the curves domain to use PSA macros in depends.py #9633

Conversation

gabor-mezei-arm
Copy link
Contributor

@gabor-mezei-arm gabor-mezei-arm commented Sep 24, 2024

Description

In depends.py use PSA macros for the curves domain.

Resolve #9143

PR checklist

Please remove the segment/s on either side of the | symbol as appropriate, and add any relevant link/s to the end of the line.
If the provided content is part of the present PR remove the # symbol.

  • changelog not required because: test related changes
  • development PR provided: this is
  • framework PR not required
  • 3.6 PR not required because: 4.0 related changes
  • 2.28 PR not required because: 4.0 related changes
  • tests provided

@gabor-mezei-arm gabor-mezei-arm added enhancement needs-ci Needs to pass CI tests needs-preceding-pr Requires another PR to be merged first size-s Estimated task size: small (~2d) component-test Test framework and CI scripts priority-high High priority - will be reviewed soon labels Sep 24, 2024
@gabor-mezei-arm gabor-mezei-arm self-assigned this Sep 24, 2024
@gabor-mezei-arm gabor-mezei-arm force-pushed the 9143_update_depends.py_curves_domain branch from 78e7e8d to 33b3f53 Compare December 12, 2024 15:33
@gabor-mezei-arm gabor-mezei-arm removed the needs-preceding-pr Requires another PR to be merged first label Dec 12, 2024
@minosgalanakis minosgalanakis self-requested a review December 16, 2024 15:25
@gabor-mezei-arm gabor-mezei-arm force-pushed the 9143_update_depends.py_curves_domain branch from 33b3f53 to a8bfee0 Compare December 17, 2024 13:12
minosgalanakis
minosgalanakis previously approved these changes Dec 17, 2024
Copy link
Contributor

@minosgalanakis minosgalanakis 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

@ronald-cron-arm ronald-cron-arm left a comment

Choose a reason for hiding this comment

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

One thing I am not sure about. Otherwise could you please rebase? I would like to compare the outcomes.csv to one of the nightly ones but the base is too old to get anything close to it in the CI.

tests/scripts/depends.py Outdated Show resolved Hide resolved
@gabor-mezei-arm gabor-mezei-arm force-pushed the 9143_update_depends.py_curves_domain branch from 44bce72 to 64a264f Compare January 10, 2025 17:07
@gabor-mezei-arm gabor-mezei-arm removed the needs-ci Needs to pass CI tests label Jan 13, 2025
minosgalanakis
minosgalanakis previously approved these changes Jan 14, 2025
Copy link
Contributor

@minosgalanakis minosgalanakis 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

@ronald-cron-arm ronald-cron-arm left a comment

Choose a reason for hiding this comment

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

Two things I am not sure about.

tests/scripts/depends.py Outdated Show resolved Hide resolved
tests/scripts/depends.py Show resolved Hide resolved
Copy link
Contributor

@ronald-cron-arm ronald-cron-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, thanks. @minosgalanakis please have another look, thanks.

Exclude the SECP224K1 curve due it is unstable via the PSA API.

Signed-off-by: Gabor Mezei <[email protected]>
Instead of using the `crypto_knowledge.py`, use basic symbol matching for the
`PSA_WANT_ECC_*` macros to search for in the `curves` domain of `depend.py`.

Signed-off-by: Gabor Mezei <[email protected]>
The `PSA_WANT_ALG_SECP_K1_224` symbol has been removed.

Signed-off-by: Gabor Mezei <[email protected]>
Signed-off-by: Gabor Mezei <[email protected]>
@gabor-mezei-arm
Copy link
Contributor Author

Rebased due to CI issues

Copy link
Contributor

@ronald-cron-arm ronald-cron-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

@minosgalanakis minosgalanakis left a comment

Choose a reason for hiding this comment

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

LGTM

@minosgalanakis minosgalanakis added the approved Design and code approved - may be waiting for CI or backports label Jan 27, 2025
@ronald-cron-arm ronald-cron-arm added this pull request to the merge queue Jan 29, 2025
Merged via the queue into Mbed-TLS:development with commit d883ba7 Jan 29, 2025
5 of 6 checks passed
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 component-test Test framework and CI scripts enhancement priority-high High priority - will be reviewed soon size-s Estimated task size: small (~2d)
Development

Successfully merging this pull request may close these issues.

Update the curves domain to use PSA macros in depends.py
4 participants