]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: aesni - add wrapper for generic gcm(aes)
authorSabrina Dubroca <sd@queasysnail.net>
Wed, 13 Dec 2017 13:54:36 +0000 (14:54 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Dec 2017 08:52:46 +0000 (19:52 +1100)
commit53b1c0b38b48adc198e3d5341489bcbc05657469
tree2acc7aa35f3a41515c2b2acae9a97d99de5cbc23
parentfa465befdf4c3b6c00edb0857086fcde94d5b5aa
crypto: aesni - add wrapper for generic gcm(aes)

When I added generic-gcm-aes I didn't add a wrapper like the one
provided for rfc4106(gcm(aes)). We need to add a cryptd wrapper to fall
back on in case the FPU is not available, otherwise we might corrupt the
FPU state.

Fixes: 713605f9c4c4 ("crypto: aesni - add generic gcm(aes)")
Cc: <stable@vger.kernel.org>
Reported-by: Ilya Lesokhin <ilyal@mellanox.com>
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/aesni-intel_glue.c