]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: tcrypt - Fix missing return value check
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Fri, 13 Aug 2021 07:55:06 +0000 (15:55 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 21 Aug 2021 07:44:57 +0000 (15:44 +0800)
commitda67e25ee733f87ac5d2b85c4a6f4a3d22beef39
tree5f5eb45afe4b67541055ddf77975c44043ca1c89
parente1f0c8075197f341f4e8547a854e1b8f001b9ca4
crypto: tcrypt - Fix missing return value check

There are several places where the return value check of crypto_aead_setkey
and crypto_aead_setauthsize were lost. It is necessary to add these checks.

At the same time, move the crypto_aead_setauthsize() call out of the loop,
and only need to call it once after load transform.

Fixee: 6b35989102c1 ("crypto: tcrypt - Added speed tests for AEAD crypto alogrithms in tcrypt test suite")
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Reviewed-by: Vitaly Chikunov <vt@altlinux.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/tcrypt.c