Commit 74c3bab4 authored by Fabio Utzig's avatar Fabio Utzig Committed by Fabio Utzig
Browse files

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: default avatarFabio Utzig <utzig@apache.org>
parent b6d75e76
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -68,6 +68,8 @@ static inline int bootutil_ecdh_p256_shared_secret(bootutil_ecdh_p256_context *c
#endif /* MCUBOOT_USE_TINYCRYPT */

#if defined(MCUBOOT_USE_MBED_TLS)
#define NUM_ECC_BYTES 32

typedef struct bootutil_ecdh_p256_context {
    mbedtls_ecp_group grp;
    mbedtls_ecp_point P;