CryptoAuthLib v3.7.8
Microchip CryptoAuthentication Library
 
Loading...
Searching...
No Matches
secure_boot.h File Reference

Provides required APIs to manage secure boot under various scenarios. More...

#include "atca_status.h"
#include "secure_boot_memory.h"
#include "atca_command.h"
#include "crypto/atca_crypto_sw_sha2.h"

Data Structures

struct  secure_boot_config_bits
 
struct  secure_boot_parameters
 

Macros

#define SECURE_BOOT_CONFIG_DISABLE   0
 
#define SECURE_BOOT_CONFIG_FULL_BOTH   1
 
#define SECURE_BOOT_CONFIG_FULL_SIGN   2
 
#define SECURE_BOOT_CONFIG_FULL_DIG   3
 
#define SECURE_BOOT_CONFIGURATION   SECURE_BOOT_CONFIG_FULL_DIG
 
#define SECURE_BOOT_DIGEST_ENCRYPT_ENABLED   true
 
#define SECURE_BOOT_UPGRADE_SUPPORT   true
 

Functions

ATCA_STATUS secure_boot_process (void)
 Handles secure boot functionality through initialization, execution, and de-initialization.
 
ATCA_STATUS bind_host_and_secure_element_with_io_protection (uint16_t slot)
 Binds host MCU and Secure element with IO protection key.
 
ATCA_STATUS host_generate_random_number (uint8_t *rand)
 

Detailed Description

Provides required APIs to manage secure boot under various scenarios.

Function Documentation

◆ bind_host_and_secure_element_with_io_protection()

ATCA_STATUS bind_host_and_secure_element_with_io_protection ( uint16_t  slot)

Binds host MCU and Secure element with IO protection key.

Parameters
[in]slotThe slot number of IO protection Key.
Returns
ATCA_SUCCESS on success, otherwise an error code.

◆ secure_boot_process()

ATCA_STATUS secure_boot_process ( void  )

Handles secure boot functionality through initialization, execution, and de-initialization.

Returns
ATCA_SUCCESS on success, otherwise an error code.