mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-21 11:38:55 +00:00
29 lines
472 B
C
29 lines
472 B
C
|
|
#ifndef WPAS_RC4_H
|
||
|
|
#define WPAS_RC4_H
|
||
|
|
|
||
|
|
#ifdef OPENSSL_NO_RC4
|
||
|
|
#error RC4 is disabled.
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#define RC4_INT uint32_t
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
extern "C" {
|
||
|
|
#endif
|
||
|
|
|
||
|
|
typedef struct rc4_key_st
|
||
|
|
{
|
||
|
|
RC4_INT x,y;
|
||
|
|
RC4_INT data[256];
|
||
|
|
} RC4_KEY;
|
||
|
|
|
||
|
|
|
||
|
|
//const uint8_t *RC4_options(void);
|
||
|
|
void RC4_set_key(RC4_KEY *key, int32_t len, const uint8_t *data);
|
||
|
|
void RC4(RC4_KEY *key, uint32_t len, const uint8_t *indata, uint8_t *outdata);
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#endif //WPAS_RC4_H
|