Improve robustness and testing of mbedtls_mpi_copy #346

Merged
gilles-peskine-arm merged 7 commits from mpi_copy_shrink into development 2020-02-06 02:52:02 -06:00
gilles-peskine-arm commented 2020-01-20 14:23:23 -06:00 (Migrated from github.com)

Also improve testing of mbedtls_mpi_swap.

The robustness improvement could plausibly fix a bug in some applications, so this should be backported.

Also improve testing of `mbedtls_mpi_swap`. The robustness improvement could plausibly fix a bug in some applications, so this should be backported.
mpg (Migrated from github.com) reviewed 2020-01-21 04:44:22 -06:00
mpg (Migrated from github.com) left a comment
No description provided.
Looks good to me. I just left a suggestion for improving a comment, which you may choose to ignore as perhaps my initial confusion would be best fixed by me getting more sleep than by rewording the comment.
mpg commented 2020-01-21 05:02:27 -06:00 (Migrated from github.com)

I checked the CI results, and the only failures are in Mbed OS testing, which is expected as Mbed OS needs updating, so it's as good as a pass.

I checked the CI results, and the only failures are in Mbed OS testing, which is expected as Mbed OS needs updating, so it's as good as a pass.
mpg (Migrated from github.com) reviewed 2020-01-22 02:25:44 -06:00
mpg (Migrated from github.com) left a comment
No description provided.
LGTM. Thanks for improving the comment.
mpg commented 2020-01-22 02:27:19 -06:00 (Migrated from github.com)

For some reason the CI had directly reported failure without actually running any test. I'm restarting it.

For some reason the CI had directly reported failure without actually running any test. I'm restarting it.
yanesca (Migrated from github.com) requested changes 2020-02-03 08:55:11 -06:00
yanesca (Migrated from github.com) left a comment

I have two minor suggestions for improvement.

I have two minor suggestions for improvement.
@ -292,37 +205,106 @@ mbedtls_mpi_cmp_abs:10:"2":10:"-3":-1
Base test mbedtls_mpi_cmp_abs (Mix values) #3
yanesca (Migrated from github.com) commented 2020-02-03 08:35:44 -06:00

I am not sure I understand this description, could you please make it slightly more verbose?

I am not sure I understand this description, could you please make it slightly more verbose?
@ -629,22 +604,40 @@ exit:
/* END_CASE */
yanesca (Migrated from github.com) commented 2020-02-03 08:46:04 -06:00

Our existing tests are using big endian input and I think it would be less confusing to have consistency in this matter. Why do you prefer little endian by the way?

Our existing tests are using big endian input and I think it would be less confusing to have consistency in this matter. Why do you prefer little endian by the way?
yanesca (Migrated from github.com) approved these changes 2020-02-03 09:25:21 -06:00
yanesca (Migrated from github.com) left a comment

LGTM.

LGTM.
mpg (Migrated from github.com) approved these changes 2020-02-04 01:57:12 -06:00
mpg (Migrated from github.com) left a comment

LGTM

LGTM
yanesca commented 2020-02-04 05:22:17 -06:00 (Migrated from github.com)

Checked the CI and it only fails on Mbed OS with known issues that are unrelated to this PR.

Checked the CI and it only fails on Mbed OS with known issues that are unrelated to this PR.
mpg commented 2020-02-06 02:51:30 -06:00 (Migrated from github.com)

The backport are now ready for merge, and so is this.

The backport are now ready for merge, and so is this.
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-ARMmbed/mbed-crypto!346
No description provided.