-
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
Move MbedTLS Macros #9915
Move MbedTLS Macros #9915
Conversation
eb8e380
to
378cdec
Compare
3805371
to
f24e4d4
Compare
library/ssl_misc.h
Outdated
@@ -20,6 +20,9 @@ | |||
|
|||
#include "psa/crypto.h" | |||
#include "psa_util_internal.h" | |||
#if defined(MBEDTLS_USE_PSA_CRYPTO) || defined(MBEDTLS_SSL_PROTO_TLS1_3) |
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.
Please note that MBEDTLS_USE_PSA_CRYPTO was recently removed from the development
branch as it's assumed to be always set (#9923). Therefore I think we can just remove the guard here.
include/mbedtls/mbedtls_config.h
Outdated
@@ -1159,6 +1159,7 @@ | |||
* Module: library/x509_create.c | |||
* | |||
* Requires: MBEDTLS_BIGNUM_C, MBEDTLS_OID_C, MBEDTLS_PK_PARSE_C, | |||
* MBEDTLS_MD_C |
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.
It seems that the commit message that introduced this change should be updated because it's not related to what the commit actually implements.
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.
Sorry, I forgot to select the "request for change" box before submitting the review.
2e396c4
to
c20fb07
Compare
c20fb07
to
f51bda4
Compare
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 <harry.ramsey@arm.com>
f51bda4
to
c86cc62
Compare
Given that MBEDTLS_X509_USE_C now depends on MBEDTLS_MD_C, in crypto-config-suite-b.h we should now enable |
The issue with test_psa_crypto_config_accel_hmac is more problematic. We will need to discuss that one with @mpg probably. |
c86cc62
to
8f5963d
Compare
8f5963d
to
991c34e
Compare
Discussing this with @mpg, actually x509.c (MBEDTLS_X509_USE_C) and x509_create.c (MBEDTLS_X509_CREATE_C) do not depend on MD. In x509 library PKCS7 still depends on MD but not the x509*.c modules. Thus we should just remove the commits adding these dependencies. |
991c34e
to
f467dbf
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
1a7e446
to
29c68a8
Compare
Approved by Mbed-TLS/mbedtls#9915 CI, merging.
This commit updates the TF-PSA-Crypto pointer to include the moved config files. Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
This commit updates the framework pointer to include changes to enable check_names.py to run independently for TF-PSA-Crypto and Mbed TLS. Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
29c68a8
to
93a496e
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
Move SSL macros from Mbed TLS to TF-PSA-Crypto.
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: