OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
gsRC4.h
1
3#ifndef __GSRC4_H__
4#define __GSRC4_H__
5
6
7#include "gsCommon.h"
8
9#if defined(__cplusplus)
10extern "C"
11{
12#endif
13
14
17typedef struct RC4Context
18{
19 unsigned char x;
20 unsigned char y;
21 unsigned char state[256];
23
24void RC4Init(RC4Context *context, const unsigned char *key, int len);
25void RC4Encrypt(RC4Context *context, const unsigned char *src, unsigned char *dest, int len);
26
27// Note: RC4Encrypt with src==dest is OK
28
31#if defined(__cplusplus)
32}
33#endif
34#endif // __GSRC4_H__
Definition gsRC4.h:18