mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-06-03 13:32:20 -04:00
fw: Initialize arrays in auth_app.c
This commit is contained in:
parent
76ba5e8ede
commit
648b0e91c8
1 changed files with 3 additions and 3 deletions
|
@ -47,8 +47,8 @@ void auth_app_create(struct auth_metadata *auth_table)
|
|||
{
|
||||
assert(auth_table != NULL);
|
||||
|
||||
uint8_t nonce[16];
|
||||
uint8_t auth_digest[16];
|
||||
uint8_t nonce[16] = {0};
|
||||
uint8_t auth_digest[16] = {0};
|
||||
|
||||
generate_nonce((uint32_t *)nonce);
|
||||
|
||||
|
@ -64,7 +64,7 @@ bool auth_app_authenticate(struct auth_metadata *auth_table)
|
|||
{
|
||||
assert(auth_table != NULL);
|
||||
|
||||
uint8_t auth_digest[16];
|
||||
uint8_t auth_digest[16] = {0};
|
||||
|
||||
calculate_auth_digest(auth_table->nonce, auth_digest);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue