mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-08-02 11:46:06 -04:00
fw: Add checksum to partition table
Refuse to boot if blake2s digest over the partition table does not match digest stored on flash
This commit is contained in:
parent
75dd726998
commit
f24c7ea515
11 changed files with 207 additions and 73 deletions
|
@ -10,8 +10,8 @@
|
|||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
int storage_allocate_area(struct partition_table *part_table);
|
||||
int storage_deallocate_area(struct partition_table *part_table);
|
||||
int storage_deallocate_area(struct partition_table_storage *part_table_storage);
|
||||
int storage_allocate_area(struct partition_table_storage *part_table_storage);
|
||||
int storage_erase_sector(struct partition_table *part_table, uint32_t offset,
|
||||
size_t size);
|
||||
int storage_write_data(struct partition_table *part_table, uint32_t offset,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue