]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
crypto: sa2ul - Fix AEAD fallback algorithm names
authorT Pratham <t-pratham@ti.com>
Wed, 15 Apr 2026 14:36:58 +0000 (20:06 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 16 Apr 2026 09:29:40 +0000 (17:29 +0800)
For authenc AEAD algorithms, sa2ul is trying to register very specific
-ce version as a fallback. This causes registration failure on SoCs
which do not have ARMv8-CE enabled/available. Change the fallback
algorithm from the specific driver name to generic algorithm name so
that the kernel can allocate any available fallback.

Fixes: d2c8ac187fc92 ("crypto: sa2ul - Add AEAD algorithm support")
Signed-off-by: T Pratham <t-pratham@ti.com>
Reviewed-by: Manorit Chawdhry <m-chawdhry@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/sa2ul.c

index df3defa1ef4b64f1df21d6952a8ee2025a8802e6..965a03d5b27ae4f5cca9fd5d8a3167ee4c3e1562 100644 (file)
@@ -1744,13 +1744,13 @@ static int sa_cra_init_aead(struct crypto_aead *tfm, const char *hash,
 static int sa_cra_init_aead_sha1(struct crypto_aead *tfm)
 {
        return sa_cra_init_aead(tfm, "sha1",
-                               "authenc(hmac(sha1-ce),cbc(aes-ce))");
+                               "authenc(hmac(sha1),cbc(aes))");
 }
 
 static int sa_cra_init_aead_sha256(struct crypto_aead *tfm)
 {
        return sa_cra_init_aead(tfm, "sha256",
-                               "authenc(hmac(sha256-ce),cbc(aes-ce))");
+                               "authenc(hmac(sha256),cbc(aes))");
 }
 
 static void sa_exit_tfm_aead(struct crypto_aead *tfm)