]> git.cryptolib.org Git - avr-crypto-lib.git/blob - entropium.h
87d4334871566e2eeeb491583170351a8e2eb8d4
[avr-crypto-lib.git] / entropium.h
1 /**
2  * File:                entropium.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 ENTROPIUM_H_
10 #define ENTROPIUM_H_
11
12 #include <stdint.h>
13 /*
14  * length in bits 
15  */
16 #define ENTROPIUM_RANDOMBLOCK_SIZE 32 /* bytes */
17  
18 void entropium_addEntropy(unsigned length_b, const void* data); 
19 void entropium_getRandomBlock(void* b);
20 /* this does some simple buffering */
21 uint8_t entropium_getRandomByte(void);
22
23 void entropium_fillBlockRandom(void* block, unsigned length_B);
24
25 #endif /*PRNG_H_*/