crypto: xts - add support for ciphertext stealing
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 9 Aug 2019 17:14:57 +0000 (20:14 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 15 Aug 2019 11:52:14 +0000 (21:52 +1000)
commit8083b1bf8163e7ae7d8c90f221106d96450b8aa8
treec9f45ebd58eb3c5382f975b8422da3e2a0f927f8
parenta62084d299d950f2ad0649caf9a9b9a431346996
crypto: xts - add support for ciphertext stealing

Add support for the missing ciphertext stealing part of the XTS-AES
specification, which permits inputs of any size >= the block size.

Cc: Pascal van Leeuwen <pvanleeuwen@verimatrix.com>
Cc: Ondrej Mosnacek <omosnace@redhat.com>
Tested-by: Milan Broz <gmazyland@gmail.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/xts.c