[PATCH 0/9] crypto: atmel-{aes, tdes}: Fix corner cases - crypto self tests

From: Tudor Ambarus
Date: Tue Jul 20 2021 - 05:06:14 EST


The extra run-time crypto self tests hit some corner cases that were
not handled in the drivers. Fix some corner cases. Propose some cleaning
patches.

Tudor Ambarus (9):
crypto: atmel-tdes: Clarify how tdes dev gets allocated to the tfm
crypto: atmel-tdes: Handle error messages
crypto: atmel-aes: Add blocksize constraint for ECB and CBC modes
crypto: atmel-aes: Add XTS input length constraint
crypto: atmel-aes: Add NIST 800-38A's zero length cryptlen constraint
crypto: atmel-tdes: Add FIPS81's zero length cryptlen constraint
crypto: atmel-{aes, tdes}: Set OFB's blocksize to 1
crypto: atmel-aes: Add fallback to XTS software implementation
crypto: atmel-aes: Allocate aes dev at tfm init time

drivers/crypto/atmel-aes.c | 146 +++++++++++++++++++++++++++---------
drivers/crypto/atmel-tdes.c | 66 +++++++---------
2 files changed, 138 insertions(+), 74 deletions(-)

--
2.25.1