Commit 8451ab6a authored by T Pratham's avatar T Pratham Committed by Herbert Xu
Browse files

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: d2c8ac18 ("crypto: sa2ul - Add AEAD algorithm support")
Signed-off-by: default avatarT Pratham <t-pratham@ti.com>
Reviewed-by: default avatarManorit Chawdhry <m-chawdhry@ti.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 1f48ad3b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)