-
Notifications
You must be signed in to change notification settings - Fork 3k
Update feature/mbedtls from mbedtls feature-opaque-keys branch #6176
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
Update feature/mbedtls from mbedtls feature-opaque-keys branch #6176
Conversation
@0xc0170 please add @gilles-peskine-arm and @AndrzejKurek as reviewers to confirm that changes belong to mbedtls/feature-opaque-keys branch. |
ARM Internal Ref: IOTSSL-2106 |
As in #5973, we'll need to update the Mbed TLS code to 2.7.1. Step 1: merge 2.7.1 into the feature branch on the Mbed TLS side (Mbed-TLS/mbedtls#1398). |
@0xc0170 can you please run morph test on it. Please |
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.
This is a faithful import of the Mbed TLS feature-opaque-keys branch (all files in inc
and src
are identical except for inc/config.h
which is the result of running importer/adjust-config.sh
).
/morph build |
Build : FAILUREBuild number : 1232 |
@0xc0170 @cmonr Can you please help with reproducing following log: Here We do not understand how above build environment is configured. There is something unusual causing the error.
|
@mazimkhan I haven't followed everything, but it looks like the problem is caused by a binary that was built against mbedtls compiled with a different configuration.
Either this binary needs to be rebuilt against the current version of Mbed TLS, with the official Mbed TLS configuration (which doesn't include MD4 (‽), MD5 or SHA-1); or the linker scripts need to be modified so that these symbols aren't exported. |
@gilles-peskine-arm the undefined reference complaint comes from |
Ok I see the problem Ublox inherits TARGET_STM. Its header is here https://github.com/ARMmbed/mbed-os/blob/master/features/mbedtls/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F437xG/mbedtls_device.h This header defines
|
Fixed build issues by
@0xc0170 @cmonr mbedtls imported here is not a true copy of mbedtls/feature-opaque-keys. Some extra commits are for resolving breaking API changes done in mbedtls 2.7.0 on which feature-opaque-keys is based. This does not impact the purpose of testing opaque keys feature. Please merge it. Once the API incompatibility issue is fixed, a fresh import of mbedtls can be done. |
/morph build |
Build : FAILUREBuild number : 1246 |
/morph build |
Build : FAILUREBuild number : 1247 |
/morph build |
Build : SUCCESSBuild number : 1249 Triggering tests/morph test |
AWS-CI uVisor Build & Test — Failed |
Test : SUCCESSBuild number : 1047 |
Exporter Build : SUCCESSBuild number : 914 |
/morph uvisor-test |
This PR updates branch feature-opaque-keys with mbedtls feature-opaque-keys branch. For demonstrating mbedtls opaque keys feature with mbed-os. Related PR #6104.