avr-crypto-lib/prng.h

26 lines
523 B
C

/**
* File: prng.h
* Author: Daniel Otte
* Date: 23.07.2006
* License: GPL
* Description: This file contains the declarations for the pseudo-random-number generator.
**/
#ifndef PRNG_H_
#define PRNG_H_
#include <stdint.h>
/*
* length in bits
*/
#define RANDOMBLOCK_SIZE 32 /* bytes */
void addEntropy(unsigned length, void* data);
void getRandomBlock(uint32_t* b);
/* this does some simple buffering */
uint8_t getRandomByte(void);
void fillBlockRandom(void* block, unsigned length);
#endif /*PRNG_H_*/