[CRYPTO] authenc: Kill spaces in algorithm names
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 28 Sep 2007 01:07:12 +0000 (09:07 +0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:55:46 +0000 (16:55 -0700)
We do not allow spaces in algorithm names or parameters.  Thanks to Joy Latten
for pointing this out.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/authenc.c

index 86b3ac88eab7e683bc70bcaca19ec83b36c268d8..0b29a6ae673d257baba2eb5b1a17460e28204f4a 100644 (file)
@@ -312,12 +312,12 @@ static struct crypto_instance *crypto_authenc_alloc(struct rtattr **tb)
 
        err = -ENAMETOOLONG;
        if (snprintf(inst->alg.cra_name, CRYPTO_MAX_ALG_NAME,
-                    "authenc(%s, %u, %s, %u)", auth->cra_name, authsize,
+                    "authenc(%s,%u,%s,%u)", auth->cra_name, authsize,
                     enc->cra_name, enckeylen) >= CRYPTO_MAX_ALG_NAME)
                goto err_free_inst;
 
        if (snprintf(inst->alg.cra_driver_name, CRYPTO_MAX_ALG_NAME,
-                    "authenc(%s, %u, %s, %u)", auth->cra_driver_name,
+                    "authenc(%s,%u,%s,%u)", auth->cra_driver_name,
                     authsize, enc->cra_driver_name, enckeylen) >=
            CRYPTO_MAX_ALG_NAME)
                goto err_free_inst;