Commit a8e23e26 authored by Fabio Utzig's avatar Fabio Utzig
Browse files

Updates mynewt port to use bundled tinycrypt

This removes the dependency on tinycrypt lib provided by mynewt and
switches to the one bundled in mcuboot. Also fixes a bug where tc
was only being used when eliptic curve 256 was selected as sign
algorithm.

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent c20b9971
Loading
Loading
Loading
Loading
+2 −2
Changes for boot/bootutil/pkg.yml: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -39,5 +39,5 @@ pkg.deps:
    - "@apache-mynewt-core/sys/defs"
    - "@apache-mynewt-core/sys/flash_map"

pkg.deps.BOOTUTIL_SIGN_EC256:
    - "@apache-mynewt-core/crypto/tinycrypt"
pkg.deps.BOOTUTIL_USE_TINYCRYPT:
    - "@mcuboot/boot/mynewt/tinycrypt"
+9 −6
Changes for boot/mynewt/mcuboot_config/include/mcuboot_config/mcuboot_config.h: 9 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -27,8 +27,17 @@
#if MYNEWT_VAL(BOOTUTIL_VALIDATE_SLOT0)
#define MCUBOOT_VALIDATE_SLOT0 1
#endif
#if MYNEWT_VAL(BOOTUTIL_USE_MBED_TLS)
#define MCUBOOT_USE_MBED_TLS 1
#endif
#if MYNEWT_VAL(BOOTUTIL_USE_TINYCRYPT)
#define MCUBOOT_USE_TINYCRYPT 1
#endif
#if MYNEWT_VAL(BOOTUTIL_SIGN_EC256)
#define MCUBOOT_SIGN_EC256 1
  #ifndef MCUBOOT_USE_TINYCRYPT
  #error "EC256 requires the use of tinycrypt."
  #endif
#endif
#if MYNEWT_VAL(BOOTUTIL_SIGN_RSA)
#define MCUBOOT_SIGN_RSA 1
@@ -36,12 +45,6 @@
#if MYNEWT_VAL(BOOTUTIL_SIGN_EC)
#define MCUBOOT_SIGN_EC 1
#endif
#if MYNEWT_VAL(BOOTUTIL_USE_MBED_TLS)
#define MCUBOOT_USE_MBED_TLS 1
#endif
#if MYNEWT_VAL(BOOTUTIL_USE_TINYCRYPT)
#define MCUBOOT_USE_TINYCRYPT 1
#endif
#if MYNEWT_VAL(BOOTUTIL_OVERWRITE_ONLY)
#define MCUBOOT_OVERWRITE_ONLY 1
#endif
+1
Changes for boot/mynewt/tinycrypt/include/tinycrypt/aes.h: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
../../../../../ext/tinycrypt/lib/include/tinycrypt/aes.h
 No newline at end of file
+1
Changes for boot/mynewt/tinycrypt/include/tinycrypt/cbc_mode.h: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
../../../../../ext/tinycrypt/lib/include/tinycrypt/cbc_mode.h
 No newline at end of file
+1
Changes for boot/mynewt/tinycrypt/include/tinycrypt/ccm_mode.h: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
../../../../../ext/tinycrypt/lib/include/tinycrypt/ccm_mode.h
 No newline at end of file
Loading