-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Conversion function from ecp group to PSA curve #8664
Conversion function from ecp group to PSA curve #8664
Conversation
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.
Looking pretty good. Apart from minor things, the only non-trivial point is about removal of bit_size_is_sloppy
.
Also, the CI has quite a lot of things to say. I didn't check, but since I saw a test case failing in the first component, I assume we'll have a lot of occurrences of the same failure:
I suggest we fix this one first, then check if there were others hidden in the results. |
Unfortunately yes. This is due to the fact that I tried to improve Side note: those tests are supposed to be skipped (according to their description), but they are executed because |
93e8fb9
to
5c9fbfc
Compare
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.
LGTM, thanks!
I had a look at the stability checks results, and found them OK:
|
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.
This mostly looks good, and fulfils the requirements for these functions in #8657 as it currently stands. I'm requesting some minor improvements to the documentation and to the tests. Also an optional suggestion for a minor simplification in the implementation.
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
…_functions_fail() Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
The new name better reflects the fact that the 1st parameter is just the EC family and not the curve. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
0fa34db
to
500b92b
Compare
Rebase done. Almost all commits were kept unchanged a part from:
|
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.
Just o note that I've checked the rebase and additional commit and I'm happy with those. Will do a final (hopefully!) round of review when the CI is green.
I suspect that the OpenCI encountered several errors in the last run as there are many yellow icons there. Can you please restart it? |
I've restarted the CI. |
Since this curve is not supported in PSA (and it will not ever be in the future), we save a few bytes. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
500b92b
to
19ec9e4
Compare
I forced pushed the last commit because the OpenCI failed again in "Pre-test checks". |
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.
LGTM, thanks!
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.
Looks good to me.
The ABI differences reported by the CI are about mbedtls_ecc_group_of_psa
, which was previously documented as an experimental function, so not actually part of the public ABI, thus a false positive.
c9077cc
Resolves #7764
Depends on #8668
PR checklist