summaryrefslogtreecommitdiff
path: root/arch/x86/crypto/nh-avx2-x86_64.S
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2022-11-18 22:44:12 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2022-11-25 12:39:19 +0300
commit0f8bc4bd48dd148046c19c38568cd9449c79b45f (patch)
tree14c6cb075ee6ca20ce1a526c1e69b07e924d5bac /arch/x86/crypto/nh-avx2-x86_64.S
parentc67b553a4f4a8bd921e4c9ceae00e111be09c488 (diff)
downloadlinux-0f8bc4bd48dd148046c19c38568cd9449c79b45f.tar.xz
crypto: x86/nhpoly1305 - eliminate unnecessary CFI wrappers
Since the CFI implementation now supports indirect calls to assembly functions, take advantage of that rather than use wrapper functions. Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Sami Tolvanen <samitolvanen@google.com> Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/x86/crypto/nh-avx2-x86_64.S')
-rw-r--r--arch/x86/crypto/nh-avx2-x86_64.S5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/crypto/nh-avx2-x86_64.S b/arch/x86/crypto/nh-avx2-x86_64.S
index 6a0b15e7196a..ef73a3ab8726 100644
--- a/arch/x86/crypto/nh-avx2-x86_64.S
+++ b/arch/x86/crypto/nh-avx2-x86_64.S
@@ -8,6 +8,7 @@
*/
#include <linux/linkage.h>
+#include <linux/cfi_types.h>
#define PASS0_SUMS %ymm0
#define PASS1_SUMS %ymm1
@@ -65,11 +66,11 @@
/*
* void nh_avx2(const u32 *key, const u8 *message, size_t message_len,
- * u8 hash[NH_HASH_BYTES])
+ * __le64 hash[NH_NUM_PASSES])
*
* It's guaranteed that message_len % 16 == 0.
*/
-SYM_FUNC_START(nh_avx2)
+SYM_TYPED_FUNC_START(nh_avx2)
vmovdqu 0x00(KEY), K0
vmovdqu 0x10(KEY), K1