mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-25 13:38:54 +00:00
V1.0.6
This commit is contained in:
29
bsp/peripheral/wireless/asr/crypto/include/wpas_rc4.h
Normal file
29
bsp/peripheral/wireless/asr/crypto/include/wpas_rc4.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user