From c83e899b7803fa9e270ccb63fc1973fdf64595c9 Mon Sep 17 00:00:00 2001 From: Lealem Amedie Date: Wed, 22 Mar 2023 17:29:53 -0600 Subject: [PATCH] Fix for overlong string warning --- wolfcrypt/src/siphash.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wolfcrypt/src/siphash.c b/wolfcrypt/src/siphash.c index 30947ab21..63df8051e 100644 --- a/wolfcrypt/src/siphash.c +++ b/wolfcrypt/src/siphash.c @@ -744,6 +744,12 @@ int wc_SipHash(const unsigned char* key, const unsigned char* in, word32 inSz, "cmp %w[outSz], #8\n\t" "b.eq L_siphash_8_end\n\t" + : [in] "+r" (in), [inSz] "+r" (inSz) + : [key] "r" (key), [out] "r" (out) , [outSz] "r" (outSz) + : "memory", "x8", "x9", "x10", "x11", "x12", "x13"); + + __asm__ __volatile__ ( + "mov w13, #0xee\n\t" "eor x10, x10, x13\n\t" #if WOLFSSL_SIPHASH_DROUNDS == 2