|
1 | 1 | diff --git a/ed25519-donna-64bit-x86.h b/ed25519-donna-64bit-x86.h |
2 | | -index 30bd472762..7c844ecda4 100644 |
| 2 | +index 30bd472..bbf97e8 100644 |
3 | 3 | --- a/ed25519-donna-64bit-x86.h |
4 | 4 | +++ b/ed25519-donna-64bit-x86.h |
5 | | -@@ -2,7 +2,13 @@ |
| 5 | +@@ -2,6 +2,13 @@ |
6 | 6 |
|
7 | 7 | #define HAVE_GE25519_SCALARMULT_BASE_CHOOSE_NIELS |
8 | 8 |
|
9 | | --DONNA_NOINLINE static void |
10 | 9 | +#if defined(__clang__) || defined (__GNUC__) |
11 | 10 | +# define ATTRIBUTE_NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address)) |
12 | 11 | +#else |
13 | 12 | +# define ATTRIBUTE_NO_SANITIZE_ADDRESS |
14 | 13 | +#endif |
15 | 14 | + |
16 | | -+ATTRIBUTE_NO_SANITIZE_ADDRESS DONNA_NOINLINE static void |
| 15 | ++ATTRIBUTE_NO_SANITIZE_ADDRESS |
| 16 | + DONNA_NOINLINE static void |
17 | 17 | ge25519_scalarmult_base_choose_niels(ge25519_niels *t, const uint8_t table[256][96], uint32_t pos, signed char b) { |
18 | 18 | int64_t breg = (int64_t)b; |
19 | | - uint64_t sign = (uint64_t)breg >> 63; |
20 | 19 | diff --git a/ed25519-donna-portable.h b/ed25519-donna-portable.h |
21 | | -index 0a0f7fc3af..aad1441a99 100644 |
| 20 | +index 0a0f7fc..d01160f 100644 |
22 | 21 | --- a/ed25519-donna-portable.h |
23 | 22 | +++ b/ed25519-donna-portable.h |
24 | 23 | @@ -20,6 +20,7 @@ |
25 | 24 | #include <sys/param.h> |
26 | 25 | #define DONNA_INLINE inline __attribute__((always_inline)) |
27 | 26 | #define DONNA_NOINLINE __attribute__((noinline)) |
28 | | -+ #undef ALIGN |
| 27 | ++ #undef ALIGN |
29 | 28 | #define ALIGN(x) __attribute__((aligned(x))) |
30 | 29 | #define ROTL32(a,b) (((a) << (b)) | ((a) >> (32 - b))) |
31 | 30 | #define ROTR32(a,b) (((a) >> (b)) | ((a) << (32 - b))) |
0 commit comments