[PATCH 0/4] Atmel crypto engine fixes

Ryan.Wanner@microchip.com posted 4 patches 2 years, 10 months ago
drivers/crypto/atmel-aes.c  | 16 +++++-----------
drivers/crypto/atmel-sha.c  | 34 ++++++++++++++++++++++++++++++----
drivers/crypto/atmel-tdes.c | 15 +++++----------
3 files changed, 40 insertions(+), 25 deletions(-)
[PATCH 0/4] Atmel crypto engine fixes
Posted by Ryan.Wanner@microchip.com 2 years, 10 months ago
From: Ryan Wanner <Ryan.Wanner@microchip.com>

I made changes to the crypto engines to fix the errors in the crypto
manager tests. Mainly having to do with in-place tests with two 
scatter lists. These are built and tested in 6.2.7 kernel, the
devices that are used for testing is the sam9x60, sama7g5, and
sama5d27_som1_ek.

Adding support for zero-length messages for hmac-sha operations. Using
the atmel_sha_fill_padding() function to padd the empty message manualy
then disabling auto padding. This is built and tested on kernel 6.2.7
using sam9x60, sama7g5, and sama5d27_som1_ek.


Ryan Wanner (4):
  crypto: atmel-sha: Add zero length message digest support for hmac
  crypto: atmel-tdes - Detecting in-place operations with two sg lists
  crypto: atmel-aes - Detecting in-place operations two sg lists
  crypto: atmel-aes - Match cfb block size with generic implementation

 drivers/crypto/atmel-aes.c  | 16 +++++-----------
 drivers/crypto/atmel-sha.c  | 34 ++++++++++++++++++++++++++++++----
 drivers/crypto/atmel-tdes.c | 15 +++++----------
 3 files changed, 40 insertions(+), 25 deletions(-)

-- 
2.37.2
Re: [PATCH 0/4] Atmel crypto engine fixes
Posted by Herbert Xu 2 years, 10 months ago
On Tue, Mar 28, 2023 at 12:56:25PM -0700, Ryan.Wanner@microchip.com wrote:
> From: Ryan Wanner <Ryan.Wanner@microchip.com>
> 
> I made changes to the crypto engines to fix the errors in the crypto
> manager tests. Mainly having to do with in-place tests with two 
> scatter lists. These are built and tested in 6.2.7 kernel, the
> devices that are used for testing is the sam9x60, sama7g5, and
> sama5d27_som1_ek.
> 
> Adding support for zero-length messages for hmac-sha operations. Using
> the atmel_sha_fill_padding() function to padd the empty message manualy
> then disabling auto padding. This is built and tested on kernel 6.2.7
> using sam9x60, sama7g5, and sama5d27_som1_ek.
> 
> 
> Ryan Wanner (4):
>   crypto: atmel-sha: Add zero length message digest support for hmac
>   crypto: atmel-tdes - Detecting in-place operations with two sg lists
>   crypto: atmel-aes - Detecting in-place operations two sg lists
>   crypto: atmel-aes - Match cfb block size with generic implementation
> 
>  drivers/crypto/atmel-aes.c  | 16 +++++-----------
>  drivers/crypto/atmel-sha.c  | 34 ++++++++++++++++++++++++++++++----
>  drivers/crypto/atmel-tdes.c | 15 +++++----------
>  3 files changed, 40 insertions(+), 25 deletions(-)
> 
> -- 
> 2.37.2

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