]> 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)
commitc8767ebe9b382091ac6d6504ce0e10da5c9b6b5e
tree3f51b378e5425f95e0e044c7358a94155c7603a3
parentca4186a41a649de3ce385e65bf241b917437951f
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