fw: Initialize arrays in auth_app.c

This commit is contained in:
Mikael Ågren 2025-04-10 12:25:51 +02:00
parent 76ba5e8ede
commit 648b0e91c8
No known key found for this signature in database
GPG key ID: E02DA3D397792C46

View file

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