OSDN Git Service

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)
commit781a08d9740afa73357f1a60d45d7c93d7cca2dd
tree2f30bf8a375bb062fe0d1c6d0f7c54d252f97cd7
parentc65d123742a7bf2a5bc9fa8398e1fd2376eb4c43
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: 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>
drivers/crypto/atmel-aes.c