]> git.cryptolib.org Git - avr-crypto-lib.git/blob - prng.h
new, derived from old avr/crypto + cast5
[avr-crypto-lib.git] / prng.h
1 /**
2  * File:                prng.h
3  * Author:              Daniel Otte
4  * Date:                23.07.2006
5  * License:             GPL
6  * Description: This file contains the declarations for the pseudo-random-number generator.
7  **/
8
9 #ifndef PRNG_H_
10 #define PRNG_H_
11
12 #include <stdint.h>
13 /*
14  * length in bits 
15  */
16 void addEntropy(unsigned length, void* data); 
17 void getRandomBlock(uint32_t* b);
18 /* this does some simple buffering */
19 uint8_t getRandomByte(void);
20  
21
22 #endif /*PRNG_H_*/