mbox series

[v2,00/19] crypto: allwinner: lots of fixes

Message ID 20220502201929.843194-1-clabbe@baylibre.com
Headers show
Series crypto: allwinner: lots of fixes | expand

Message

Corentin Labbe May 2, 2022, 8:19 p.m. UTC
Hello

This series is all fixes which I found on allwinner crypto drivers.

Regards

Change since v1:
- fixed endianess of hash_pad() paramaters

Corentin Labbe (19):
  crypto: sun8i-ce: Fix minor style issue
  crypto: sun8i-ce: do not allocate memory when handling requests
  crypto: sun4i-ss: do not allocate backup IV on requests
  crypto: sun8i-ss: rework handling of IV
  crypto: sun8i-ss: handle zero sized sg
  crypto: sun8i-ss: remove redundant test
  crypto: sun8i-ss: test error before assigning
  crypto: sun8i-ss: use sg_nents_for_len
  crypto: sun8i-ss: do not allocate memory when handling hash requests
  crypto: sun8i-ss: do not zeroize all pad
  crypto: sun8i-ss: handle requests if last block is not modulo 64
  crypto: sun8i-ss: rework debugging
  crypto: sun8i-ss: Add function for handling hash padding
  crypto: sun8i-ss: add hmac(sha1)
  crypto: sun8i-ss: do not fallback if cryptlen is less than sg length
  crypto: sun8i-ce: Add function for handling hash padding
  crypto: sun8i-ce: use sg_nents_for_len
  crypto: sun8i-ce: rework debugging
  crypto: sun8i-ce: do not fallback if cryptlen is less than sg length

 .../allwinner/sun4i-ss/sun4i-ss-cipher.c      |  22 +-
 drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h  |   1 +
 .../allwinner/sun8i-ce/sun8i-ce-cipher.c      | 102 +++--
 .../crypto/allwinner/sun8i-ce/sun8i-ce-core.c |  54 ++-
 .../crypto/allwinner/sun8i-ce/sun8i-ce-hash.c | 130 ++++--
 drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h  |  19 +-
 .../allwinner/sun8i-ss/sun8i-ss-cipher.c      | 180 +++++---
 .../crypto/allwinner/sun8i-ss/sun8i-ss-core.c |  92 ++++-
 .../crypto/allwinner/sun8i-ss/sun8i-ss-hash.c | 385 +++++++++++++++---
 drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h  |  33 +-
 10 files changed, 767 insertions(+), 251 deletions(-)

Comments

Herbert Xu May 13, 2022, 9:34 a.m. UTC | #1
On Mon, May 02, 2022 at 08:19:10PM +0000, Corentin Labbe wrote:
> Hello
> 
> This series is all fixes which I found on allwinner crypto drivers.
> 
> Regards
> 
> Change since v1:
> - fixed endianess of hash_pad() paramaters
> 
> Corentin Labbe (19):
>   crypto: sun8i-ce: Fix minor style issue
>   crypto: sun8i-ce: do not allocate memory when handling requests
>   crypto: sun4i-ss: do not allocate backup IV on requests
>   crypto: sun8i-ss: rework handling of IV
>   crypto: sun8i-ss: handle zero sized sg
>   crypto: sun8i-ss: remove redundant test
>   crypto: sun8i-ss: test error before assigning
>   crypto: sun8i-ss: use sg_nents_for_len
>   crypto: sun8i-ss: do not allocate memory when handling hash requests
>   crypto: sun8i-ss: do not zeroize all pad
>   crypto: sun8i-ss: handle requests if last block is not modulo 64
>   crypto: sun8i-ss: rework debugging
>   crypto: sun8i-ss: Add function for handling hash padding
>   crypto: sun8i-ss: add hmac(sha1)
>   crypto: sun8i-ss: do not fallback if cryptlen is less than sg length
>   crypto: sun8i-ce: Add function for handling hash padding
>   crypto: sun8i-ce: use sg_nents_for_len
>   crypto: sun8i-ce: rework debugging
>   crypto: sun8i-ce: do not fallback if cryptlen is less than sg length
> 
>  .../allwinner/sun4i-ss/sun4i-ss-cipher.c      |  22 +-
>  drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h  |   1 +
>  .../allwinner/sun8i-ce/sun8i-ce-cipher.c      | 102 +++--
>  .../crypto/allwinner/sun8i-ce/sun8i-ce-core.c |  54 ++-
>  .../crypto/allwinner/sun8i-ce/sun8i-ce-hash.c | 130 ++++--
>  drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h  |  19 +-
>  .../allwinner/sun8i-ss/sun8i-ss-cipher.c      | 180 +++++---
>  .../crypto/allwinner/sun8i-ss/sun8i-ss-core.c |  92 ++++-
>  .../crypto/allwinner/sun8i-ss/sun8i-ss-hash.c | 385 +++++++++++++++---
>  drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h  |  33 +-
>  10 files changed, 767 insertions(+), 251 deletions(-)

All applied.  Thanks.