提交 e4c5c6c9 编写于 作者: H Herbert Xu 提交者: David S. Miller

[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: NHerbert Xu <herbert@gondor.apana.org.au>
上级 720a650f
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册