X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=sha1%2Fsha1-asm.S;h=69ab9624b80fe00cfe9d58b70e2328a750c977d8;hb=b8aa8d06134ce687993cb3148d66ebd86dbf1d6f;hp=4d185f928fc5a488e96ee66919ff36bffe21acdc;hpb=e1cb3a050dbdb395e9d87f954d754046481b82f7;p=avr-crypto-lib.git diff --git a/sha1/sha1-asm.S b/sha1/sha1-asm.S index 4d185f9..69ab962 100644 --- a/sha1/sha1-asm.S +++ b/sha1/sha1-asm.S @@ -1,7 +1,7 @@ /* sha1-asm.S */ /* This file is part of the AVR-Crypto-Lib. - Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de) + Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -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 */