blob: 9a765e24ea276a840eefbd4ae537014b60dfffbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#ifndef __INC_RC4_H
#define __INC_RC4_H
#define CRC32_POLY 0x04c11db7
void
EncodeWEP(
pu1Byte key,
s4Byte keysize,
pu1Byte plaintext,
s4Byte len,
pu1Byte out);
BOOLEAN
DecodeWEP(
pu1Byte key,
s4Byte keysize,
pu1Byte ciphertext,
s4Byte len,
pu1Byte out);
u1Byte
ReverseBit(
u1Byte data
);
// Isaiah note: previous declaration in libkern.h
// uint32_t crc32(uint32_t crc, const void *bufp, size_t len);
u1Byte
ReverseBit(
u1Byte data
);
ULONG
crc32(
pu1Byte buf,
u4Byte len);
void init_crc32(void);
typedef struct
{
u4Byte x;
u4Byte y;
u1Byte state[256];
}ArcfourContext;
#endif //#ifndef __INC_RC4_H
|