Re: [PATCH] crypto: caam/qi,qi2 - set plain_keylen for skcipher descriptors

From: Herbert Xu

Date: Thu Oct 08 2026 - 04:17:06 EST


On Mon, Sep 28, 2026 at 04:09:16PM +0200, Vincent Jardin via B4 Relay wrote:
> From: Vincent Jardin <vjardin@xxxxxxx>
>
> Since the commit 66b9a095f7f9
> ("crypto: caam - Add support of paes algorithm")
>
> The shared descriptor then loads a zero-length key and the SEC decodes
> the inlined key bytes as commands.
>
> Test: with CONFIG_CRYPTO_SELFTESTS on LX2160A every skcipher but xts fails:
>
> dpaa2_caam dpseci.0: 40000307: DECO: desc idx 3: Invalid LOAD Command
> alg: skcipher: ctr-aes-caam-qi2 encryption failed on test vector 0; expected_error=0, actual_error=-22, cfg="in-place (one sglist)"
>
> caamalg_qi.c is compile-tested only.
>
> Fixes: 66b9a095f7f9 ("crypto: caam - Add support of paes algorithm")
> Signed-off-by: Vincent Jardin <vjardin@xxxxxxx>
> ---
> drivers/crypto/caam/caamalg_qi.c | 2 ++
> drivers/crypto/caam/caamalg_qi2.c | 2 ++
> 2 files changed, 4 insertions(+)

Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt