]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
crypto: atmel-aes - Fix counter overflow in CTR mode
authorTudor Ambarus <tudor.ambarus@microchip.com>
Thu, 5 Dec 2019 09:54:01 +0000 (09:54 +0000)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 17 Feb 2020 10:10:40 +0000 (11:10 +0100)
commit44e2a29e3e9d0fe592842cdb6274489d7a335e88
treed7508342c58892c7b40bc9cf8df8b5bb2f4dfa42
parentd93f57e01d2013d77540fc6a02403d4fc8ff65fb
crypto: atmel-aes - Fix counter overflow in CTR mode

BugLink: https://bugs.launchpad.net/bugs/1863588
commit 781a08d9740afa73357f1a60d45d7c93d7cca2dd upstream.

32 bit counter is not supported by neither of our AES IPs, all implement
a 16 bit block counter. Drop the 32 bit block counter logic.

Fixes: fcac83656a3e ("crypto: atmel-aes - fix the counter overflow in CTR mode")
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/crypto/atmel-aes.c