Format code

This commit is contained in:
Daniel Lublin 2022-10-31 10:07:10 +01:00
parent 85ef93cd3c
commit 8755a65a38
No known key found for this signature in database
GPG Key ID: 75BD0FEB8D3E7830

View File

@ -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)