crypto: atmel-aes - Add blocksize constraint for ECB and CBC modes
authorTudor Ambarus <tudor.ambarus@microchip.com>
Tue, 20 Jul 2021 08:55:29 +0000 (11:55 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Jul 2021 02:58:32 +0000 (10:58 +0800)
commit534b32a8be27dc0eb54dccc302b3c9a6f0fe88a2
tree3f51b378e5425f95e0e044c7358a94155c7603a3
parent817b804ca36747f0c9db667d7d8aa9fdd55335c7
crypto: atmel-aes - Add blocksize constraint for ECB and CBC modes

NIST 800-38A requires for the ECB and CBC modes that the total number
of bits in the plaintext to be a multiple of the block cipher.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-aes.c