Files
luban-lite/bsp/peripheral/wireless/asr/crypto/include/wpas_rc4.h
刘可亮 803cac77d5 V1.0.6
2024-09-03 11:16:08 +08:00

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