]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - twister-big-asm.S
removing old twister stuff
[avr-crypto-lib.git] / twister-big-asm.S
index c296e59d7a003d632e2f5b67dcc1dca83a4817fc..a274cf4763b732e1241196fcc3c5cec2d584a10f 100644 (file)
@@ -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