aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-01-01 11:45:50 -0500
committerJack Lloyd <[email protected]>2018-01-01 11:45:50 -0500
commit3407b0c98b63ae0f9926a8def7838862711d2e6d (patch)
tree7bc2fc8aa7550c1f4e52c006f4508d69132c0af3 /src
parent8591e6de8c7bea614d4ed33037d48cff3a281afa (diff)
Fix function call accidentally removed in 903d8042a9
Diffstat (limited to 'src')
-rw-r--r--src/lib/pubkey/ed25519/ge.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/pubkey/ed25519/ge.cpp b/src/lib/pubkey/ed25519/ge.cpp
index 4c78223b2..ec22fa179 100644
--- a/src/lib/pubkey/ed25519/ge.cpp
+++ b/src/lib/pubkey/ed25519/ge.cpp
@@ -2029,7 +2029,7 @@ inline void select(ge_precomp* t,
int8_t b)
{
const uint8_t bnegative = negative(b);
- const uint8_t babs = b - (((-static_cast<int>(bnegative)) & b) * 2);
+ const uint8_t babs = b - ((-static_cast<int>(bnegative) & b) * 2);
const int32_t neg_mask = equal32(bnegative, 1);
const int32_t mask1 = equal32(babs, 1);
@@ -2041,6 +2041,8 @@ inline void select(ge_precomp* t,
const int32_t mask7 = equal32(babs, 7);
const int32_t mask8 = equal32(babs, 8);
+ ge_precomp_0(t);
+
for(size_t i = 0; i != 10; ++i)
{
t->yplusx[i] = t->yplusx[i] ^