| OLD | NEW |
| 1 /* crypto/rc4/rc4.h */ | 1 /* crypto/rc4/rc4.h */ |
| 2 /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) | 2 /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * | 4 * |
| 5 * This package is an SSL implementation written | 5 * This package is an SSL implementation written |
| 6 * by Eric Young (eay@cryptsoft.com). | 6 * by Eric Young (eay@cryptsoft.com). |
| 7 * The implementation was written so as to conform with Netscapes SSL. | 7 * The implementation was written so as to conform with Netscapes SSL. |
| 8 * | 8 * |
| 9 * This library is free for commercial and non-commercial use as long as | 9 * This library is free for commercial and non-commercial use as long as |
| 10 * the following conditions are aheared to. The following conditions | 10 * the following conditions are aheared to. The following conditions |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 */ | 57 */ |
| 58 | 58 |
| 59 #ifndef HEADER_RC4_H | 59 #ifndef HEADER_RC4_H |
| 60 #define HEADER_RC4_H | 60 #define HEADER_RC4_H |
| 61 | 61 |
| 62 #include <openssl/opensslconf.h> /* OPENSSL_NO_RC4, RC4_INT */ | 62 #include <openssl/opensslconf.h> /* OPENSSL_NO_RC4, RC4_INT */ |
| 63 #ifdef OPENSSL_NO_RC4 | 63 #ifdef OPENSSL_NO_RC4 |
| 64 #error RC4 is disabled. | 64 #error RC4 is disabled. |
| 65 #endif | 65 #endif |
| 66 | 66 |
| 67 #include <stddef.h> |
| 68 |
| 67 #ifdef __cplusplus | 69 #ifdef __cplusplus |
| 68 extern "C" { | 70 extern "C" { |
| 69 #endif | 71 #endif |
| 70 | 72 |
| 71 typedef struct rc4_key_st | 73 typedef struct rc4_key_st |
| 72 { | 74 { |
| 73 RC4_INT x,y; | 75 RC4_INT x,y; |
| 74 RC4_INT data[256]; | 76 RC4_INT data[256]; |
| 75 } RC4_KEY; | 77 } RC4_KEY; |
| 76 | 78 |
| 77 | 79 |
| 78 const char *RC4_options(void); | 80 const char *RC4_options(void); |
| 79 #ifdef OPENSSL_FIPS | |
| 80 void private_RC4_set_key(RC4_KEY *key, int len, const unsigned char *data); | |
| 81 #endif | |
| 82 void RC4_set_key(RC4_KEY *key, int len, const unsigned char *data); | 81 void RC4_set_key(RC4_KEY *key, int len, const unsigned char *data); |
| 83 void RC4(RC4_KEY *key, unsigned long len, const unsigned char *indata, | 82 void RC4(RC4_KEY *key, size_t len, const unsigned char *indata, |
| 84 unsigned char *outdata); | 83 unsigned char *outdata); |
| 85 | 84 |
| 86 #ifdef __cplusplus | 85 #ifdef __cplusplus |
| 87 } | 86 } |
| 88 #endif | 87 #endif |
| 89 | 88 |
| 90 #endif | 89 #endif |
| OLD | NEW |