diff options
author | Jeff Garzik <jeff@garzik.org> | 2010-12-19 21:37:30 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-12-19 21:37:30 -0500 |
commit | d363a1d68d26ea6a82426f65845edb69121a9d57 (patch) | |
tree | 73bb4a76f36be95ecdfd2f6ce2fda2c8c7a5160d /sha256_via.c | |
parent | ee592d0a60f187a3e9ba5b3c1f793b2d19eb0eb0 (diff) |
sha256_via: ensure proper data area is fully checksummed
Diffstat (limited to 'sha256_via.c')
-rw-r--r-- | sha256_via.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sha256_via.c b/sha256_via.c index 45e6821..ef2c102 100644 --- a/sha256_via.c +++ b/sha256_via.c @@ -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; |