mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-04-27 18:36:23 -04:00

- In state INITIAL: Register allowed app digest early for the default case where we start from flash slot 0. Transition to LOAD_FLASH_MGMT. - Introduce new state FW_STATE_LOAD_FLASH_MGMT which loads an app from flash slot 0 and registers app as a prospective management app. - Rely on ordinary verification in state START to actually do the verification of the prospective management app.
15 lines
284 B
C
15 lines
284 B
C
// Copyright (C) 2024 - Tillitis AB
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
#ifndef MGMT_APP_H
|
|
#define MGMT_APP_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
int mgmt_app_init(uint8_t app_digest[32]);
|
|
bool mgmt_app_authenticate(void);
|
|
uint8_t *mgmt_app_allowed_digest(void);
|
|
|
|
#endif
|