aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/crypto/glue_helper.h
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2019-08-16 15:21:50 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2019-08-22 14:57:34 +1000
commit8ce5fac2dc1bf64e1e6d2371e4ff9a9bfe8fd49f (patch)
tree6b7a9e7569f4248d0ecc0ec2f4fcbebe819b81dd /arch/x86/include/asm/crypto/glue_helper.h
parentcrypto: hisilicon - Fix warning on printing %p with dma_addr_t (diff)
downloadlinux-dev-8ce5fac2dc1bf64e1e6d2371e4ff9a9bfe8fd49f.tar.xz
linux-dev-8ce5fac2dc1bf64e1e6d2371e4ff9a9bfe8fd49f.zip
crypto: x86/xts - implement support for ciphertext stealing
Align the x86 code with the generic XTS template, which now supports ciphertext stealing as described by the IEEE XTS-AES spec P1619. Tested-by: Stephan Mueller <smueller@chronox.de> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--arch/x86/include/asm/crypto/glue_helper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/crypto/glue_helper.h b/arch/x86/include/asm/crypto/glue_helper.h
index d1818634ae7e..8d4a8e1226ee 100644
--- a/arch/x86/include/asm/crypto/glue_helper.h
+++ b/arch/x86/include/asm/crypto/glue_helper.h
@@ -114,7 +114,7 @@ extern int glue_ctr_req_128bit(const struct common_glue_ctx *gctx,
extern int glue_xts_req_128bit(const struct common_glue_ctx *gctx,
struct skcipher_request *req,
common_glue_func_t tweak_fn, void *tweak_ctx,
- void *crypt_ctx);
+ void *crypt_ctx, bool decrypt);
extern void glue_xts_crypt_128bit_one(void *ctx, u128 *dst, const u128 *src,
le128 *iv, common_glue_func_t fn);