X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=twister-big-asm.S;h=a274cf4763b732e1241196fcc3c5cec2d584a10f;hb=bfbf5262c7ce1c1640ae57b3ad196b2eab3688f4;hp=c296e59d7a003d632e2f5b67dcc1dca83a4817fc;hpb=288c82e97b3c37666b1c11475b45a956b3e5e8e0;p=avr-crypto-lib.git diff --git a/twister-big-asm.S b/twister-big-asm.S index c296e59..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 Crypto-avr-lib/microcrypt-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