Re: [PATCH] crypto: af_alg: Allow cbc(paes)
From: Herbert Xu
Date: Fri Jul 31 2026 - 03:46:25 EST
On Sun, Jul 26, 2026 at 09:27:16PM +0200, Richard Weinberger wrote:
> Commit 7524070f26d8 ("crypto: af_alg - Drop support for off-CPU cryptography")
> breaks a special use case. The cbc-paes-caam driver implements the
> algorithm cbc(paes), it offers a way to use AES in CBC mode with key
> material unknown to userspace. Instead of an AES key a CAAM BLOB is
> passed to the kernel. So, this crypto operation cannot be
> implemented in a userspace library and needs always help from the
> kernel.
>
> Explicitly allow this use case.
>
> Cc: Demi Marie Obenour <demiobenour@xxxxxxxxx>
> Suggested-by: Eric Biggers <ebiggers@xxxxxxxxxx>
> Fixes: 7524070f26d8 ("crypto: af_alg - Drop support for off-CPU cryptography")
> Signed-off-by: Richard Weinberger <richard@xxxxxx>
> ---
> crypto/algif_skcipher.c | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
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