Skip to content

crypto: AF_ALG - consolidation

Stephan Müller linux-crypto 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16crypto: AF_ALG - consolidation of common data structurescrypto/algif_aead.c crypto/algif_skcipher.c include/crypto/if_alg.h+112 -1180 replies
2/16crypto: AF_ALG - consolidation of context data structurecrypto/algif_aead.c crypto/algif_skcipher.c include/crypto/if_alg.h+70 -640 replies
3/16crypto: AF_ALG - consolidate send buffer service functionscrypto/algif_aead.c crypto/algif_skcipher.c include/crypto/if_alg.h+38 -400 replies
4/16crypto: AF_ALG - consolidate RX buffer service functionscrypto/algif_aead.c crypto/algif_skcipher.c include/crypto/if_alg.h+28 -300 replies
5/16crypto: AF_ALG - consolidate TX SGL allocationcrypto/af_alg.c crypto/algif_aead.c crypto/algif_skcipher.c +1 more+43 -640 replies
6/16crypto: AF_ALG - consolidate counting TX SG entriescrypto/af_alg.c crypto/algif_aead.c crypto/algif_skcipher.c +1 more+59 -770 replies
7/16crypto: AF_ALG - consolidate counting TX SG entriescrypto/af_alg.c crypto/algif_aead.c crypto/algif_skcipher.c +1 more+87 -1290 replies
8/16crypto: AF_ALG - consolidate freeing TX/RX SGLscrypto/af_alg.c crypto/algif_aead.c crypto/algif_skcipher.c +1 more+40 -620 replies
9/16crypto: AF_ALG - consolidate waiting for wmemcrypto/af_alg.c crypto/algif_aead.c crypto/algif_skcipher.c +1 more+40 -560 replies
10/16crypto: AF_ALG - consolidate waking up on writable memorycrypto/af_alg.c crypto/algif_aead.c crypto/algif_skcipher.c +1 more+26 -360 replies
11/16crypto: AF_ALG - consolidate waiting for TX datacrypto/af_alg.c crypto/algif_aead.c crypto/algif_skcipher.c +1 more+42 -630 replies
12/16crypto: AF_ALG - consolidate waking up caller for TX datacrypto/af_alg.c crypto/algif_aead.c crypto/algif_skcipher.c +1 more+31 -440 replies
13/16crypto: AF_ALG - consolidate sendmsg implementationcrypto/af_alg.c crypto/algif_aead.c crypto/algif_skcipher.c +1 more+161 -2570 replies
14/16crypto: AF_ALG - consolidate sendpage implementationcrypto/af_alg.c crypto/algif_aead.c crypto/algif_skcipher.c +1 more+64 -1080 replies
15/16crypto: AF_ALG - consolidate AIO callback handlercrypto/af_alg.c crypto/algif_aead.c crypto/algif_skcipher.c +1 more+38 -440 replies
16/16crypto: AF_ALG - consolidate poll syscall handlercrypto/af_alg.c crypto/algif_aead.c crypto/algif_skcipher.c +1 more+30 -430 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/16] crypto: AF_ALG - consolidation

Hi,

with the update of the algif_aead and algif_skcipher memory management, a lot of code duplication has been introduced deliberately.

This patch set cleans up the low-hanging fruits. The cleanup of the recvmsg RX SGL copy will come separately as this is not a simple copy and paste operation.

Each patch was tested individually with libkcapi's test suite.

The patch set goes on top of patches "crypto: AF_ALG - return error code when no data was processed" and "crypto: algif_aead - copy AAD from src to dst".

Stephan Mueller (16):
crypto: AF_ALG - consolidation of common data structures
crypto: AF_ALG - consolidation of context data structure
crypto: AF_ALG - consolidate send buffer service functions
crypto: AF_ALG - consolidate RX buffer service functions
crypto: AF_ALG - consolidate TX SGL allocation
crypto: AF_ALG - consolidate counting TX SG entries
crypto: AF_ALG - consolidate counting TX SG entries
crypto: AF_ALG - consolidate freeing TX/RX SGLs
crypto: AF_ALG - consolidate waiting for wmem
crypto: AF_ALG - consolidate waking up on writable memory
crypto: AF_ALG - consolidate waiting for TX data
crypto: AF_ALG - consolidate waking up caller for TX data
crypto: AF_ALG - consolidate sendmsg implementation
crypto: AF_ALG - consolidate sendpage implementation
crypto: AF_ALG - consolidate AIO callback handler
crypto: AF_ALG - consolidate poll syscall handler

 crypto/af_alg.c         | 597 ++++++++++++++++++++++++++++++++++++++++++++
 crypto/algif_aead.c     | 641 +++---------------------------------------------
 crypto/algif_skcipher.c | 585 +++----------------------------------------
 include/crypto/if_alg.h | 163 ++++++++++++
 4 files changed, 830 insertions(+), 1156 deletions(-)
Signature · 1 line
2.13.3