diff options
author | lloyd <[email protected]> | 2010-03-08 22:16:50 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-08 22:16:50 +0000 |
commit | aeb4159e2b6b381c5a184f37c3b17fcd9bf213b5 (patch) | |
tree | 5221c8bc4aa2b3e9545c504af34fafe0a6e6b07e /src/pubkey/blinding.cpp | |
parent | bd79f42e733a1119033f049effdd341916f38c62 (diff) |
Blinder::choose_nonce added a single byte of the timestamps 8 times,
instead of each byte once...
Diffstat (limited to 'src/pubkey/blinding.cpp')
-rw-r--r-- | src/pubkey/blinding.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pubkey/blinding.cpp b/src/pubkey/blinding.cpp index 2bb6680d6..819d0dd20 100644 --- a/src/pubkey/blinding.cpp +++ b/src/pubkey/blinding.cpp @@ -36,14 +36,14 @@ BigInt Blinder::choose_nonce(const BigInt& x, const BigInt& mod) u64bit ns_clock = get_nanoseconds_clock(); for(size_t i = 0; i != sizeof(ns_clock); ++i) - hash->update(get_byte(0, ns_clock)); + hash->update(get_byte(i, ns_clock)); hash->update(BigInt::encode(x)); hash->update(BigInt::encode(mod)); u64bit timestamp = system_time(); for(size_t i = 0; i != sizeof(timestamp); ++i) - hash->update(get_byte(0, timestamp)); + hash->update(get_byte(i, timestamp)); SecureVector<byte> r = hash->final(); |