Commit b04afa9c authored by Fabio Utzig's avatar Fabio Utzig Committed by Fabio Utzig
Browse files

Update mbedtls submodule to 2.12.0

This also updates the RSA test to add extra build files for zeroize, and
updates to new calloc/free configuration style.

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent 5de83b1e
Loading
Loading
Loading
Loading
+2
Changes for sim/mcuboot-sys/build.rs: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -40,6 +40,8 @@ fn main() {

        conf.file("mbedtls/library/rsa.c");
        conf.file("mbedtls/library/bignum.c");
        conf.file("mbedtls/library/platform.c");
        conf.file("mbedtls/library/platform_util.c");
        conf.file("mbedtls/library/asn1parse.c");
    } else if sig_ecdsa {
        conf.define("MCUBOOT_SIGN_EC256", None);
+7 −4
Changes for sim/mcuboot-sys/csupport/run.c: 7 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -66,16 +66,19 @@ struct area_desc {

static struct area_desc *flash_areas;

void *(*mbedtls_calloc)(size_t n, size_t size);
void (*mbedtls_free)(void *ptr);
#ifdef MCUBOOT_SIGN_RSA
int mbedtls_platform_set_calloc_free(void * (*calloc_func)(size_t, size_t),
                                     void (*free_func)(void *));
#endif

int invoke_boot_go(struct area_desc *adesc)
{
    int res;
    struct boot_rsp rsp;

    mbedtls_calloc = calloc;
    mbedtls_free = free;
#ifdef MCUBOOT_SIGN_RSA
    mbedtls_platform_set_calloc_free(calloc, free);
#endif

    flash_areas = adesc;
    if (setjmp(boot_jmpbuf) == 0) {
Compare 32605dc8 to 6c34268e
Changes for sim/mcuboot-sys/mbedtls: 1 added line, 1 removed line.
Original line number Diff line number Diff line
Subproject commit 32605dc83042d737e715a685e53176388d73540e
Subproject commit 6c34268e203d23bbfbfda3f7362dac8b9b9382bc