From patchwork Sat Dec 2 03:49:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herbert Xu X-Patchwork-Id: 749896 Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 842301B3 for ; Fri, 1 Dec 2023 19:49:14 -0800 (PST) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1r9H08-006116-28; Sat, 02 Dec 2023 11:49:09 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Sat, 02 Dec 2023 11:49:17 +0800 Date: Sat, 2 Dec 2023 11:49:17 +0800 From: Herbert Xu To: Eric Biggers Cc: Linux Crypto Mailing List , Ard Biesheuvel , Vadim Fedorenko Subject: [v3 PATCH 0/4] crypto: Fix chaining support for stream ciphers (arc4 only for now) Message-ID: References: <20230920062551.GB2739@sol.localdomain> <20230922031030.GB935@sol.localdomain> <20231117054231.GC972@sol.localdomain> <20231127222803.GC1463@sol.localdomain> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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,