-
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
MBEDTLS_POLY1305_C and MBEDTLS_CHACHA20_C are needed when PSA_WANT_ALG_CHACHA20_POLY1305 is defined #5949
MBEDTLS_POLY1305_C and MBEDTLS_CHACHA20_C are needed when PSA_WANT_ALG_CHACHA20_POLY1305 is defined #5949
Conversation
e015282
to
aed962b
Compare
@@ -436,6 +436,7 @@ extern "C" { | |||
#if !defined(MBEDTLS_PSA_ACCEL_ALG_CHACHA20_POLY1305) | |||
#if defined(PSA_WANT_KEY_TYPE_CHACHA20) | |||
#define MBEDTLS_CHACHAPOLY_C | |||
#define MBEDTLS_POLY1305_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.
MBEDTLS_CHACHA20_C
is also missing here, can you please add it?
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.
sure
aed962b
to
bdb7005
Compare
MBEDTLS_POLY1305_C and MBEDTLS_CHACHA20_C are needed when PSA_WANT_ALG_CHACHA20_POLY1305 is defined Signed-off-by: Summer Qin <[email protected]>
bdb7005
to
9f2596f
Compare
Config change to reproduce the problem:
|
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.
Looks good.
With MBEDTLS_PSA_ACCEL_KEY_TYPE_CHACHA20
and MBEDTLS_CHACHA20_C
will also be undefined, so the additional line is needed.
I don't think that a changelog entry is needed, as it seems that it's more of an internal bug in dependencies and if someone defined PSA_WANT_ALG_CHACHA20_POLY1305
, MBEDTLS_CHACHA20_C
and MBEDTLS_POLY1305_C
was probably expected.
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
MBEDTLS_POLY1305_C is needed when PSA_WANT_ALG_CHACHA20_POLY1305 is defined
Signed-off-by: Summer Qin [email protected]
Status
READY
Todos
Steps to test or reproduce
Outline the steps to test or reproduce the PR here.