Skip to content

Commit 77b9022

Browse files
michalek-notomi-font
authored andcommitted
[nrf noup] boot: bootutil: encrypted_psa: fix mbedTLS header
undefined MBEDTLS_OID_EC_ALG_UNRESTRICTED And enable MBEDTLS_DECLARE_PRIVATE_IDENTIFIERS otherwise build fails because of missing types in the inclusion of this new header file. Signed-off-by: Mateusz Michalek <mateusz.michalek@nordicsemi.no> Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
1 parent d6caa18 commit 77b9022

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

boot/bootutil/src/encrypted_psa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#define MBEDTLS_ASN1_PARSE_C
1515

1616
#include "bootutil/crypto/sha.h"
17-
#include "mbedtls/oid.h"
17+
#include "crypto_oid.h"
1818
#include "mbedtls/asn1.h"
1919

2020
#include "bootutil/image.h"

boot/zephyr/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ config BOOT_ED25519_PSA_DEPENDENCIES
9898
select PSA_WANT_ECC_TWISTED_EDWARDS_255
9999
select PSA_WANT_ECC_MONTGOMERY_255
100100
select PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT if !PSA_CORE_LITE
101+
select MBEDTLS_DECLARE_PRIVATE_IDENTIFIERS if BOOT_ENCRYPT_X25519
101102
help
102103
Dependencies for ed25519 signature
103104

@@ -127,6 +128,7 @@ config BOOT_ECDSA_PSA_DEPENDENCIES
127128
select PSA_WANT_ALG_ECDSA
128129
select PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT if !PSA_CORE_LITE
129130
select PSA_WANT_ECC_SECP_R1_256
131+
select MBEDTLS_DECLARE_PRIVATE_IDENTIFIERS if BOOT_ENCRYPT_EC256
130132
help
131133
Dependencies for ECDSA signature
132134

0 commit comments

Comments
 (0)