OSDN Git Service

crypto: axis - support variable AEAD tag length
authorLars Persson <lars.persson@axis.com>
Wed, 23 Jan 2019 11:59:44 +0000 (12:59 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 Feb 2019 06:42:04 +0000 (14:42 +0800)
commit48ef0908b81cc6b92ec8b157bb78ce2c4eddd7c7
tree5909d9af246ada3db109deb517caaed0532948af
parent0d1d482416002791a705e7acef55edcd989facd2
crypto: axis - support variable AEAD tag length

The implementation assumed that the client always wants the whole 16
byte AES-GCM tag. Now we respect the requested authentication tag size
fetched using crypto_aead_authsize().

Signed-off-by: Lars Persson <larper@axis.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/axis/artpec6_crypto.c