diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-09-28 09:07:12 +0800 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 16:55:46 -0700 |
commit | a756adb565ce3e7a19caa0e4abe9ba7e12ff952b (patch) | |
tree | a9e85749ff1ebb31145b6ade8117bde68fd31050 /crypto/authenc.c | |
parent | 3360a074873a0970b661a1b52f714162c995a1e2 (diff) | |
download | linux-crypto-a756adb565ce3e7a19caa0e4abe9ba7e12ff952b.tar.gz linux-crypto-a756adb565ce3e7a19caa0e4abe9ba7e12ff952b.zip |
[CRYPTO] authenc: Kill spaces in algorithm names
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>
Diffstat (limited to 'crypto/authenc.c')
-rw-r--r-- | crypto/authenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/authenc.c b/crypto/authenc.c index 86b3ac88..0b29a6ae 100644 --- a/crypto/authenc.c +++ b/crypto/authenc.c @@ -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; |