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:
10
ssl/rc4.c
10
ssl/rc4.c
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user