]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - entropium/entropium.c
global style change (now * is attached to identifier not to type)
[avr-crypto-lib.git] / entropium / entropium.c
index 0cc360397b17f7cfb1dec806663bd21b9949516d..182cd2f15a7fa3d9ba2cab5ccb967e108af5eec4 100644 (file)
@@ -65,7 +65,7 @@ uint32_t rndCore[16];
  * 
  * we simply first "hash" rndCore, then entropy.
  */
-void entropium_addEntropy(unsigned length_b, const voiddata){
+void entropium_addEntropy(unsigned length_b, const void *data){
        sha256_ctx_t s;
        static uint8_t offset=0; /* selects if higher or lower half gets updated */
        sha256_init(&s);
@@ -116,7 +116,7 @@ uint8_t entropium_getRandomByte(void){
        return block[i++];
 }
 
-void entropium_fillBlockRandom(voidblock, unsigned length_B){
+void entropium_fillBlockRandom(void *block, unsigned length_B){
        while(length_B>ENTROPIUM_RANDOMBLOCK_SIZE){
                entropium_getRandomBlock(block);
                block = (uint8_t*)block + ENTROPIUM_RANDOMBLOCK_SIZE;