1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-15 00:02:49 +03:00

adjusted version checking mechanism

git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@46 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
cameronrich
2006-12-01 03:57:08 +00:00
parent df2886ed07
commit 3d2f9ac3fd
10 changed files with 151 additions and 173 deletions

View File

@ -17,11 +17,8 @@
*/
/**
* @file rc4.c
*
* An implementation of the RC4/ARC4 algorithm
*
* Originally written by Christophe Devine
* An implementation of the RC4/ARC4 algorithm.
* Originally written by Christophe Devine.
*/
#include <string.h>
@ -47,7 +44,8 @@ void RC4_setup(RC4_CTX *ctx, const uint8_t *key, int length)
{
a = m[i];
j = (uint8_t)(j + a + key[k]);
m[i] = m[j]; m[j] = a;
m[i] = m[j];
m[j] = a;
if (++k >= length)
{