]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - arcfour/arcfour-asm.S
fixing E-Mail-Address & Copyright
[avr-crypto-lib.git] / arcfour / arcfour-asm.S
index 63932abe2d25a87a644e8e1b3e907a9877001c1c..a7f5a88b22f9ed804838036eff2247093f243559 100644 (file)
@@ -1,7 +1,7 @@
 /* arcfour-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
@@ -101,7 +101,7 @@ uint8_t arcfour_gen(arcfour_ctx_t *c){
 .global arcfour_gen
 
 ;== arcfour_gen ==
-;  this function initialises the context
+; this function generates a keystream byte
 ; param1: 16-bit pointer to a ctx struct
 ;      given in r25,r24
 
@@ -119,7 +119,7 @@ arcfour_gen:
        st Z+, r19              /* i,j loaded&saved; X->S[i]; Z->S[0]; r20=S[i] */
        add r30, r19
        adc r31, r1
-       ld r21, Z               /* X->S[i]; Z->S[j]; r20=S[i]; r21=S[j]*/
+       ld r21, Z               /* X->S[i]; Z->S[j]; r20=S[i]; r21=S[j] */
        st Z, r20
        st X, r21
        add r20, r21