提交 56fcf73a 编写于 作者: H Herbert Xu

crypto: nx - Remove unnecessary maxauthsize check

The crypto layer already checks maxauthsize when setauthsize is
called.  So there is no need to check it again within setauthsize.
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 6da9c233
......@@ -96,9 +96,6 @@ static int gcm4106_aes_nx_set_key(struct crypto_aead *tfm,
static int gcm_aes_nx_setauthsize(struct crypto_aead *tfm,
unsigned int authsize)
{
if (authsize > crypto_aead_alg(tfm)->maxauthsize)
return -EINVAL;
crypto_aead_crt(tfm)->authsize = authsize;
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部