Linux cryptographic layer development
 help / color / mirror / Atom feed
* [PATCH 0/2] crypto: Make memcpy_sglist usable for Crypto API
@ 2025-04-27  0:42 Herbert Xu
  2025-04-27  0:42 ` [PATCH 1/2] crypto: ccp - Include crypto/utils.h for crypto_memneq Herbert Xu
  2025-04-27  0:42 ` [PATCH 2/2] crypto: scatterwalk - Move skcipher walk and use it for memcpy_sglist Herbert Xu
  0 siblings, 2 replies; 5+ messages in thread
From: Herbert Xu @ 2025-04-27  0:42 UTC (permalink / raw)
  To: Linux Crypto Mailing List

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
-- 
2.39.5


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-04-27  1:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-27  0:42 [PATCH 0/2] crypto: Make memcpy_sglist usable for Crypto API Herbert Xu
2025-04-27  0:42 ` [PATCH 1/2] crypto: ccp - Include crypto/utils.h for crypto_memneq Herbert Xu
2025-04-27  0:42 ` [PATCH 2/2] crypto: scatterwalk - Move skcipher walk and use it for memcpy_sglist Herbert Xu
2025-04-27  1:08   ` Eric Biggers
2025-04-27  1:12     ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox