]> git.cryptolib.org Git - avr-crypto-lib.git/blob - prng.h
+RC5 +size-statistics tool +small modification to nessie_bc_test (optional free(...
[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 #define RANDOMBLOCK_SIZE 32 /* bytes */
17  
18 void addEntropy(unsigned length, void* data); 
19 void getRandomBlock(uint32_t* b);
20 /* this does some simple buffering */
21 uint8_t getRandomByte(void);
22
23 void fillBlockRandom(void* block, unsigned length);
24
25 #endif /*PRNG_H_*/