summaryrefslogtreecommitdiffstats
path: root/src/plugins/crypto_ia32/aesni.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2019-04-05 11:11:04 +0200
committerDave Wallace <dwallacelf@gmail.com>2019-04-07 02:59:38 +0000
commitba01f076318c14be42db4bd8e6976800ccfbd1b1 (patch)
treed5b8652f06f103c85110c275197054c07a36749f /src/plugins/crypto_ia32/aesni.h
parentc42c7f08f5f9e30109877932847232ff581c2cdc (diff)
crypto: coverity issues
Change-Id: I9db1b74097c9df587b9265b14a969d347bcb731a Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/crypto_ia32/aesni.h')
-rw-r--r--src/plugins/crypto_ia32/aesni.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/crypto_ia32/aesni.h b/src/plugins/crypto_ia32/aesni.h
index 077889ae903..28e09fc5c51 100644
--- a/src/plugins/crypto_ia32/aesni.h
+++ b/src/plugins/crypto_ia32/aesni.h
@@ -195,8 +195,9 @@ aes_key_expand (__m128i * k, u8 * key, aesni_key_size_t ks)
static_always_inline void
-aes_key_enc_to_dec (__m128i * k, aesni_key_size_t rounds)
+aes_key_enc_to_dec (__m128i * k, aesni_key_size_t ks)
{
+ int rounds = AESNI_KEY_ROUNDS (ks);
__m128i r;
r = k[rounds];