mbox series

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

Message ID ZWqpPTHXuMvRmWi+@gondor.apana.org.au
Headers show
Series crypto: Fix chaining support for stream ciphers (arc4 only for now) | expand

Message

Herbert Xu Dec. 2, 2023, 3:49 a.m. UTC
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,