aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/Kconfig
diff options
context:
space:
mode:
authorEneas U de Queiroz <cotequeiroz@gmail.com>2020-02-07 12:02:25 -0300
committerHerbert Xu <herbert@gondor.apana.org.au>2020-02-13 17:05:26 +0800
commitd6364b8128439a8c0e381f80c38667de9f15eef8 (patch)
tree921782c8c63eb6c52b430c247906f03e1923bf3f /drivers/crypto/Kconfig
parentcrypto: allwinner - remove redundant platform_get_irq error message (diff)
downloadlinux-dev-d6364b8128439a8c0e381f80c38667de9f15eef8.tar.xz
linux-dev-d6364b8128439a8c0e381f80c38667de9f15eef8.zip
crypto: qce - use cryptlen when adding extra sgl
The qce crypto driver appends an extra entry to the dst sgl, to maintain private state information. When the gcm driver sends requests to the ctr skcipher, it passes the authentication tag after the actual crypto payload, but it must not be touched. Commit 1336c2221bee ("crypto: qce - save a sg table slot for result buf") limited the destination sgl to avoid overwriting the authentication tag but it assumed the tag would be in a separate sgl entry. This is not always the case, so it is better to limit the length of the destination buffer to req->cryptlen before appending the result buf. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/Kconfig')
0 files changed, 0 insertions, 0 deletions