diff options
author | Gabriel Oginski <gabrielx.oginski@intel.com> | 2021-09-22 11:32:46 +0100 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-11-07 04:23:28 +0000 |
commit | e6189d8d0b8fd44c8b593ad6d3bf34c6a5d44618 (patch) | |
tree | bdee8be618ab21845bf7dbcc36f663cf673da201 /src/plugins/crypto_native/aes_gcm.c | |
parent | e58c5c5bb40c77be3bc1f0dd138d2bcea662c0d7 (diff) |
crypto-native: fix uninitialized variable
Type: fix
Fixed coverity-issue CID 208547.
Originally using uninitialized value when calling one function.
This patch fixes the problem by initializing value for one variable.
Signed-off-by: Gabriel Oginski <gabrielx.oginski@intel.com>
Change-Id: Iccfae1e825b4ca4d95a6f724d9b5c51c5addd1b2
Diffstat (limited to 'src/plugins/crypto_native/aes_gcm.c')
-rw-r--r-- | src/plugins/crypto_native/aes_gcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/crypto_native/aes_gcm.c b/src/plugins/crypto_native/aes_gcm.c index e0c1e6c12c3..09bb06f1994 100644 --- a/src/plugins/crypto_native/aes_gcm.c +++ b/src/plugins/crypto_native/aes_gcm.c @@ -978,7 +978,7 @@ aes_gcm_dec (u8x16 T, aes_gcm_key_data_t * kd, aes_gcm_counter_t * ctr, n_left - 64, f); return aes4_gcm_calc (T, kd, d4, ctr, inv, outv, rounds, 1, n_left, f); #else - u8x16 d[4]; + u8x16 d[4] = {}; while (n_left >= 128) { T = aes_gcm_calc_double (T, kd, d, ctr, inv, outv, rounds, f); |