-
Notifications
You must be signed in to change notification settings - Fork 17
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
Enable check names component #143
base: development
Are you sure you want to change the base?
Conversation
The failures reported here are to do with the test successfully running but have been propogated to TF-PSA-Crypto. |
I am not sure to understand. What is needed for the new component |
e0066c1
to
ffaade8
Compare
Sorry, there was an extreme number of errors much higher than expected. I forgot to remove code from |
41311a8
to
12a649f
Compare
Regarding
in ./drivers/builtin/src/check_crypto_config.h, this should rather be in
|
Regarding MBEDTLS_ERR_SSL_CRYPTO_IN_PROGRESS in |
Regarding psa_util_internal.h:
can be moved to |
In
can just be removed it seems. |
In crypto_config.h the note:
can be just removed. We already have the same note in MBEDTLS_TIMING_C documentation in mbedtls_config.h. |
12a649f
to
35d2367
Compare
This commit adds a new check-names component to TF-PSA-Crypto. Signed-off-by: Harry Ramsey <[email protected]>
35d2367
to
881a82d
Compare
Just need to create a Mbed TLS pull request where I add the necessary checks and this can be reviewed. |
Regarding the MBEDTLS_SSL_MAX_... symbols in cipher.h, after some discussions with @gilles-peskine-arm, I propose to remove the comments in cipher.h and add some unit tests in test_suite_ssl that assert that |
I'm actually not sure if those tests are still relevant. The comments date back from before
In practice the values defined in So I'd be ok with not adding any assertions. And I'm a bit doubtful about adding assertions to 4.0 that mention the deprecated constants from The PSA values to compare against would be:
|
Do you mean: |
Oops, yes, I had the comparisons the wrong way round. I edited my comment. |
I don't think those tests would be logically correct. It may very well be that in the future we'll add a cipher with variable IV length and TLS only uses a certain IV size that's smaller than the maximum, and then So I'm actually opposed to adding those assertions. |
Thanks, I think I understand better the ins and outs of the MBEDTLS_SSL_MAX_ macros now. If I understand correctly, the comments in cipher.h stating that MBEDTLS_MAX_ macros should be kept in sync with the MBEDTLS_SSL_MAX_ ones in ssl_misc.h are actually at least misleading thus we are just going to remove them. |
@@ -1675,7 +1665,7 @@ | |||
* | |||
* Uncomment this macro to enable restartable ECC computations. | |||
*/ | |||
//#define MBEDTLS_ECP_RESTARTABLE | |||
// #define MBEDTLS_ECP_RESTARTABLE |
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.
// #define MBEDTLS_ECP_RESTARTABLE | |
//#define MBEDTLS_ECP_RESTARTABLE |
881a82d
to
266bc0c
Compare
This commit removes macro in the crypto_config.h which relate to Mbed TLS. In particular macros like MBEDTLS_TLS* from TF-PSA-Crypto. Signed-off-by: Harry Ramsey <[email protected]>
This commit removes references to the macro MBEDTLS_ERR_SSL_CRYPTO_IN_PROGRESS from TF-PSA-Crypto as it is defined more appropriately in Mbed TLS. Signed-off-by: Harry Ramsey <[email protected]>
This commit removes references to the macro MBEDTLS_TIMING_C from TF-PSA-Crypto as it is defined more appropriately in Mbed TLS. Signed-off-by: Harry Ramsey <[email protected]>
This commit moves macro checks specifically for Mbed TLS from TF-PSA-Crypto to Mbed TLS where they more approriately belong. Signed-off-by: Harry Ramsey <[email protected]>
This commit removes MBEDTLS_SSL_TLS_C, MBEDTLS_X509_USE_C and MBEDTLS_X509_CREATE_C from TF-PSA-Crypto to Mbed TLS where they more appropriately belong. Signed-off-by: Harry Ramsey <[email protected]>
266bc0c
to
62367e8
Compare
This commit removes comments which are no longer accurate about keeping IV and block lengths the same between Mbed TLS and TF-PSA-Crypto. Signed-off-by: Harry Ramsey <[email protected]>
62367e8
to
84728c6
Compare
84728c6
to
ccdd43d
Compare
This commit updates the framework for check-names.py to independently run for TF-PSA-Crypto.amework for check-names.py Signed-off-by: Harry Ramsey <[email protected]>
ccdd43d
to
fc8e26c
Compare
Enable check names component for TF-PSA-Crypto. Closes #52.
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.
Notes for the submitter
Please refer to the contributing guidelines, especially the
checklist for PR contributors.
Help make review efficient: