Re: [PATCH] crypto: af_alg - Allow additional ciphers for cryptsetup
From: Herbert Xu
Date: Fri Jul 17 2026 - 04:15:35 EST
On Sun, Jul 05, 2026 at 11:44:19AM -0700, Eric Biggers wrote:
> Add "xts(camellia)", "xts(serpent)", and "xts(twofish)" to the allowlist
> for af_alg_restrict=1. These niche AES alternatives have continued to
> see rare but persistent use via cryptsetup, which has historically
> relied on the AF_ALG support for these ciphers in XTS mode for
> performing the keyslot encryption. (cryptsetup v2.8.7 and later fall
> back to a temporary dm-crypt mapping, but that requires root.)
>
> Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>
> ---
> crypto/algif_skcipher.c | 3 +++
> 1 file changed, 3 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