-
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
Build fails with unset MBEDTLS_DHM_C but MBEDTLS_USE_PSA_CRYPTO set #9188
Comments
…set (fixes Mbed-TLS#9188) Signed-off-by: Michael Schuster <michael@schuster.ms>
To reproduce this warning, you need:
We don't get this warning in the CI because we don't have a build with all of these characteristics. Checking the outcome file from #9172, only the following builds have
So we have a test coverage gap. I need to think a little what new configuration(s) we should be testing. Considering how the relative sizes of various things in TLS depend on whether RSA or FFDH are enabled, there are potential buffer overflows that we aren't checking. |
…set (fixes Mbed-TLS#9188) Signed-off-by: Michael Schuster <michael@schuster.ms>
… set (fixes Mbed-TLS#9188) Avoid compiler warning about size comparison (like in commit 7910cdd): Clang builds fail, warning about comparing uint8_t to a size that may be >255. Signed-off-by: Michael Schuster <michael@schuster.ms>
… set (fixes Mbed-TLS#9188) Avoid compiler warning about size comparison (like in commit 7910cdd): Clang builds fail, warning about comparing uint8_t to a size that may be >255. Signed-off-by: Michael Schuster <michael@schuster.ms>
… set (fixes Mbed-TLS#9188) Avoid compiler warning about size comparison (like in commit 7910cdd): Clang builds fail, warning about comparing uint8_t to a size that may be >255. Signed-off-by: Michael Schuster <michael@schuster.ms>
… set (fixes Mbed-TLS#9188) Avoid compiler warning about size comparison (like in commit 7910cdd): Clang builds fail, warning about comparing uint8_t to a size that may be >255. Signed-off-by: Michael Schuster <michael@schuster.ms>
… set (fixes Mbed-TLS#9188) Avoid compiler warning about size comparison (like in commit 7910cdd): Clang builds fail, warning about comparing uint8_t to a size that may be >255. Signed-off-by: Michael Schuster <michael@schuster.ms>
Summary
Build fails with the following custom configuration:
MBEDTLS_USE_PSA_CRYPTO
MBEDTLS_DHM_C
MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
System information
Mbed TLS version: v3.6.0 and development branch
Operating system and version: macOS 12.6
Configuration: please see "Steps to reproduce" section below
Compiler and options: Apple clang version 14.0.0 (clang-1400.0.29.202), Xcode 14.2 (14C18), SDK:
MacOSX13.1.sdk
Expected behavior
Compilation should work with
MBEDTLS_USE_PSA_CRYPTO
set, regardless ofMBEDTLS_DHM_C
being set or unset.Actual behavior
Build fails with following output:
Steps to reproduce
development
ormbedtls-3.6
branchrelease
using CMakeAdditional information
I've already created a working local patch and the PR will follow soon.
The text was updated successfully, but these errors were encountered: