From: Herbert Xu <herbert@gondor.apana.org.au>
To: Linux Crypto Mailing List <linux-crypto@vger.kernel.org>
Subject: [PATCH 00/15] crypto: Add twopass lskcipher for adiantum
Date: Tue, 13 Feb 2024 17:04:25 +0800 [thread overview]
Message-ID: <cover.1707815065.git.herbert@gondor.apana.org.au> (raw)
In order to process the data incrementally, adiantum needs see the
source data twice. This patch series adds support for such algorithms
in lskcipher including adaptations to algif_skcipher.
For now this capability isn't actually exported completely through
algif_skcipher. That is, if the source data is too large to be fed
at once through an SG list the operation will fail with ENOSYS.
As a future extension, the incremental processing can be extended
through algif_skcipher (and perhaps even algif_aead). However,
I'd like to see some real uses for it before adding this complexity.
For example, one valid use-case would be some hardware that directly
supported such incremental processing.
In addition to converting adiantum, the underlying chacha algorithm
is also converted over to lskcipher.
The algorithms cts + xts have been converted too to ensure that the
tailsize mechanism works properly for them. While doing this the
parameters for cts + xts have been modified so that blocksize is now
1. This entails changing the paramters of all drivers that support
cts and/or xts.
Herbert Xu (15):
crypto: skcipher - Add tailsize attribute
crypto: algif_skcipher - Add support for tailsize
crypto: skcipher - Remove ivsize check for lskcipher simple templates
crypto: xts - Convert from skcipher to lskcipher
crypto: skcipher - Add twopass attribute
crypto: algif_skcipher - Disallow nonincremental algorithms
crypto: adiantum - Use lskcipher instead of cipher
crypto: skcipher - Add incremental support to lskcipher wrapper
crypto: chacha-generic - Convert from skcipher to lskcipher
crypto: skcipher - Move nesting check into ecb
crypto: skcipher - Propagate zero-length requests to lskcipher
crypto: cts - Convert from skcipher to lskcipher
crypto: cts,xts - Update parameters blocksize/chunksize/tailsize
crypto: lskcipher - Export incremental interface internally
crypto: adiantum - Convert from skcipher to lskcipher
arch/arm/crypto/aes-ce-glue.c | 8 +-
arch/arm/crypto/aes-neonbs-glue.c | 4 +-
arch/arm64/crypto/aes-glue.c | 8 +-
arch/arm64/crypto/aes-neonbs-glue.c | 4 +-
arch/arm64/crypto/sm4-ce-glue.c | 8 +-
arch/powerpc/crypto/aes-spe-glue.c | 4 +-
arch/powerpc/crypto/aes_xts.c | 4 +-
arch/s390/crypto/aes_s390.c | 4 +-
arch/s390/crypto/paes_s390.c | 4 +-
arch/x86/crypto/aesni-intel_glue.c | 8 +-
crypto/adiantum.c | 573 ++++++++++--------
crypto/algif_skcipher.c | 11 +-
crypto/cbc.c | 5 +
crypto/chacha_generic.c | 161 ++---
crypto/cts.c | 355 +++--------
crypto/ecb.c | 4 +
crypto/lskcipher.c | 94 ++-
crypto/skcipher.c | 18 +-
crypto/xts.c | 572 +++++++----------
drivers/crypto/atmel-aes.c | 4 +-
drivers/crypto/axis/artpec6_crypto.c | 2 +
drivers/crypto/bcm/cipher.c | 4 +-
drivers/crypto/caam/caamalg.c | 4 +-
drivers/crypto/caam/caamalg_qi.c | 4 +-
drivers/crypto/caam/caamalg_qi2.c | 4 +-
drivers/crypto/cavium/cpt/cptvf_algs.c | 4 +-
.../crypto/cavium/nitrox/nitrox_skcipher.c | 8 +-
drivers/crypto/ccp/ccp-crypto-aes-xts.c | 4 +-
drivers/crypto/ccree/cc_cipher.c | 12 +-
drivers/crypto/chelsio/chcr_algo.c | 4 +-
drivers/crypto/hisilicon/sec/sec_algs.c | 4 +-
drivers/crypto/hisilicon/sec2/sec_crypto.c | 23 +-
.../crypto/inside-secure/safexcel_cipher.c | 4 +-
.../intel/keembay/keembay-ocs-aes-core.c | 11 +-
.../crypto/intel/qat/qat_common/qat_algs.c | 4 +-
.../crypto/marvell/octeontx/otx_cptvf_algs.c | 4 +-
.../marvell/octeontx2/otx2_cptvf_algs.c | 4 +-
drivers/crypto/qce/skcipher.c | 6 +-
include/crypto/internal/chacha.h | 22 +-
include/crypto/internal/skcipher.h | 43 ++
include/crypto/skcipher.h | 65 ++
include/crypto/xts.h | 24 +-
42 files changed, 1067 insertions(+), 1050 deletions(-)
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
next reply other threads:[~2024-02-13 9:16 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-13 9:04 Herbert Xu [this message]
2023-12-02 4:55 ` [PATCH 01/15] crypto: skcipher - Add tailsize attribute Herbert Xu
2024-02-14 23:44 ` Eric Biggers
2024-02-15 6:40 ` Herbert Xu
2024-02-23 6:01 ` Eric Biggers
2023-12-02 5:42 ` [PATCH 02/15] crypto: algif_skcipher - Add support for tailsize Herbert Xu
2023-12-04 10:24 ` [PATCH 04/15] crypto: xts - Convert from skcipher to lskcipher Herbert Xu
2023-12-05 6:09 ` [PATCH 05/15] crypto: skcipher - Add twopass attribute Herbert Xu
2023-12-05 6:13 ` [PATCH 06/15] crypto: algif_skcipher - Disallow nonincremental algorithms Herbert Xu
2024-02-14 22:56 ` Eric Biggers
2024-02-15 6:47 ` Herbert Xu
2024-02-23 6:00 ` Eric Biggers
2023-12-05 9:52 ` [PATCH 07/15] crypto: adiantum - Use lskcipher instead of cipher Herbert Xu
2023-12-06 4:46 ` [PATCH 08/15] crypto: skcipher - Add incremental support to lskcipher wrapper Herbert Xu
2023-12-06 5:49 ` [PATCH 09/15] crypto: chacha-generic - Convert from skcipher to lskcipher Herbert Xu
2024-02-14 23:41 ` Eric Biggers
2024-02-15 6:52 ` Herbert Xu
2023-12-06 6:05 ` [PATCH 10/15] crypto: skcipher - Move nesting check into ecb Herbert Xu
2023-12-06 8:55 ` [PATCH 11/15] crypto: skcipher - Propagate zero-length requests to lskcipher Herbert Xu
2023-12-07 10:03 ` [PATCH 03/15] crypto: skcipher - Remove ivsize check for lskcipher simple templates Herbert Xu
2023-12-07 10:13 ` [PATCH 12/15] crypto: cts - Convert from skcipher to lskcipher Herbert Xu
2023-12-29 10:47 ` [PATCH 13/15] crypto: cts,xts - Update parameters blocksize/chunksize/tailsize Herbert Xu
2024-02-14 23:00 ` Eric Biggers
2024-02-15 7:57 ` Herbert Xu
2024-02-23 6:09 ` Eric Biggers
2023-12-30 7:16 ` [PATCH 14/15] crypto: lskcipher - Export incremental interface internally Herbert Xu
2024-02-13 8:48 ` [PATCH 15/15] crypto: adiantum - Convert from skcipher to lskcipher Herbert Xu
2024-02-14 23:35 ` [PATCH 00/15] crypto: Add twopass lskcipher for adiantum Eric Biggers
2024-02-15 8:20 ` Herbert Xu
2024-02-23 6:39 ` Eric Biggers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1707815065.git.herbert@gondor.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.