Skip to content

crypto: caam - xts(aes) updates

Andrei Botila linux-crypto lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 2 repliesIn review
  2. v212 patches 2 repliesSuperseded
  3. v1 posting 2/29 patches 21 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 posting 1/29 patches6 repliesSuperseded

Changes in v3 from the cover letter

- modified xts_skcipher_ivsize() based on comments
- squashed the previous 7-9/12 commits

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10crypto: caam/jr - add fallback for XTS with more than 8B IVdrivers/crypto/caam/Kconfig drivers/crypto/caam/caamalg.c+66 -70 replies
2/10crypto: caam/qi - add fallback for XTS with more than 8B IVdrivers/crypto/caam/Kconfig drivers/crypto/caam/caamalg_qi.c+68 -50 replies
3/10crypto: caam/qi2 - add fallback for XTS with more than 8B IVdrivers/crypto/caam/Kconfig drivers/crypto/caam/caamalg_qi2.c drivers/crypto/caam/caamalg_qi2.h+78 -50 replies
4/10crypto: caam/jr - add support for more XTS key lengthsdrivers/crypto/caam/caamalg.c+10 -30 replies
5/10crypto: caam/qi - add support for more XTS key lengthsdrivers/crypto/caam/caamalg_qi.c+10 -30 replies
6/10crypto: caam/qi2 - add support for more XTS key lengthsdrivers/crypto/caam/caamalg_qi2.c+12 -40 replies
7/10crypto: caam - add xts check for block length equal to zerodrivers/crypto/caam/caamalg.c drivers/crypto/caam/caamalg_qi.c drivers/crypto/caam/caamalg_qi2.c+24 -40 replies
8/10crypto: caam/jr - add support for XTS with 16B IVdrivers/crypto/caam/caamalg.c drivers/crypto/caam/caamalg_desc.c+24 -150 replies
9/10crypto: caam/qi - add support for XTS with 16B IVdrivers/crypto/caam/caamalg_qi.c+8 -40 replies
10/10crypto: caam/qi2 - add support for XTS with 16B IVdrivers/crypto/caam/caamalg_qi2.c+10 -50 replies

Reviews trailers per patch

None of the 10 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchHoria Geantă
SeriesR-b
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 00/10] crypto: caam - xts(aes) updates

From: Andrei Botila <[email protected]>

This patch series fixes some problems in CAAM's implementation of xts(aes):
- CAAM until Era 9 can't process XTS with 16B IV
- CAAM can only process in hardware XTS key lengths of 16B and 32B
- These hardware limitations are resolved through a fallback
- CAAM used to return 0 for XTS block length equal to zero

This patch series also adds a new feature in CAAM's xts(aes):
- CAAM is now able to process XTS with 16B IV in HW

Changes since v2:
- modified xts_skcipher_ivsize() based on comments
- squashed the previous 7-9/12 commits

Changes since v1:
- use only get_unaligned() for calculating XTS IV size
- fixed the double calling of crypto_skcipher_set_reqsize() in case of XTS
- added a patch which modifies the return value for XTS when block length is equal to zero

Andrei Botila (10):
crypto: caam/jr - add fallback for XTS with more than 8B IV
crypto: caam/qi - add fallback for XTS with more than 8B IV
crypto: caam/qi2 - add fallback for XTS with more than 8B IV
crypto: caam/jr - add support for more XTS key lengths
crypto: caam/qi - add support for more XTS key lengths
crypto: caam/qi2 - add support for more XTS key lengths
crypto: caam - add xts check for block length equal to zero
crypto: caam/jr - add support for XTS with 16B IV
crypto: caam/qi - add support for XTS with 16B IV
crypto: caam/qi2 - add support for XTS with 16B IV

 drivers/crypto/caam/Kconfig        |   3 +
 drivers/crypto/caam/caamalg.c      |  94 +++++++++++++++++++++---
 drivers/crypto/caam/caamalg_desc.c |  27 ++++---
 drivers/crypto/caam/caamalg_qi.c   |  94 +++++++++++++++++++++---
 drivers/crypto/caam/caamalg_qi2.c  | 111 ++++++++++++++++++++++++++---
 drivers/crypto/caam/caamalg_qi2.h  |   2 +
 6 files changed, 293 insertions(+), 38 deletions(-)
Signature · 1 line
2.17.1