-
Notifications
You must be signed in to change notification settings - Fork 18
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. |
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. |
@@ -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 |
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.
Also the commit message that introduces this change seems unrelated with the change itself
62367e8
to
84728c6
Compare
80c7f51
to
8fb6dea
Compare
8fb6dea
to
89efe65
Compare
This commit adds a new check-names component to TF-PSA-Crypto. Signed-off-by: Harry Ramsey <[email protected]>
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]>
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]>
This commit removes Mbed TLS defined guards; MBEDTLS_X509_CREATE_C and MBEDTLS_X509_USE_C in favour of TF-PSA-Crypto defined guards MBEDTLS_ASN1_CREATE_C and MBEDTLS_ASN1_USE_C. Signed-off-by: Harry Ramsey <[email protected]>
This commit remove an MbedTLS specific macro MBEDTLS_X509_REMOVE_INFO as it is not defined by TF-PSA-Crypto. Signed-off-by: Harry Ramsey <[email protected]>
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]>
89efe65
to
775536b
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.
Only one small thing, one comment from @valeriosetti to address as well I think.
|
||
/** | ||
* Uncomment to enable using new bignum code in the ECC modules. | ||
* | ||
* \warning This is currently experimental, incomplete and therefore should not | ||
* be used in production. | ||
*/ | ||
//#define MBEDTLS_ECP_WITH_MPI_UINT | ||
// #define MBEDTLS_ECP_WITH_MPI_UINT |
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_WITH_MPI_UINT | |
//#define MBEDTLS_ECP_WITH_MPI_UINT |
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: