-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Migrate DHE test cases to ECDHE #9916
Conversation
8c93c9b
to
a7ba35c
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
I did notice however that these lines in test_suite_ssl.data
are present althought I am not sure if they should be removed.
Test configuration of groups for DHE through mbedtls_ssl_conf_curves()
conf_curve:
Test configuration of groups for DHE through mbedtls_ssl_conf_groups()
conf_group:
Oh, good catch! IMO those tests seems to be DHE specific, so they can just be removed. I'll update the commits. |
a7ba35c
to
4c1a996
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
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 done a full review. I've some questions.
4c1a996
to
ddf47c5
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
ddf47c5
to
489ed07
Compare
@Harry-Ramsey sorry to dismiss your review, but I had to update 61f4549 because I forgot to update |
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 looks almost good to me. Two last comments.
489ed07
to
4fd532f
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. Do you plan to backport the new ECDHE-RSA tests to 3.6?
According to the requirement from #9688, i.e.
I think this is required indeed. Now that I have some approval I can start working on it (I was waiting to get to a decent point with this PR, so that I don't need to refresh the backport continuously). |
But I just saw that there are also conflicts in this PR with |
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Use ECDHE-RSA instead of DHE-RSA. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
These tests were specific for DHE-RSA (which is being removed on development branch) and also for each of them there was already the ECDHE-RSA counterpart available. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
These tests are about EC curves/groups, not DH ones, so the description should be updated accordingly. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Adapted tests do not already have an ECDHE-RSA test available. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
For these ones there is no ECDHE alternative as they are testing specific features of DHE. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Remove tests which are forcing DHE-RSA, but for which an ECDHE-RSA alternative already exists. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
4fd532f
to
0ebd6de
Compare
PR Mbed-TLS#9916 adapt some DHE-RSA tests to use ECDHE-RSA instead. However, since DHE-RSA is not deprecated in mbedtls-3.6 branch, this commit adds these new tests alongside DHE-RSA ones intead of replacing them in order to increase test coverage. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Done here #9937 |
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
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.
The rebase looks good to me. Thanks.
PR Mbed-TLS#9916 adapt some DHE-RSA tests to use ECDHE-RSA instead. However, since DHE-RSA is not deprecated in mbedtls-3.6 branch, this commit adds these new tests alongside DHE-RSA ones intead of replacing them in order to increase test coverage. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
ed44508
Description
Resoves #9688
PR checklist