]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
crypto: talitos - Use proper form for algorithm driver names
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 3 Jul 2008 11:14:02 +0000 (19:14 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jul 2008 12:35:17 +0000 (20:35 +0800)
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>
drivers/crypto/talitos.c

index e8459e00da311dc37bd1755d05d555fbe3e69635..8c270cd7baacd7d644ca03f047c7e71ec077c407 100644 (file)
@@ -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,
@@ -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,