Skip to content

crypto: allwinner: lots of fixes

Corentin Labbe linux-arm-kernel linux-crypto linux-sunxi lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest19 patches 1 replyIn review
  2. v119 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- fixed endianess of hash_pad() paramaters

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19crypto: sun8i-ce: Fix minor style issuedrivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c+0 -10 replies
2/19crypto: sun8i-ce: do not allocate memory when handling requestsdrivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h+29 -280 replies
3/19crypto: sun4i-ss: do not allocate backup IV on requestsdrivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h+9 -140 replies
4/19crypto: sun8i-ss: rework handling of IVdrivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h+107 -520 replies
5/19crypto: sun8i-ss: handle zero sized sgdrivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c+9 -10 replies
6/19crypto: sun8i-ss: remove redundant testdrivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c+1 -110 replies
7/19crypto: sun8i-ss: test error before assigningdrivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c+4 -40 replies
8/19crypto: sun8i-ss: use sg_nents_for_lendrivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c+10 -130 replies
9/19crypto: sun8i-ss: do not allocate memory when handling hash requestsdrivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h+17 -120 replies
10/19crypto: sun8i-ss: do not zeroize all paddrivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c+4 -20 replies
11/19crypto: sun8i-ss: handle requests if last block is not modulo 64drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h+29 -100 replies
12/19crypto: sun8i-ss: rework debuggingdrivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c +1 more+83 -220 replies
13/19crypto: sun8i-ss: Add function for handling hash paddingdrivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c+65 -220 replies
14/19crypto: sun8i-ss: add hmac(sha1)drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h+231 -60 replies
15/19crypto: sun8i-ss: do not fallback if cryptlen is less than sg lengthdrivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c+9 -100 replies
16/19crypto: sun8i-ce: Add function for handling hash paddingdrivers/crypto/allwinner/sun8i-ce/sun8i-ce-hash.c+65 -300 replies
17/19crypto: sun8i-ce: use sg_nents_for_lendrivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c drivers/crypto/allwinner/sun8i-ce/sun8i-ce-hash.c+15 -180 replies
18/19crypto: sun8i-ce: rework debuggingdrivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c drivers/crypto/allwinner/sun8i-ce/sun8i-ce-hash.c +1 more+96 -190 replies
19/19crypto: sun8i-ce: do not fallback if cryptlen is less than sg lengthdrivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c+10 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/19] crypto: allwinner: lots of fixes

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(-)
Signature · 1 line
2.35.1