sha256_via: ensure proper data area is fully checksummed
This commit is contained in:
parent
ee592d0a60
commit
d363a1d68d
2 changed files with 2 additions and 2 deletions
|
@ -319,7 +319,7 @@ static void *miner_thread(void *thr_id_int)
|
|||
|
||||
#ifdef WANT_VIA_PADLOCK
|
||||
case ALGO_VIA:
|
||||
rc = scanhash_via(work.midstate, work.data + 64,
|
||||
rc = scanhash_via(work.midstate, work.data,
|
||||
work.hash1, work.hash,
|
||||
&hashes_done);
|
||||
break;
|
||||
|
|
|
@ -35,7 +35,7 @@ bool scanhash_via(const unsigned char *midstate, const unsigned char *data_in,
|
|||
unsigned char data[128] __attribute__((aligned(128)));
|
||||
unsigned char tmp_hash1[32] __attribute__((aligned(128)));
|
||||
uint32_t *hash32 = (uint32_t *) hash;
|
||||
uint32_t *nonce = (uint32_t *)(data + 12);
|
||||
uint32_t *nonce = (uint32_t *)(data + 64 + 12);
|
||||
uint32_t n = 0;
|
||||
unsigned long stat_ctr = 0;
|
||||
int i;
|
||||
|
|
Loading…
Reference in a new issue