-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
mbed TLS: Inconsistent Kconfig option names #22421
Comments
I could either prefix each Kconfig with
As for the Kconfig mbedTLS options - everyone is free the extend the Kconfig option list per his/hers requirements. The original file was created to cover the functionalities needed by the TLS sockets implementation and is gradually updated with new features. Feel free to contribute if you find something missing. |
Looks good. I'm fine with the proposed naming fixes. |
Update mbedTLS commit along with the following fixes: * Fix naming inconsistencies in some cipher modes, to match core mbedTLS configs * Add Kconfig to enable CTR cipher mode Fixes zephyrproject-rtos#22421 Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
Update mbedTLS commit along with the following fixes: * Fix naming inconsistencies in some cipher modes, to match core mbedTLS configs * Add Kconfig to enable CTR cipher mode Fixes #22421 Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
Update mbedTLS commit along with the following fixes: * Fix naming inconsistencies in some cipher modes, to match core mbedTLS configs * Add Kconfig to enable CTR cipher mode Fixes zephyrproject-rtos#22421 Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
While working on #22407 I noticed some naming inconsistencies in mbed TLS Kconfig options:
MBEDTLS_CCM_C
was translated toCONFIG_MBEDTLS_CIPHER_CCM_ENABLED
, butMBEDTLS_GCM_C
was translated toCONFIG_MBEDTLS_CIPHER_MODE_GCM_ENABLED
, whileMBEDTLS_CIPHER_MODE_CBC
was translated toCONFIG_MBEDTLS_CIPHER_CBC_ENABLED
, butMBEDTLS_CIPHER_MODE_XTS
was translated toCONFIG_MBEDTLS_CIPHER_MODE_XTS_ENABLED
.Also, some mbed TLS cipher mode options cannot be set by Kconfig, like
MBEDTLS_CIPHER_MODE_CFB
,MBEDTLS_CIPHER_MODE_OFB
andMBEDTLS_CIPHER_MODE_CTR
. That's probably the reason why the current version of the mbed TLS shim driver does not support AES-CTR mode:zephyr/drivers/crypto/crypto_mtls_shim.c
Lines 251 to 254 in 814654a
zephyr/drivers/crypto/crypto_mtls_shim.c
Lines 290 to 291 in 814654a
The text was updated successfully, but these errors were encountered: