1 |
/* crypto/rc4/rc4_enc.org */ |
/* crypto/rc4/rc4_skey.c */ |
2 |
/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) |
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 |
* All rights reserved. |
* All rights reserved. |
4 |
* |
* |
5 |
* This package is an SSL implementation written |
* This package is an SSL implementation written |
57 |
*/ |
*/ |
58 |
|
|
59 |
#include "rc4.h" |
#include "rc4.h" |
|
#include "rc4_locl.h" |
|
|
|
|
|
/* char *RC4_version="RC4 part of SSLeay 0.8.2b 08-Jan-1998"; */ |
|
60 |
|
|
61 |
/* RC4 as implemented from a posting from |
/* RC4 as implemented from a posting from |
62 |
* Newsgroups: sci.crypt |
* Newsgroups: sci.crypt |
66 |
* Date: Wed, 14 Sep 1994 06:35:31 GMT |
* Date: Wed, 14 Sep 1994 06:35:31 GMT |
67 |
*/ |
*/ |
68 |
|
|
69 |
void RC4_set_key(key, len, data) |
void RC4_set_key(RC4_KEY *key, int len, const unsigned char *data) |
|
RC4_KEY *key; |
|
|
int len; |
|
|
register unsigned char *data; |
|
70 |
{ |
{ |
71 |
register RC4_INT tmp; |
register RC4_INT tmp; |
72 |
register int id1,id2; |
register int id1,id2; |