OSDN Git Service

crypto: atmel-aes - fix the keys zeroing on errors
authorAntoine Tenart <antoine.tenart@bootlin.com>
Fri, 23 Feb 2018 09:01:40 +0000 (10:01 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 2 Mar 2018 16:03:40 +0000 (00:03 +0800)
commit5d804a5157dbaa64872a675923ae87161165c66b
tree0c30bfb0e8033260cbddcd91e36163973baa9be3
parent699e491bac84a2069c7abeacf2f4367ecb19fa9c
crypto: atmel-aes - fix the keys zeroing on errors

The Atmel AES driver uses memzero_explicit on the keys on error, but the
variable zeroed isn't the right one because of a typo. Fix this by using
the right variable.

Fixes: 89a82ef87e01 ("crypto: atmel-authenc - add support to authenc(hmac(shaX), Y(aes)) modes")
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-aes.c