]> git.baikalelectronics.ru Git - 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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 11 Dec 2019 08:46:22 +0000 (16:46 +0800)
commit7f643f2c4c47b46226205bcac561b5abfe18c51e
tree2f30bf8a375bb062fe0d1c6d0f7c54d252f97cd7
parentc4db360eafdd5244138f8da9d357507748bf6e2d
crypto: atmel-aes - Fix counter overflow in CTR mode

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: 6d89063f0c59 ("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>
drivers/crypto/atmel-aes.c