mbox series

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

Message ID 20210720085535.141486-1-tudor.ambarus@microchip.com
Headers show
Series crypto: atmel-{aes, tdes}: Fix corner cases - crypto self tests | expand

Message

Tudor Ambarus July 20, 2021, 8:55 a.m. UTC
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(-)

Comments

Herbert Xu July 30, 2021, 3:10 a.m. UTC | #1
On Tue, Jul 20, 2021 at 11:55:26AM +0300, Tudor Ambarus wrote:
> 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(-)


All applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt