OSDN Git Service

crypto: s390/xts-aes - invoke fallback for ciphertext stealing
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 16 Aug 2019 12:35:45 +0000 (15:35 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Aug 2019 04:57:34 +0000 (14:57 +1000)
commitce68acbcb6a5d5dbaa9e76df924e1c191e8c7516
tree193300cc5cfc00167a910cb2c40d9940c2e93e1c
parent8ce5fac2dc1bf64e1e6d2371e4ff9a9bfe8fd49f
crypto: s390/xts-aes - invoke fallback for ciphertext stealing

For correctness and compliance with the XTS-AES specification, we are
adding support for ciphertext stealing to XTS implementations, even
though no use cases are known that will be enabled by this.

Since the s390 implementation already has a fallback skcipher standby
for other purposes, let's use it for this purpose as well. If ciphertext
stealing use cases ever become a bottleneck, we can always revisit this.

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