Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: sa2ul - Fix AEAD fallback algorithm names

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>

authored by

T Pratham and committed by
Herbert Xu
8451ab6a 1f48ad3b

+2 -2
+2 -2
drivers/crypto/sa2ul.c
··· 1744 1744 static int sa_cra_init_aead_sha1(struct crypto_aead *tfm) 1745 1745 { 1746 1746 return sa_cra_init_aead(tfm, "sha1", 1747 - "authenc(hmac(sha1-ce),cbc(aes-ce))"); 1747 + "authenc(hmac(sha1),cbc(aes))"); 1748 1748 } 1749 1749 1750 1750 static int sa_cra_init_aead_sha256(struct crypto_aead *tfm) 1751 1751 { 1752 1752 return sa_cra_init_aead(tfm, "sha256", 1753 - "authenc(hmac(sha256-ce),cbc(aes-ce))"); 1753 + "authenc(hmac(sha256),cbc(aes))"); 1754 1754 } 1755 1755 1756 1756 static void sa_exit_tfm_aead(struct crypto_aead *tfm)