diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-09-25 16:26:03 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-09-25 16:26:03 +0200 |
commit | b3ff330ddfe78baf46d94e1194a7985bfa65793f (patch) | |
tree | 3f35f830d89814645c798efedbaf12ecd25b7171 /src/crypto/zinc | |
parent | d2e7b340a979ed8d0945539c6dbf5d19c022a26b (diff) |
curve25519-hacl64: reduce stack usage under KASAN
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto/zinc')
-rw-r--r-- | src/crypto/zinc/curve25519/curve25519-hacl64.h | 3 |
1 files changed, 1 insertions, 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; |