mbox series

[v3,0/8] crypto: skcipher_walk cleanups

Message ID 20250105193416.36537-1-ebiggers@kernel.org
Headers show
Series crypto: skcipher_walk cleanups | expand

Message

Eric Biggers Jan. 5, 2025, 7:34 p.m. UTC
This series cleans up and optimizes some of the skcipher_walk code.

I've split this out from my original series
"crypto: scatterlist handling improvements"
(https://lore.kernel.org/linux-crypto/20241230001418.74739-1-ebiggers@kernel.org/).
Please consider applying this smaller set for 6.14, and we can do
patches 11-29 of the original series later.

Other changes in v3:
   - Added comments in the patch
     "crypto: skcipher - optimize initializing skcipher_walk fields"

Eric Biggers (8):
  crypto: skcipher - document skcipher_walk_done() and rename some vars
  crypto: skcipher - remove unnecessary page alignment of bounce buffer
  crypto: skcipher - remove redundant clamping to page size
  crypto: skcipher - remove redundant check for SKCIPHER_WALK_SLOW
  crypto: skcipher - fold skcipher_walk_skcipher() into
    skcipher_walk_virt()
  crypto: skcipher - clean up initialization of skcipher_walk::flags
  crypto: skcipher - optimize initializing skcipher_walk fields
  crypto: skcipher - call cond_resched() directly

 crypto/skcipher.c                  | 206 +++++++++++++----------------
 include/crypto/internal/skcipher.h |   2 +-
 2 files changed, 90 insertions(+), 118 deletions(-)


base-commit: 7fa4817340161a34d5b4ca39e96d6318d37c1d3a