X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=twister-big-asm.S;h=a274cf4763b732e1241196fcc3c5cec2d584a10f;hb=052cd5b12044286abbb0076ecff6956a02ac9325;hp=5cdd02bee62d41885d95e75a2332d437aa352846;hpb=17332291e15183d71d88ed868275e3cb53917180;p=avr-crypto-lib.git diff --git a/twister-big-asm.S b/twister-big-asm.S index 5cdd02b..a274cf4 100644 --- a/twister-big-asm.S +++ b/twister-big-asm.S @@ -1,6 +1,6 @@ /* twister-big-asm.S */ /* - This file is part of the This file is part of the AVR-Crypto-Lib. + This file is part of the AVR-Crypto-Lib. Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de) This program is free software: you can redistribute it and/or modify @@ -405,10 +405,11 @@ twister_big_lastBlock: 3: tst r18 breq 4f +31: st Z+, r0 ld r0, X+ dec r18 - + brne 31b 4: mov r18, LEN_SAVE0 andi r18, 0x07 @@ -423,11 +424,13 @@ twister_big_lastBlock: 5: st Z+, r20 + tst r19 + breq 7f 6: st Z+, r1 dec r19 brne 6b - +7: movw r24, CTX_SAVE0 movw r22, TMP_SAVE0 rcall twister_big_nextBlock