]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: arm64/aes-cts-cbc - factor out CBC en/decryption of a walk
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 19 Aug 2019 14:17:35 +0000 (17:17 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Aug 2019 08:05:27 +0000 (18:05 +1000)
commit74d3d661db5517cd119a529119a8afdeefba2c1f
tree9a901ca468349aa80155eef9982e1e5827dd7f58
parentfe7a50cb892078991628a648282a595c5f3a3b3b
crypto: arm64/aes-cts-cbc - factor out CBC en/decryption of a walk

The plain CBC driver and the CTS one share some code that iterates over
a scatterwalk and invokes the CBC asm code to do the processing. The
upcoming ESSIV/CBC mode will clone that pattern for the third time, so
let's factor it out first.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm64/crypto/aes-glue.c