]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: atmel-aes - Add NIST 800-38A's zero length cryptlen constraint
authorTudor Ambarus <tudor.ambarus@microchip.com>
Tue, 20 Jul 2021 08:55:31 +0000 (11:55 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Jul 2021 02:58:33 +0000 (10:58 +0800)
commit5e83da54a74e45cc2cc5a2ea4b12b19d944b9b60
tree6271ca01676fa698d9629e7bb44d17e0aa4bbada
parente3eaf4eaf7f12e5d883b3aa54c635195a1d607b9
crypto: atmel-aes - Add NIST 800-38A's zero length cryptlen constraint

NIST 800-38A requires for the ECB, CBC, CFB, OFB and CTR modes that
the plaintext and ciphertext to have a positive integer length.

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