CycloneBOOT 2.6.6
Secure Bootloader for ARM Cortex-M MCU
Loading...
Searching...
No Matches
boot_common.h
Go to the documentation of this file.
1
31#ifndef _FIRST_STAGE_BOOT_COMMON_H
32#define _FIRST_STAGE_BOOT_COMMON_H
33
34#include "first_stage/boot.h"
35
36// Size of the initialization vector stored ahead of an encrypted image
37#define INIT_VECT_SIZE 16
38
40cboot_error_t bootCheckImageAt(BootContext *context, const Slot *slot);
41
42#if (BOOT_EXT_MEM_ENCRYPTION_SUPPORT == ENABLED)
43bool_t bootIsEncryptedCandidate(const FlashInfo *info, const Slot *slot);
44#endif
45
46#if (BOOT_FIRST_STAGE_RUNTIME_INTEGRITY_SUPPORT == ENABLED)
48#endif
49
50#endif //_FIRST_STAGE_BOOT_COMMON_H
cboot_error_t
Error codes.
Definition cboot_error.h:57
CycloneBOOT 1st Stage Bootloader managment.
bool_t bootIsEncryptedCandidate(const FlashInfo *info, const Slot *slot)
Tell whether a candidate is stored encrypted.
Definition boot_common.c:72
cboot_error_t bootCheckImageAt(BootContext *context, const Slot *slot)
Verify the integrity of an image held in a slot. A candidate staged encrypted in external memory is c...
Definition boot_common.c:86
cboot_error_t bootCheckRuntimeImageAt(BootContext *context, const Slot *slot)
Verify the embedded runtime-integrity digest of an image held in a slot.
Definition boot_common.c:328
cboot_error_t bootCheckImage(BootContext *context)
Verify the whole-image CRC32 integrity of the installed 2nd stage bootloader.
Definition boot_common.c:52
First-stage bootloader context.
Definition boot.h:136
Flash Information definition.
Definition flash.h:87
Slot Type definition.
Definition memory.h:181