diff options
author | Tianjia Zhang <tianjia.zhang@linux.alibaba.com> | 2021-08-13 15:55:06 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-08-21 15:44:57 +0800 |
commit | 0d1222b46b6793e2d4d50415ebe5b66c9bd16c0c (patch) | |
tree | c3658563c895f24cdf68bcf90a4a82629771435a /crypto/chacha20poly1305.c | |
parent | d5befd9031badeb8dc2001cf4ff4925024fb37c1 (diff) | |
download | linux-crypto-0d1222b46b6793e2d4d50415ebe5b66c9bd16c0c.tar.gz linux-crypto-0d1222b46b6793e2d4d50415ebe5b66c9bd16c0c.zip |
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: 78470cf88700 ("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/chacha20poly1305.c')
0 files changed, 0 insertions, 0 deletions