]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit6d6e71feb183aa588c849e20e7baa47cb162928a
tree23fb884b460cb256c954bba773e41a0455e85ff4
parentf5c421d545356e90d9c6bc544d29c700dc91a488
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: 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>
drivers/crypto/axis/artpec6_crypto.c