Skip to content

crypto: Make memcpy_sglist usable for Crypto API

Herbert Xu linux-crypto 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2crypto: ccp - Include crypto/utils.h for crypto_memneqdrivers/crypto/ccp/ccp-ops.c+6 -50 replies
2/2crypto: scatterwalk - Move skcipher walk and use it for memcpy_sglistcrypto/scatterwalk.c crypto/skcipher.c include/crypto/algapi.h +2 more+329 -3312 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] crypto: Make memcpy_sglist usable for Crypto API

I added memcpy_sglist for the simple SG lists used by zswap. It is quite similar in terms functionality to the skcipher_null algorithm.

However, before memcpy_sglist can replace skcipher_null, it needs to handle funky SG lists generated by IPsec. The SG lists are distinct, but contain identical subsets.

This patch series adds this functionality to memcpy_sglist by remodelling it on top of skcipher_walk instead of scatterwalk.

As a prerequisite, skcipher_walk has been abstracted out of skcipher and moved into scatterwalk.

Herbert Xu (2):
crypto: ccp - Include crypto/utils.h for crypto_memneq
crypto: scatterwalk - Move skcipher walk and use it for memcpy_sglist

 crypto/scatterwalk.c               | 274 +++++++++++++++++++++++++++--
 crypto/skcipher.c                  | 261 +--------------------------
 drivers/crypto/ccp/ccp-ops.c       |  11 +-
 include/crypto/algapi.h            |  12 --
 include/crypto/internal/skcipher.h |  48 +----
 include/crypto/scatterwalk.h       |  65 ++++++-
 6 files changed, 335 insertions(+), 336 deletions(-)

base-commit: 432f98cf56cf1e0f812f79a713847b37ae86cf31

Signature · 1 line
2.39.5