From b0187f44720fb675b99e6b6e57b660c6dfe8e464 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Sat, 5 Oct 2013 06:00:47 -0400 Subject: Hashcash-based identity, work in progress... committing to test speed on other boxes. --- node/C25519.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'node/C25519.hpp') diff --git a/node/C25519.hpp b/node/C25519.hpp index 8d6a58ba..79edfa06 100644 --- a/node/C25519.hpp +++ b/node/C25519.hpp @@ -101,7 +101,8 @@ public: Utils::getSecureRandom(priv,kp.priv.size()); _calcPubED(kp); // do Ed25519 key -- bytes 32-63 of pub and priv do { - ++*((uint64_t *)priv); + ++(((uint64_t *)priv)[1]); + --(((uint64_t *)priv)[2]); _calcPubDH(kp); // keep regenerating bytes 0-31 until satisfied } while (!cond(kp)); return kp; -- cgit v1.2.3