From 3f406d67a2532d0db8e02d54ad3a7b6fa4cf6bea Mon Sep 17 00:00:00 2001 From: bg Date: Sat, 23 Jan 2016 03:58:32 +0100 Subject: [PATCH] (hopefully) fixing bug in sha256-asm.S, thanks to Ben Dykstra [untested] --- sha256/sha256-asm.S | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sha256/sha256-asm.S b/sha256/sha256-asm.S index 97c3b56..3c8cd7c 100644 --- a/sha256/sha256-asm.S +++ b/sha256/sha256-asm.S @@ -924,7 +924,7 @@ sha256_init: movw r26, r24 ; (24,25) --> (26,27) load X with param1 ldi r30, lo8((sha256_init_vector)) ldi r31, hi8((sha256_init_vector)) - ldi r22, 32+8 + ldi r22, 32 + 4 sha256_init_vloop: lpm r23, Z+ st X+, r23 @@ -942,7 +942,6 @@ sha256_init_vector: .word 0xD9AB, 0x1F83 .word 0xCD19, 0x5BE0 .word 0x0000, 0x0000 -.word 0x0000, 0x0000 ;###########################################################