crypto: artpec6 - set correct iv size for gcm(aes)
authorLars Persson <lars.persson@axis.com>
Tue, 12 Dec 2017 11:40:22 +0000 (12:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Mar 2018 10:01:28 +0000 (11:01 +0100)
commite618ff1ac59c8c8c7bf7b71779ca99863a93cfa3
tree94af5676a8a2ff003b8bcb22f58d2b4b5627ac7d
parent53555c8fc8a2d4adab78a286b68d1116ce71cfa6
crypto: artpec6 - set correct iv size for gcm(aes)

[ Upstream commit 6d6e71feb183aa588c849e20e7baa47cb162928a ]

The IV size should not include the 32 bit counter. Because we had the
IV size set as 16 the transform only worked when the IV input was zero
padded.

Fixes: a21eb94fc4d3 ("crypto: axis - add ARTPEC-6/7 crypto accelerator driver")
Signed-off-by: Lars Persson <larper@axis.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/axis/artpec6_crypto.c