From 0759480c5be307ee78acd93ad6eda8800701c870 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 25 Sep 2018 16:26:03 +0200 Subject: curve25519-hacl64: reduce stack usage under KASAN Suggested-by: Arnd Bergmann --- src/crypto/zinc/curve25519/curve25519-hacl64.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/crypto/zinc/curve25519/curve25519-hacl64.h b/src/crypto/zinc/curve25519/curve25519-hacl64.h index c7b2924..598be44 100644 --- a/src/crypto/zinc/curve25519/curve25519-hacl64.h +++ b/src/crypto/zinc/curve25519/curve25519-hacl64.h @@ -182,8 +182,7 @@ static __always_inline void fmul_mul_shift_reduce_(u128 *output, u64 *input, static __always_inline void fmul_fmul(u64 *output, u64 *input, u64 *input21) { - u64 tmp[5]; - memcpy(tmp, input, 5 * sizeof(*input)); + u64 tmp[5] = { input[0], input[1], input[2], input[3], input[4] }; { u128 b4; u128 b0; -- cgit v1.2.3-59-g8ed1b