2006-07-31 16:04:26 +00:00
|
|
|
/*
|
|
|
|
* File: arcfour.h
|
|
|
|
* Author: Daniel Otte
|
2008-04-06 02:42:32 +00:00
|
|
|
* Date: 2006-06-07
|
2006-07-31 16:04:26 +00:00
|
|
|
* License: GPL
|
|
|
|
* Description: Implementation of the ARCFOUR (RC4 compatible) stream cipher algorithm.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef ARCFOUR_H_
|
|
|
|
#define ARCFOUR_H_
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
uint8_t i,j;
|
|
|
|
uint8_t s[256];
|
|
|
|
} arcfour_ctx_t;
|
|
|
|
|
|
|
|
|
|
|
|
void arcfour_init(arcfour_ctx_t *c, uint8_t *key, uint8_t length);
|
|
|
|
uint8_t arcfour_gen(arcfour_ctx_t *c);
|
|
|
|
|
|
|
|
#endif
|