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)
commitd0be0720576439da2cefc16e648a61a7aebcf34f
tree0666b65eb406f384f75eaa107ee2d3dd83dd9191
parent7f725f41f62750832817047e44892ce92d65e6aa
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