mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-04-26 09:59:18 -04:00
Update length and digest of testloadapp
This commit is contained in:
parent
d85d60db72
commit
e12a683605
@ -43,7 +43,8 @@ static volatile struct reset *resetinfo = (volatile struct reset *)TK1_
|
||||
|
||||
struct partition_table_storage part_table_storage;
|
||||
|
||||
#define APP_SIZE_SLOT0 21684
|
||||
#define APP_SIZE_SLOT0 34644
|
||||
|
||||
// Context for the loading of a TKey program
|
||||
struct context {
|
||||
uint32_t left; // Bytes left to receive
|
||||
|
@ -11,13 +11,12 @@
|
||||
// this size, producing this digest.
|
||||
//
|
||||
// To update this, compute the BLAKE2s digest of the app.bin
|
||||
// BLAKE2s digest of testloadapp.bin
|
||||
static const uint8_t allowed_app_digest[32] = {
|
||||
0x88, 0x87, 0xf6, 0x2f, 0x71, 0x1c, 0x3f, 0xdb,
|
||||
0x8c, 0xf7, 0x77, 0x9f, 0xeb, 0x5f, 0xb9, 0xd4,
|
||||
0x2f, 0xfb, 0xdb, 0x1d, 0xf6, 0xdc, 0x62, 0xff,
|
||||
0x91, 0x00, 0x1f, 0x5d, 0x98, 0xb3, 0x50, 0xd4,
|
||||
0xc0, 0xa2, 0x8e, 0x4e, 0x35, 0x90, 0xe3, 0x4, 0x8, 0x63, 0xd4,
|
||||
0x2e, 0x51, 0xb, 0x6f, 0xc7, 0x2, 0x8b, 0xf6, 0x33, 0x18, 0x9f,
|
||||
0xca, 0xcc, 0xe8, 0x33, 0xf0, 0xd5, 0xd2, 0x72, 0x68, 0xd7,
|
||||
};
|
||||
|
||||
static uint8_t current_app_digest[32];
|
||||
|
||||
int mgmt_app_init(uint8_t app_digest[32]) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user