mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-12-29 17:36:26 -05:00
Format code
This commit is contained in:
parent
85ef93cd3c
commit
8755a65a38
@ -77,8 +77,8 @@ static void compute_cdi(uint8_t digest[32], uint8_t uss[32])
|
||||
|
||||
blake2s_ctx *secure_ctx = (blake2s_ctx *)(fw_ram + 96);
|
||||
|
||||
blake2s((void *)local_cdi, 32, NULL, 0,
|
||||
(const void *)fw_ram, 96, secure_ctx);
|
||||
blake2s((void *)local_cdi, 32, NULL, 0, (const void *)fw_ram, 96,
|
||||
secure_ctx);
|
||||
|
||||
// Write over the firmware-only RAM
|
||||
memset((void *)fw_ram, 0, TK1_MMIO_FW_RAM_SIZE);
|
||||
@ -230,7 +230,8 @@ int main()
|
||||
blake2s_ctx ctx;
|
||||
|
||||
blake2s(digest, 32, NULL, 0,
|
||||
(const void *)*app_addr, *app_size, &ctx);
|
||||
(const void *)*app_addr, *app_size,
|
||||
&ctx);
|
||||
print_digest(digest);
|
||||
|
||||
// CDI = hash(uds, hash(app), uss)
|
||||
|
Loading…
Reference in New Issue
Block a user