From 6ec9d3cf804823676e01f933226b235a47b17fc9 Mon Sep 17 00:00:00 2001 From: ac-stef Date: Tue, 22 Apr 2014 11:07:43 +0200 Subject: [PATCH] fix seedlen --- source/src/crypto.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/crypto.cpp b/source/src/crypto.cpp index 30768af2..d7fa9cbc 100644 --- a/source/src/crypto.cpp +++ b/source/src/crypto.cpp @@ -797,7 +797,7 @@ void freepubkey(void *pubkey) void *genchallenge(void *pubkey, const void *seed, int seedlen, vector &challengestr) { tiger::hashval hash; - tiger::hash((const uchar *)seed, sizeof(seed), hash); + tiger::hash((const uchar *)seed, seedlen, hash); gfint challenge; memcpy(challenge.digits, hash.bytes, sizeof(challenge.digits)); challenge.len = 8*sizeof(hash.bytes)/BI_DIGIT_BITS;