Skip to content

Commit 5402bbe

Browse files
[nrf mergeup] Merge upstream release v1.3.1
Bring in the new release. Signed-off-by: Marti Bolivar <[email protected]>
2 parents 55265bf + 7fea846 commit 5402bbe

File tree

11 files changed

+34
-13
lines changed

11 files changed

+34
-13
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ matrix:
4343
language: go
4444
env: TEST=mynewt
4545
go:
46-
- "1.11"
46+
- "1.12"
4747

4848
before_install:
4949
- |

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[coverity]: https://scan.coverity.com/projects/mcuboot
77
[travis]: https://travis-ci.org/JuulLabs-OSS/mcuboot
88

9-
This is mcuboot, version 1.3.0
9+
This is mcuboot, version 1.3.1
1010

1111
MCUboot is a secure bootloader for 32-bit MCUs. The goal of MCUboot is to
1212
define a common infrastructure for the bootloader, system flash layout on

boot/bootutil/include/bootutil/sha256.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,20 @@ typedef mbedtls_sha256_context bootutil_sha256_context;
6565
static inline void bootutil_sha256_init(bootutil_sha256_context *ctx)
6666
{
6767
mbedtls_sha256_init(ctx);
68-
mbedtls_sha256_starts(ctx, 0);
68+
(void)mbedtls_sha256_starts_ret(ctx, 0);
6969
}
7070

7171
static inline void bootutil_sha256_update(bootutil_sha256_context *ctx,
7272
const void *data,
7373
uint32_t data_len)
7474
{
75-
mbedtls_sha256_update(ctx, data, data_len);
75+
(void)mbedtls_sha256_update_ret(ctx, data, data_len);
7676
}
7777

7878
static inline void bootutil_sha256_finish(bootutil_sha256_context *ctx,
7979
uint8_t *output)
8080
{
81-
mbedtls_sha256_finish(ctx, output);
81+
(void)mbedtls_sha256_finish_ret(ctx, output);
8282
}
8383
#endif /* MCUBOOT_USE_MBED_TLS */
8484

boot/bootutil/src/loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1849,7 +1849,7 @@ split_go(int loader_slot, int split_slot, void **entry)
18491849

18501850
loader_flash_id = flash_area_id_from_image_slot(loader_slot);
18511851
rc = flash_area_open(loader_flash_id,
1852-
&BOOT_IMG_AREA(&boot_data, split_slot));
1852+
&BOOT_IMG_AREA(&boot_data, loader_slot));
18531853
assert(rc == 0);
18541854
split_flash_id = flash_area_id_from_image_slot(split_slot);
18551855
rc = flash_area_open(split_flash_id,

boot/zephyr/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <gpio.h>
2020
#include <misc/__assert.h>
2121
#include <flash.h>
22-
#include <drivers/system_timer.h>
22+
#include <drivers/timer/system_timer.h>
2323
#include <usb/usb_device.h>
2424
#include <soc.h>
2525

docs/design.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ struct image_tlv {
9797
#define IMAGE_TLV_ECDSA224 0x21 /* ECDSA of hash output */
9898
#define IMAGE_TLV_ECDSA256 0x22 /* ECDSA of hash output */
9999
#define IMAGE_TLV_RSA3072_PSS 0x23 /* RSA3072 of hash output */
100+
#define IMAGE_TLV_ED25519 0x24 /* ED25519 of hash output */
100101
```
101102

102103
Optional type-length-value records (TLVs) containing image metadata are placed

docs/release-notes.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,25 @@
33
- Table of Contents
44
{:toc}
55

6+
## Version 1.3.1
7+
8+
The 1.3.1 release of MCUboot consists mostly of small bug fixes and updates.
9+
There are no breaking changes in functionality. This release should work with
10+
Mynewt 1.6.0 and up, and any Zephyr `master` after sha
11+
f51e3c296040f73bca0e8fe1051d5ee63ce18e0d.
12+
13+
### About this release
14+
15+
- Fixed a revert interruption bug
16+
- Added ed25519 signing support
17+
- Added RSA-3072 signing support
18+
- Allow ec256 to run on CC310 interface
19+
- Some preparation work was done to allow for multi image support, which
20+
should land in 1.4.0. This includes a simulator update for testing
21+
multi-images, and a new name for slot0/slot1 which are now called
22+
"primary slot" and "secondary slot".
23+
- Other minor bugfixes and improvements
24+
625
## Version 1.3.0
726

827
The 1.3.0 release of MCUboot brings in many fixes and updates. There

repository.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ repo.versions:
2525
"1.1.0": "v1.1.0"
2626
"1.2.0": "v1.2.0"
2727
"1.3.0": "v1.3.0"
28+
"1.3.1": "v1.3.1"
2829

2930
"0-dev": "0.0.0" # master
30-
"0-latest": "1.3.0" # latest stable release
31-
"1-latest": "1.3.0" # latest stable release
31+
"0-latest": "1.3.1" # latest stable release
32+
"1-latest": "1.3.1" # latest stable release
3233

33-
"1.0-latest": "1.3.0"
34+
"1.0-latest": "1.3.1"

scripts/imgtool/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def gen_ecdsa_p224(keyfile, passwd):
4242

4343

4444
def gen_ed25519(keyfile, passwd):
45-
keys.Ed25519.generate().export_private(path=keyfile)
45+
keys.Ed25519.generate().export_private(path=keyfile, passwd=passwd)
4646

4747

4848
valid_langs = ['c', 'rust']

scripts/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setuptools.setup(
44
name="imgtool",
5-
version="1.3.0",
5+
version="1.3.1",
66
author="The MCUboot commiters",
77
description=("MCUboot's image signing and key management"),
88
license="Apache Software License",

0 commit comments

Comments
 (0)