-
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
Driver-only ecdsa wrapup #7245
Driver-only ecdsa wrapup #7245
Conversation
Having ECDSA in PSA doesn't help if we're not using PSA from TLS 1.2... Also, move the definition of PSA_HAVE_FULL_ECDSA outside the MBEDTLS_PSA_CRYPTO_CONFIG guards so that it is available in all cases. Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
Turns out TLS 1.3 is using the PK layer for signature generation & verification, and the PK layer is influenced by USE_PSA_CRYPTO. Also update docs/use-psa-crypto.md accordingly. Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
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 only have one generic question but the PR looks OK to me
#if defined(PSA_WANT_ALG_ECDSA) && defined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR) && \ | ||
defined(PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY) | ||
#define PSA_HAVE_FULL_ECDSA 1 | ||
#endif | ||
|
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'm OK with moving this code forward in the file, but I was wondering: is it possible to have PSA_WANT
symbols when MBEDTLS_PSA_CRYPTO_CONFIG
is not defined?
I mean, without it we don't include crypto_config.h
and also most of the config_psa.h
is also skipped (at least the part which automatically sets PSA_WANT
symbols).
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.
We do have PSA_WANT
whether MBEDTLS_PSA_CRYPTO_CONFIG
is defined or not. The difference that MBEDTLS_PSA_CRYPTO_CONFIG
makes is whether PSA_WANT
symbols are calculated from MBEDTLS
symbols or the other way round.
(I don't know how this applies specifically here.)
Open CI is fully green, so no need to wait for Internal to finish. |
Description
This PR:
Gatekeeper checklist
check_config.h
and ChangeLog