summaryrefslogtreecommitdiff
path: root/src/ext/ed25519/donna
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-09-04 09:30:59 -0400
committerNick Mathewson <nickm@torproject.org>2015-09-04 09:30:59 -0400
commit81e3deeb54d2f3d022655c6a51f966ef44bf6fb3 (patch)
tree089a4b6cdb8e8682f20decf72df88cfd4c4e03b7 /src/ext/ed25519/donna
parent81e58cd00a918c8590f564fda3aa950156a70337 (diff)
downloadtor-81e3deeb54d2f3d022655c6a51f966ef44bf6fb3.tar.gz
tor-81e3deeb54d2f3d022655c6a51f966ef44bf6fb3.zip
Fix an alignment issue in our extensions to ed25519_donna
Apparently this only happens with clang (or with some particular clang versions), and only on i386. Fixes 16970; bug not in any released Tor. Found by Teor; fix from Yawning.
Diffstat (limited to 'src/ext/ed25519/donna')
-rw-r--r--src/ext/ed25519/donna/ed25519_tor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ext/ed25519/donna/ed25519_tor.c b/src/ext/ed25519/donna/ed25519_tor.c
index 7f5894da79..12493f7d14 100644
--- a/src/ext/ed25519/donna/ed25519_tor.c
+++ b/src/ext/ed25519/donna/ed25519_tor.c
@@ -323,7 +323,7 @@ int
ed25519_donna_pubkey_from_curve25519_pubkey(unsigned char *out,
const unsigned char *inp, int signbit)
{
- static const bignum25519 one = { 1 };
+ static const bignum25519 ALIGN(16) one = { 1 };
bignum25519 ALIGN(16) u, uminus1, uplus1, inv_uplus1, y;
/* Prop228: y = (u-1)/(u+1) */