]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Dec 2017 08:52:40 +0000 (19:52 +1100)
commitebd19d5d7d12b42da0ccb6e9886f93087a613238
tree23fb884b460cb256c954bba773e41a0455e85ff4
parent5743b0e578c9c26507b147374e03194437eca5a8
crypto: artpec6 - set correct iv size for gcm(aes)

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: c765d059f4f2 ("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>
drivers/crypto/axis/artpec6_crypto.c