]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: powerpc/spe-xts - implement support for ciphertext stealing
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 15 Oct 2019 08:14:12 +0000 (10:14 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 25 Oct 2019 15:06:07 +0000 (02:06 +1100)
commit5b2765a3f9543fcf76d51ea15f023211c725e0c2
tree0666b65eb406f384f75eaa107ee2d3dd83dd9191
parentd46821c98f0923759eaecdbbb754bef76cfebb3e
crypto: powerpc/spe-xts - implement support for ciphertext stealing

Add the logic to deal with input sizes that are not a round multiple
of the AES block size, as described by the XTS spec. This brings the
SPE implementation in line with other kernel drivers that have been
updated recently to take this into account.

Cc: Eric Biggers <ebiggers@google.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/powerpc/crypto/aes-spe-glue.c