-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Backport 2.28] Remove radix argument from bignum test functions #6071
[Backport 2.28] Remove radix argument from bignum test functions #6071
Conversation
All uses have radix argument removed, using script. Signed-off-by: Werner Lewis <[email protected]>
Cases where radix was explictly declared are removed in most cases, replaced using script. bignum arguments are represented as hexadecimal strings. This reduces clutter in test data and makes bit patterns clearer. Signed-off-by: Werner Lewis <[email protected]>
Functions which are not covered by script, changes made to use radix 16. Signed-off-by: Werner Lewis <[email protected]>
Signed-off-by: Werner Lewis <[email protected]>
Signed-off-by: Werner Lewis <[email protected]>
Test data which is compared as a hex string now uses upper case to match output of mbedtls_mpi_write_string() output. This removes usage of strcasecmp(). Signed-off-by: Werner Lewis <[email protected]>
29a8000
to
df33684
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.
I've verified that the constants that have had their radixes changed have equivalent values, and that those that were originally in hex are unchanged.
Faithful backport.
LGTM
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 is a faithful backport of #6070. LGTM
CI was passing, not sure why it failed, so I've re-run the job |
Description
Backport of #6070.
Same scripts were ran on 2.28 for most replacements, with manual changes applied as required.
Status
READY