Skip to content

Commit

Permalink
crypto: talitos - Use proper form for algorithm driver names
Browse files Browse the repository at this point in the history
The name authenc(hmac(sha1-talitos),cbc(aes-talitos)) is potentially
ambiguous since it could also mean using the generic authenc template
on hmac(sha1-talitos) and cbc(aes-talitos).  In general, parentheses
should be reserved for templates that spawn algorithms.

This patches changes it to the form authenc-hmac-sha1-cbc-aes-talitos.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
herbertx committed Jul 10, 2008
1 parent 70bcaca commit ebbcf33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/crypto/talitos.c
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ static struct talitos_alg_template driver_algs[] = {
/* single-pass ipsec_esp descriptor */
{
.name = "authenc(hmac(sha1),cbc(aes))",
.driver_name = "authenc(hmac(sha1-talitos),cbc(aes-talitos))",
.driver_name = "authenc-hmac-sha1-cbc-aes-talitos",
.blocksize = TALITOS_AES_MIN_BLOCK_SIZE,
.aead = {
.setkey = aead_authenc_setkey,
Expand All @@ -1166,7 +1166,7 @@ static struct talitos_alg_template driver_algs[] = {
},
{
.name = "authenc(hmac(sha1),cbc(des3_ede))",
.driver_name = "authenc(hmac(sha1-talitos),cbc(3des-talitos))",
.driver_name = "authenc-hmac-sha1-cbc-3des-talitos",
.blocksize = TALITOS_3DES_MIN_BLOCK_SIZE,
.aead = {
.setkey = aead_authenc_setkey,
Expand Down

0 comments on commit ebbcf33

Please sign in to comment.