rc4.h 369 Bytes
Newer Older
Niels Möller's avatar
Niels Möller committed
1 2 3 4 5 6 7 8 9 10
/*
 * $Id$
 */

#ifndef RC4_H_INCLUDED
#define RC4_H_INCLUDED

#include "crypto_types.h"

struct rc4_ctx {
11 12
  UINT8 S[256];
  UINT8 i, j;
Niels Möller's avatar
Niels Möller committed
13 14 15 16 17 18
};

#if 0
void rc4_init(struct rc4_ctx *ctx);
#endif

19 20
void rc4_set_key(struct rc4_ctx *ctx, CONST UINT8 *key, UINT32 len);
void rc4_crypt(struct rc4_ctx *ctx, UINT8 *dest, CONST UINT8 *src, UINT32 len);
Niels Möller's avatar
Niels Möller committed
21 22

#endif /* RC4_H_INCLUDED */