mcuboot
mcuboot copied to clipboard
bootutil/crypto: Fix x25519 not compiling with mbedTLS
Found on Zephyr wwhile trying to compile EDCSA25519 support with -DCONFIG_BOOT_ED25519_MBEDTLS=y, where compilation eneded up in errors.
It also seems that configuration has been dead for longer since the CMakeLists.txt has been needed to disable TinyCrypt source when mbedTLS is selected for ED25519.
This is addition to https://github.com/mcu-tools/mcuboot/pull/1937/, which addresses p256
It seems to break Espressif that uses the internal module, different fix is needed for that. The https://github.com/mcu-tools/mcuboot/pull/1937 should be facing the same problem, but the CI does not run there.
Heh.. this PR breaks TinyCrypt... seems that CONFIG_BOOT_ED25519_TINYCRYPT=y requires mbedTLS for asn1...
The CMake changes looks fine, I don't understand why you would need to remove the usages of MBEDTLS_CONTEXT_MEMBER.
The ASN stuff got fixed here: https://github.com/mcu-tools/mcuboot/pull/1989