mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
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: d2c8ac187f ("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>
This commit is contained in:
parent
1f48ad3b19
commit
8451ab6ad6
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user