mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-20 21:38:26 +00:00
19 lines
398 B
C
19 lines
398 B
C
|
|
||
|
#include <stdint.h>
|
||
|
#include "secbool.h"
|
||
|
|
||
|
#define SECRET_HEADER_MAGIC "TRZS"
|
||
|
#define SECRET_HEADER_LEN 16
|
||
|
#define SECRET_OPTIGA_KEY_OFFSET 16
|
||
|
#define SECRET_OPTIGA_KEY_LEN 32
|
||
|
|
||
|
void secret_write(uint8_t* data, uint32_t offset, uint32_t len);
|
||
|
|
||
|
secbool secret_read(uint8_t* data, uint32_t offset, uint32_t len);
|
||
|
|
||
|
secbool secret_wiped(void);
|
||
|
|
||
|
void secret_erase(void);
|
||
|
|
||
|
void secret_write_header(void);
|