X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=jh%2Fjh_simple_speed_core.c;fp=jh%2Fjh_simple_speed_core.c;h=55fbefff33011f86c20ab8aa796c654837fd88c2;hp=94c029ce98cce9b28acc1fb3c66263251971d417;hb=701cee0d98aab48dd3192c8cc7c77eb42581bc56;hpb=21bfb1fb168b3114f675f34e257b6acc557b2de8 diff --git a/jh/jh_simple_speed_core.c b/jh/jh_simple_speed_core.c index 94c029c..55fbeff 100644 --- a/jh/jh_simple_speed_core.c +++ b/jh/jh_simple_speed_core.c @@ -34,7 +34,7 @@ static void jh_round(uint8_t* a, uint8_t roundno){ uint8_t b[128]; - uint8_t i,r,u,v,x,y; + uint8_t i,r=0,u,v,x,y; uint8_t *pr; pr = jh_round_const + 32*roundno; for(i=0; i<128; ++i){ @@ -63,6 +63,7 @@ void jh_round(uint8_t* a, uint8_t roundno){ } } +/* static uint8_t jh_l_inv(uint8_t a){ uint8_t v,w; @@ -72,6 +73,7 @@ uint8_t jh_l_inv(uint8_t a){ w ^= ((v<<1)^(v>>3)^((v>>2)&2))&0xf; return w|(v<<4); } +*/ static inline void group(uint8_t *a){