]> 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)
commit5c8cde8c4c5ea3d9476d3c8104c8ddaefd39c302
tree0666b65eb406f384f75eaa107ee2d3dd83dd9191
parentcdd0ca3483f6ef96a5cc7ed1fb7ba3bc68dfffb8
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