diff options
author | Tianjia Zhang <tianjia.zhang@linux.alibaba.com> | 2021-08-13 10:55:06 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-08-21 10:44:57 +0300 |
commit | 7b3d52683b3a47c0ba1dfd6b5994a3a795b06972 (patch) | |
tree | 5f5eb45afe4b67541055ddf77975c44043ca1c89 /crypto/anubis.c | |
parent | a52626106d6f7edf3d106c065e13a0313cfeb82f (diff) | |
download | linux-7b3d52683b3a47c0ba1dfd6b5994a3a795b06972.tar.xz |
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: 53f52d7aecb4 ("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>
Diffstat (limited to 'crypto/anubis.c')
0 files changed, 0 insertions, 0 deletions