Skip to content

crypto: Fix chaining support for stream ciphers (arc4 only for now)

Herbert Xu linux-crypto ltp oe-lkp 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 0 repliesNew
  2. v24 patches 0 repliesSuperseded
  3. v14 patches 2 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4crypto: skcipher - Add internal state supportcrypto/arc4.c crypto/cbc.c crypto/ecb.c +2 more+94 -220 replies
2/4crypto: skcipher - Make use of internal statecrypto/lskcipher.c crypto/skcipher.c include/crypto/skcipher.h+139 -80 replies
3/4crypto: arc4 - Add internal statecrypto/arc4.c+7 -10 replies
4/4crypto: algif_skcipher - Fix stream cipher chainingcrypto/algif_skcipher.c include/crypto/if_alg.h+70 -30 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [v3 PATCH 0/4] crypto: Fix chaining support for stream ciphers (arc4 only for now)

v3 updates the documentation for crypto_lskcipher_encrypt/decrypt. v2 fixes a crash when no export/import functions are provided.

This series of patches adds the ability to process a skcipher request in a piecemeal fashion, which is currently only possible for selected algorithms such as CBC and CTR.

Herbert Xu (4):
crypto: skcipher - Add internal state support
crypto: skcipher - Make use of internal state
crypto: arc4 - Add internal state
crypto: algif_skcipher - Fix stream cipher chaining

 crypto/algif_skcipher.c   |  71 ++++++++++++++++++++++-
 crypto/arc4.c             |   8 ++-
 crypto/cbc.c              |   6 +-
 crypto/ecb.c              |  10 ++--
 crypto/lskcipher.c        |  42 +++++++++++---
 crypto/skcipher.c         |  80 +++++++++++++++++++++++++-
 include/crypto/if_alg.h   |   2 +
 include/crypto/skcipher.h | 117 +++++++++++++++++++++++++++++++++++---
 8 files changed, 306 insertions(+), 30 deletions(-)

Cheers,

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt