Skip to content

Commit 9521a38

Browse files
authored
Merge pull request mcu-tools#104 from mbolivar/design-doc-fixups
Design doc fixups
2 parents d9072bc + 048d8d8 commit 9521a38

File tree

3 files changed

+138
-147
lines changed

3 files changed

+138
-147
lines changed

boot/bootutil/include/bootutil/bootutil.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* to you under the Apache License, Version 2.0 (the
77
* "License"); you may not use this file except in compliance
88
* with the License. You may obtain a copy of the License at
9-
*
9+
*
1010
* http://www.apache.org/licenses/LICENSE-2.0
1111
*
1212
* Unless required by applicable law or agreed to in writing,
@@ -26,13 +26,13 @@
2626
extern "C" {
2727
#endif
2828

29-
/** Just boot whatever is in slot 0. */
29+
/** Attempt to boot the contents of slot 0. */
3030
#define BOOT_SWAP_TYPE_NONE 1
3131

3232
/** Swap to slot 1. Absent a confirm command, revert back on next boot. */
3333
#define BOOT_SWAP_TYPE_TEST 2
3434

35-
/** Swap to slot 1 permanently. */
35+
/** Swap to slot 1, and permanently switch to booting its contents. */
3636
#define BOOT_SWAP_TYPE_PERM 3
3737

3838
/** Swap back to alternate slot. A confirm changes this state to NONE. */

boot/bootutil/include/bootutil/image.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ struct flash_area;
3636
/*
3737
* Image header flags.
3838
*/
39-
#define IMAGE_F_PIC 0x00000001 /* Not currently supported. */
40-
#define IMAGE_F_SHA256 0x00000002 /* Image contains hash TLV */
41-
#define IMAGE_F_PKCS15_RSA2048_SHA256 0x00000004 /* PKCS15 w/RSA and SHA */
42-
#define IMAGE_F_ECDSA224_SHA256 0x00000008 /* ECDSA224 over SHA256 */
43-
#define IMAGE_F_NON_BOOTABLE 0x00000010 /* Split image app. */
44-
#define IMAGE_F_ECDSA256_SHA256 0x00000020 /* ECDSA256 over SHA256 */
45-
#define IMAGE_F_PKCS1_PSS_RSA2048_SHA256 0x0000040 /* PKCS1 PSS */
39+
#define IMAGE_F_PIC 0x00000001 /* Not supported. */
40+
#define IMAGE_F_SHA256 0x00000002 /* Hash TLV is present */
41+
#define IMAGE_F_PKCS15_RSA2048_SHA256 0x00000004 /* PKCS15 w/RSA and SHA */
42+
#define IMAGE_F_ECDSA224_SHA256 0x00000008 /* ECDSA224 over SHA256 */
43+
#define IMAGE_F_NON_BOOTABLE 0x00000010 /* Split image app. */
44+
#define IMAGE_F_ECDSA256_SHA256 0x00000020 /* ECDSA256 over SHA256 */
45+
#define IMAGE_F_PKCS1_PSS_RSA2048_SHA256 0x00000040 /* PKCS1 PSS */
4646

4747
/*
4848
* ECSDA224 is with NIST P-224

0 commit comments

Comments
 (0)