Skip to content

Commit 8451ab6

Browse files
Pratham-Therbertx
authored andcommitted
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: d2c8ac1 ("crypto: sa2ul - Add AEAD algorithm support") Signed-off-by: T Pratham <[email protected]> Reviewed-by: Manorit Chawdhry <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 1f48ad3 commit 8451ab6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/crypto/sa2ul.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1744,13 +1744,13 @@ static int sa_cra_init_aead(struct crypto_aead *tfm, const char *hash,
17441744
static int sa_cra_init_aead_sha1(struct crypto_aead *tfm)
17451745
{
17461746
return sa_cra_init_aead(tfm, "sha1",
1747-
"authenc(hmac(sha1-ce),cbc(aes-ce))");
1747+
"authenc(hmac(sha1),cbc(aes))");
17481748
}
17491749

17501750
static int sa_cra_init_aead_sha256(struct crypto_aead *tfm)
17511751
{
17521752
return sa_cra_init_aead(tfm, "sha256",
1753-
"authenc(hmac(sha256-ce),cbc(aes-ce))");
1753+
"authenc(hmac(sha256),cbc(aes))");
17541754
}
17551755

17561756
static void sa_exit_tfm_aead(struct crypto_aead *tfm)

0 commit comments

Comments
 (0)