Skip to content

Commit 7a3d2a8

Browse files
committed
Merge branch 'master' into bthomee/secp256k1
2 parents 79eadea + 939700e commit 7a3d2a8

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,30 @@
11
diff --git a/ed25519-donna-64bit-x86.h b/ed25519-donna-64bit-x86.h
2-
index 30bd472762..7c844ecda4 100644
2+
index 30bd472..bbf97e8 100644
33
--- a/ed25519-donna-64bit-x86.h
44
+++ b/ed25519-donna-64bit-x86.h
5-
@@ -2,7 +2,13 @@
5+
@@ -2,6 +2,13 @@
66

77
#define HAVE_GE25519_SCALARMULT_BASE_CHOOSE_NIELS
88

9-
-DONNA_NOINLINE static void
109
+#if defined(__clang__) || defined (__GNUC__)
1110
+# define ATTRIBUTE_NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address))
1211
+#else
1312
+# define ATTRIBUTE_NO_SANITIZE_ADDRESS
1413
+#endif
1514
+
16-
+ATTRIBUTE_NO_SANITIZE_ADDRESS DONNA_NOINLINE static void
15+
+ATTRIBUTE_NO_SANITIZE_ADDRESS
16+
DONNA_NOINLINE static void
1717
ge25519_scalarmult_base_choose_niels(ge25519_niels *t, const uint8_t table[256][96], uint32_t pos, signed char b) {
1818
int64_t breg = (int64_t)b;
19-
uint64_t sign = (uint64_t)breg >> 63;
2019
diff --git a/ed25519-donna-portable.h b/ed25519-donna-portable.h
21-
index 0a0f7fc3af..aad1441a99 100644
20+
index 0a0f7fc..d01160f 100644
2221
--- a/ed25519-donna-portable.h
2322
+++ b/ed25519-donna-portable.h
2423
@@ -20,6 +20,7 @@
2524
#include <sys/param.h>
2625
#define DONNA_INLINE inline __attribute__((always_inline))
2726
#define DONNA_NOINLINE __attribute__((noinline))
28-
+ #undef ALIGN
27+
+ #undef ALIGN
2928
#define ALIGN(x) __attribute__((aligned(x)))
3029
#define ROTL32(a,b) (((a) << (b)) | ((a) >> (32 - b)))
3130
#define ROTR32(a,b) (((a) >> (b)) | ((a) << (32 - b)))

0 commit comments

Comments
 (0)