]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - entropium/entropium.h
fixing E-Mail-Address & Copyright
[avr-crypto-lib.git] / entropium / entropium.h
index 303619d607094030516ba3545db677667e5a9e2a..a8cbdb2f71c9d2b2854df5a9d1e7c430ef66efc6 100644 (file)
@@ -1,7 +1,7 @@
 /* entropium.h */
 /*
     This file is part of the AVR-Crypto-Lib.
-    Copyright (C) 2008  Daniel Otte (daniel.otte@rub.de)
+    Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org)
 
     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
  */
 #define ENTROPIUM_RANDOMBLOCK_SIZE 32 /* bytes */
  
-/** \fn void entropium_addEntropy(unsigned length_b, const voiddata)
+/** \fn void entropium_addEntropy(unsigned length_b, const void *data)
  * \brief add entropy to the prng
  * 
  * This function adds data to the internal entropy pool
  * \param length_b length of the data block in bits
  * \param data pointer to the data
  */
-void entropium_addEntropy(unsigned length_b, const voiddata); 
+void entropium_addEntropy(unsigned length_b, const void *data); 
 
-/** \fn void entropium_getRandomBlock(voidb)
+/** \fn void entropium_getRandomBlock(void *b)
  * \brief generate a fixed size block of random data 
  * 
  * This function writes 32 bytes of random extracted from the entropy pool
  * in the supplied buffer.
  * \param b buffer where the random data gets written
  */
-void entropium_getRandomBlock(voidb);
+void entropium_getRandomBlock(void *b);
 
 /** \fn uint8_t entropium_getRandomByte(void)
  * \brief get a single byte of random data
@@ -70,7 +70,7 @@ void entropium_getRandomBlock(void* b);
  */ 
 uint8_t entropium_getRandomByte(void);
 
-/** \fn void entropium_fillBlockRandom(voidblock, unsigned length_B)
+/** \fn void entropium_fillBlockRandom(void *block, unsigned length_B)
  * \brief get a block of random data
  * 
  * This function writes random data extracted from the entropy pool in the 
@@ -79,6 +79,6 @@ uint8_t entropium_getRandomByte(void);
  * \param block pointer to the buffer where the random data goes
  * \param length_B number of bytes to be written to the buffer
  */
-void entropium_fillBlockRandom(voidblock, unsigned length_B);
+void entropium_fillBlockRandom(void *block, unsigned length_B);
 
 #endif /*PRNG_H_*/