Skip to content

Commit

Permalink
bug fix on original lyra
Browse files Browse the repository at this point in the history
  • Loading branch information
djm34 committed Jul 31, 2015
1 parent e594450 commit 22e79a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions algorithm/Lyra2RE_old.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ int lyra2reold_test(unsigned char *pdata, const unsigned char *ptarget, uint32_t

be32enc_vect(data, (const uint32_t *)pdata, 19);
data[19] = htobe32(nonce);
lyra2rehash(ohash, data);
lyra2rehash_old(ohash, data);
tmp_hash7 = be32toh(ohash[7]);

applog(LOG_DEBUG, "htarget %08lx diff1 %08lx hash %08lx",
Expand All @@ -122,7 +122,7 @@ void lyra2reold_regenhash(struct work *work)

be32enc_vect(data, (const uint32_t *)work->data, 19);
data[19] = htobe32(*nonce);
lyra2rehash(ohash, data);
lyra2rehash_old(ohash, data);
}

bool scanhash_lyra2reold(struct thr_info *thr, const unsigned char __maybe_unused *pmidstate,
Expand Down

0 comments on commit 22e79a5

Please sign in to comment.