diff options
-rw-r--r-- | cl/onion.cl | 2 | ||||
-rw-r--r-- | sha1.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cl/onion.cl b/cl/onion.cl index 4200859..66075a9 100644 --- a/cl/onion.cl +++ b/cl/onion.cl @@ -32,7 +32,7 @@ void sha_chunk(unsigned char (*buf)[SHA_CHUNK_LEN], struct sha_data *sha) { }; #pragma unroll - for (i = 0; i < 80; i++, bo+=4) { + for (i = 0; i < 16; i++, bo+=4) { w[i] = ((*buf)[bo]) << 24; w[i] |= ((*buf)[bo+1]) << 16; w[i] |= ((*buf)[bo+2]) << 8; @@ -31,7 +31,7 @@ void sha_chunk(uint8_t (*buf)[SHA_CHUNK_LEN], struct sha_data *sha) { 0xCA62C1D6 }; - for (i = 0; i < 80; i++, bo+=4) { + for (i = 0; i < 16; i++, bo+=4) { w[i] = ((uint32_t)(*buf)[bo]) << 24; w[i] |= (*buf)[bo+1] << 16; w[i] |= (*buf)[bo+2] << 8; |