]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaa93c5d5b7c92ec545af43118a14380172641ac3
tree3f51b378e5425f95e0e044c7358a94155c7603a3
parent9c85de097d451b255577af396323383112c9b910
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