X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=entropium%2Fentropium.c;h=0cc360397b17f7cfb1dec806663bd21b9949516d;hb=2bd3b1adfac19dfe2ef8eeb1d2f662d34c1a1844;hp=b86cd1bc581a318ab8f70c25991263ead15657ac;hpb=7b5401ab9ce23a5da1de8b6c7de3a1aa20ac4cf8;p=avr-crypto-lib.git diff --git a/entropium/entropium.c b/entropium/entropium.c index b86cd1b..0cc3603 100644 --- a/entropium/entropium.c +++ b/entropium/entropium.c @@ -48,7 +48,7 @@ #include #include -#include "sha256/sha256.h" +#include "sha256.h" #include "entropium.h" /** @@ -87,7 +87,7 @@ void entropium_addEntropy(unsigned length_b, const void* data){ void entropium_getRandomBlock(void *b){ sha256_ctx_t s; - uint8_t offset=8; + static uint8_t offset=8; sha256_init(&s); sha256_lastBlock(&s, rndCore, 512); /* remeber the byte order! */