summaryrefslogtreecommitdiffstats
path: root/arch/x86/crypto/ghash-clmulni-intel_asm.S
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2014-04-04 20:24:03 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2014-04-04 21:06:14 +0800
commit0ea481466d1c7cbd9d8f70ddc17a443a6c6fc09b (patch)
treebed8163ad53745b67b1ea220d0d420fac4764cf6 /arch/x86/crypto/ghash-clmulni-intel_asm.S
parent59ecc26004e77e100c700b1d0da7502b0fdadb46 (diff)
downloadlinux-stable-0ea481466d1c7cbd9d8f70ddc17a443a6c6fc09b.tar.gz
linux-stable-0ea481466d1c7cbd9d8f70ddc17a443a6c6fc09b.tar.bz2
linux-stable-0ea481466d1c7cbd9d8f70ddc17a443a6c6fc09b.zip
crypto: ghash-clmulni-intel - Use u128 instead of be128 for internal key
The internal key isn't actually in big-endian format so let's switch to u128 which also happens to allow us to remove a sparse warning. Based on suggestion by Ard Biesheuvel. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'arch/x86/crypto/ghash-clmulni-intel_asm.S')
-rw-r--r--arch/x86/crypto/ghash-clmulni-intel_asm.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/crypto/ghash-clmulni-intel_asm.S b/arch/x86/crypto/ghash-clmulni-intel_asm.S
index 185fad49d86f..5d1e0075ac24 100644
--- a/arch/x86/crypto/ghash-clmulni-intel_asm.S
+++ b/arch/x86/crypto/ghash-clmulni-intel_asm.S
@@ -92,7 +92,7 @@ __clmul_gf128mul_ble:
ret
ENDPROC(__clmul_gf128mul_ble)
-/* void clmul_ghash_mul(char *dst, const be128 *shash) */
+/* void clmul_ghash_mul(char *dst, const u128 *shash) */
ENTRY(clmul_ghash_mul)
movups (%rdi), DATA
movups (%rsi), SHASH
@@ -106,7 +106,7 @@ ENDPROC(clmul_ghash_mul)
/*
* void clmul_ghash_update(char *dst, const char *src, unsigned int srclen,
- * const be128 *shash);
+ * const u128 *shash);
*/
ENTRY(clmul_ghash_update)
cmp $16, %rdx