X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=arcfour%2Farcfour-asm.S;h=a7f5a88b22f9ed804838036eff2247093f243559;hb=HEAD;hp=63932abe2d25a87a644e8e1b3e907a9877001c1c;hpb=66c915087d1f7b8eb7280be43c16e9588faf2e55;p=avr-crypto-lib.git diff --git a/arcfour/arcfour-asm.S b/arcfour/arcfour-asm.S index 63932ab..a7f5a88 100644 --- a/arcfour/arcfour-asm.S +++ b/arcfour/arcfour-asm.S @@ -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