]> git.cryptolib.org Git - avr-crypto-lib.git/blob - arcfour.h
bd4a4d4760d6f5d64e70534ea414b573460378f7
[avr-crypto-lib.git] / arcfour.h
1 /* 
2  * File:        arcfour.h
3  * Author:      Daniel Otte
4  * Date:        2006-06-07
5  * License: GPL
6  * Description: Implementation of the ARCFOUR (RC4 compatible) stream cipher algorithm.
7  * 
8  */
9 #ifndef ARCFOUR_H_
10 #define ARCFOUR_H_
11
12 #include <stdint.h>
13
14 typedef struct {
15         uint8_t i,j;
16         uint8_t s[256];
17 } arcfour_ctx_t;
18  
19
20 void arcfour_init(arcfour_ctx_t *c, uint8_t *key, uint8_t length);
21 uint8_t arcfour_gen(arcfour_ctx_t *c);
22
23 #endif