Skip to content

Commit 74c3bab

Browse files
committed
crypto: ecdh: define NUM_ECC_BYTES for Mbed TLS
This is a define from Tinycrypt that was being used in the Mbed TLS EC256 encrypted images implementation so properly define it. Signed-off-by: Fabio Utzig <utzig@apache.org>
1 parent b6d75e7 commit 74c3bab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

boot/bootutil/include/bootutil/crypto/ecdh_p256.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ static inline int bootutil_ecdh_p256_shared_secret(bootutil_ecdh_p256_context *c
6868
#endif /* MCUBOOT_USE_TINYCRYPT */
6969

7070
#if defined(MCUBOOT_USE_MBED_TLS)
71+
#define NUM_ECC_BYTES 32
72+
7173
typedef struct bootutil_ecdh_p256_context {
7274
mbedtls_ecp_group grp;
7375
mbedtls_ecp_point P;

0 commit comments

Comments
 (0)