1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #17718 from fjmolinas/pr_sys_crypto_unitialized_key

tests/sys_crypto: fix potentially unitialized error
This commit is contained in:
Koen Zandberg 2022-03-01 10:34:40 +01:00 committed by GitHub
commit 3a9e64806c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -401,7 +401,11 @@ static void test_crypto_modes_ocb_decrypt(void)
static void test_crypto_modes_ocb_bad_parameter_values(void)
{
uint8_t key[16], auth_data[1], nonce[16], input[16], output[32];
uint8_t key[16] = {0};
uint8_t auth_data[1] = {0};
uint8_t nonce[16] = {0};
uint8_t input[16] = {0};
uint8_t output[32] = {0};
cipher_t cipher;
cipher_init(&cipher, CIPHER_AES, key, 16);