summaryrefslogtreecommitdiff
path: root/crypto/Kconfig
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-02-11 19:25:21 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2017-02-15 13:23:45 +0800
commit9f8dc385c1313f50323a79e3ecc44cd09b8d449a (patch)
treec00a611bec0ae3d073f0d108f3ee93ddaf4ba02c /crypto/Kconfig
parent34bd71c0061c774d52b7cac58120ff37f112da58 (diff)
downloadlinux-crypto-9f8dc385c1313f50323a79e3ecc44cd09b8d449a.tar.gz
linux-crypto-9f8dc385c1313f50323a79e3ecc44cd09b8d449a.zip
crypto: ccm - honour alignmask of subordinate MAC cipher
The CCM driver was recently updated to defer the MAC part of the algorithm to a dedicated crypto transform, and a template for instantiating such transforms was added at the same time. However, this new cbcmac template fails to take the alignmask of the encapsulated cipher into account, which may result in buffer addresses being passed down that are not sufficiently aligned. So update the code to ensure that the digest buffer in the desc ctx appears at a sufficiently aligned offset, and tweak the code so that all calls to crypto_cipher_encrypt_one() operate on this buffer exclusively. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/Kconfig')
0 files changed, 0 insertions, 0 deletions