]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 14 Aug 2018 10:28:59 +0000 (12:28 +0200)
commitaca62ba5bc6d34ad18943482eaa15a4151d08ba5
tree19ff71c102fa77a11b589ed61658a9e4402c2c37
parentbd9ca373b8b69de9df878b37ee29ebb1cf5da0eb
crypto: atmel-aes - fix the keys zeroing on errors

BugLink: http://bugs.launchpad.net/bugs/1783418
[ Upstream commit 5d804a5157dbaa64872a675923ae87161165c66b ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/crypto/atmel-aes.c