X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=jh%2Fjh_simple_small_core.c;h=15d8571d984e549c32ec6c0753e6489d1161bd65;hp=7d457f4dad225580fabc49d538039cb851c7f6f9;hb=d1181933dc28db92d787cf5604e2fc96ab0d8f9f;hpb=62d7d4d281af70bc2f56fb3baa86a6915e126240 diff --git a/jh/jh_simple_small_core.c b/jh/jh_simple_small_core.c index 7d457f4..15d8571 100644 --- a/jh/jh_simple_small_core.c +++ b/jh/jh_simple_small_core.c @@ -109,7 +109,7 @@ static const uint8_t idx[]={112,80,48,16,96,64,32,0}; static inline void group(uint8_t *a){ uint8_t b[128]; - uint8_t i,j,k,x; + uint8_t i,j,k,x=0; for(i=0; i<128; ++i){ j=i/8; for(k=0;k<8;++k){ @@ -154,7 +154,7 @@ void jh_encrypt(uint8_t* a){ jh_round(a, rc); jh_next_round_const(rc); } - uint8_t r,x,y; + uint8_t r=0,x,y; for(i=0; i<128; ++i){ if(i%4==0){