]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - jh/jh_simple_small_core.c
removed warnings and bugs
[avr-crypto-lib.git] / jh / jh_simple_small_core.c
index 7d457f4dad225580fabc49d538039cb851c7f6f9..15d8571d984e549c32ec6c0753e6489d1161bd65 100644 (file)
@@ -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){