crypto: gf128mul - switch gf128mul_x_ble to le128
authorOndrej Mosnáček <omosnacek@gmail.com>
Sun, 2 Apr 2017 19:19:14 +0000 (21:19 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 5 Apr 2017 13:58:37 +0000 (21:58 +0800)
commite55318c84f199d6056a0bcd98bc4612d01ccfe80
treeb77991aaa7d895773d631dbbdfc10ba960d96dfc
parentacb9b159c784dc0033ede0dadde876ebd93aca4c
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>
arch/x86/crypto/camellia_glue.c
arch/x86/crypto/serpent_sse2_glue.c
arch/x86/crypto/twofish_glue_3way.c
crypto/xts.c
include/crypto/gf128mul.h
include/crypto/xts.h