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:
commit
3a9e64806c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user