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)
commit0d0433599d84bf7db8caa8fb76915dc0ff818150
tree6271ca01676fa698d9629e7bb44d17e0aa4bbada
parent26d769ae90907e6f4724b800ba16f11681079f23
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