]> git.cryptolib.org Git - avr-crypto-lib.git/blob - grain.h
231aa95b64f2338251e93ee27c1fa8162039af64
[avr-crypto-lib.git] / grain.h
1 /**
2  * 
3  * author: Daniel Otte
4  * email:  daniel.otte@rub.de
5  * license: GPLv3
6  * 
7  */
8
9 #ifndef GRAIN_H_
10 #define GRAIN_H_
11
12
13 #include <stdint.h>
14
15 typedef struct gain_ctx_st{
16         uint8_t lfsr[10];
17         uint8_t nfsr[10];
18 } grain_ctx_t;
19
20
21 uint8_t grain_enc(grain_ctx_t* ctx);
22 void grain_init(const void* key, const void* iv, grain_ctx_t* ctx);
23
24 #endif /*GRAIN_H_*/