summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/mxs-dcp.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2018-10-08 13:16:59 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2018-10-12 08:20:45 +0200
commitcc3cc48972371b3c2e94f16b6ac7bdad7fdfc93c (patch)
treea08b46acc09d09c546ff8e226344ee1b5f65f87e /drivers/crypto/mxs-dcp.c
parentcrypto: testmgr - fix sizeof() on COMP_BUF_SIZE (diff)
downloadlinux-cc3cc48972371b3c2e94f16b6ac7bdad7fdfc93c.tar.xz
linux-cc3cc48972371b3c2e94f16b6ac7bdad7fdfc93c.zip
crypto: arm64/aes-blk - ensure XTS mask is always loaded
Commit 2e5d2f33d1db ("crypto: arm64/aes-blk - improve XTS mask handling") optimized away some reloads of the XTS mask vector, but failed to take into account that calls into the XTS en/decrypt routines will take a slightly different code path if a single block of input is split across different buffers. So let's ensure that the first load occurs unconditionally, and move the reload to the end so it doesn't occur needlessly. Fixes: 2e5d2f33d1db ("crypto: arm64/aes-blk - improve XTS mask handling") Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/mxs-dcp.c')
0 files changed, 0 insertions, 0 deletions