summaryrefslogtreecommitdiffstats
path: root/include/crypto/xts.h
diff options
context:
space:
mode:
authorOndrej Mosnáček <omosnacek@gmail.com>2017-04-02 21:19:14 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-04-05 15:58:37 +0200
commite55318c84f199d6056a0bcd98bc4612d01ccfe80 (patch)
treeb77991aaa7d895773d631dbbdfc10ba960d96dfc /include/crypto/xts.h
parentcrypto: gf128mul - define gf128mul_x_* in gf128mul.h (diff)
downloadlinux-e55318c84f199d6056a0bcd98bc4612d01ccfe80.tar.xz
linux-e55318c84f199d6056a0bcd98bc4612d01ccfe80.zip
crypto: gf128mul - switch gf128mul_x_ble to le128
Currently, gf128mul_x_ble works with pointers to be128, even though it actually interprets the words as little-endian. Consequently, it uses cpu_to_le64/le64_to_cpu on fields of type __be64, which is incorrect. This patch fixes that by changing the function to accept pointers to le128 and updating all users accordingly. Signed-off-by: Ondrej Mosnacek <omosnacek@gmail.com> Reviewd-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/xts.h')
-rw-r--r--include/crypto/xts.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crypto/xts.h b/include/crypto/xts.h
index 77b630672b2c..c0bde308b28a 100644
--- a/include/crypto/xts.h
+++ b/include/crypto/xts.h
@@ -11,7 +11,7 @@ struct blkcipher_desc;
#define XTS_BLOCK_SIZE 16
struct xts_crypt_req {
- be128 *tbuf;
+ le128 *tbuf;
unsigned int tbuflen;
void *tweak_ctx;