From 3c49e89c19d06d9967180dda887fb15ae2e0fa40 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 30 May 2020 23:21:17 +0200 Subject: [PATCH] Add memory clobber Fixes #965 --- src/libsodium/include/sodium/private/ed25519_ref10_fe_51.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsodium/include/sodium/private/ed25519_ref10_fe_51.h b/src/libsodium/include/sodium/private/ed25519_ref10_fe_51.h index dfa55a92..d91c2201 100644 --- a/src/libsodium/include/sodium/private/ed25519_ref10_fe_51.h +++ b/src/libsodium/include/sodium/private/ed25519_ref10_fe_51.h @@ -132,7 +132,7 @@ fe25519_cmov(fe25519 f, const fe25519 g, unsigned int b) "movq %[t1], 32(%[a])\n" : [ t0 ] "=&r"(t0), [ t1 ] "=&r"(t1), [ t2 ] "=&r"(t2) : [ a ] "r"(f), [ b ] "r"(g), [ c ] "r"(b) - : "cc"); + : "cc", "memory"); #else uint64_t mask = (uint64_t) (-(int64_t) b); uint64_t f0, f1, f2, f3, f4;