From d0722dbc273d17000c892d383c71239058c1fd0f 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 23cbd3f1..b0443a4c 100644 --- a/source/src/crypto.cpp +++ b/source/src/crypto.cpp @@ -812,7 +812,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;