[sha1-asm] fixing bug when *_lastBlock is used to hash multiple blocks, thanks to Alex

This commit is contained in:
bg 2013-01-20 22:57:05 +01:00
parent ca591a22fb
commit 5a83cf2b01
1 changed files with 2 additions and 2 deletions

View File

@ -284,8 +284,8 @@ sha1_lastBlock:
pop r25
subi r21, 2
ldi r19, 64
sub r22, r19
sbc r23, r1
add r22, r19
adc r23, r1
rjmp sha1_lastBlock
sha1_lastBlock_prolog:
/* allocate space on stack */