Bugs and un-flagged code in psa_crypto.c breaks all the builds for LoRaWAN.
The problem is that the LoRaWAN builds remove MBEDTLS_GCM_C by undefining it in its Mbedtls configuration file. psa_crypto.c seems to use MBEDTLS_CCM_C or MBEDTLS_GCM_C and at some places it is correctly flagged. However, there are many places where it is not properly flagged, e.g.,
https://github.com/ARMmbed/mbed-os/blob/master/features/mbedtls/mbed-crypto/platform/TARGET_PSA/COMPONENT_PSA_SRV_IMPL/psa_crypto.c#L3149 here the check is needed for GCM not for CCM.
https://github.com/ARMmbed/mbed-os/blob/master/features/mbedtls/mbed-crypto/platform/TARGET_PSA/COMPONENT_PSA_SRV_IMPL/psa_crypto.c#L3265 here the GCM is not flagged at all.
This is a blocker for LoRaWAn builds. Please fix asap.
[ ] Question
[ ] Enhancement
[X] Bug
It seems there are plenty of issues related to this issue and there is a fix PR open https://github.com/ARMmbed/mbedtls/pull/2241/commits/7d6f48a058b0c93e95383fa5d9a0b8da62b617b6 @0xc0170 What is the status on this PR ? Our builds are blocked because of this.
I believe this should fix it https://github.com/ARMmbed/mbed-os/pull/8926 (can you test?)
The fix will be in 5.11rc2
@hasnainvirk How come this was not caught earlier (PR test or nightly) ?
cc @OPpuolitaival
@0xc0170 I am not sure why we didn't see it before. Let me try with the PR you mentioned.
@0xc0170 I can confirm that the #8926 fixes the issue.
Looks like a duplicate of #8893
Internal Jira reference: https://jira.arm.com/browse/MBOCUSTRIA-238
@hasnainvirk Could you please check if the TLS update #8926 fixes this ?
@hasnainvirk @AnttiKauppila any update ?
@adbridge All our Lora CI jobs are passing so this seems to have fixed the issue.
@hasnainvirk is on a sick leave so can you close this issue Anna?
I'll close this as resolved