X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=twister-small.c;h=5fb05368ce9ff7d9255d1553ad38bd06006dff6b;hb=ed07adb6f2aeaf61da0e482cec328120bfeb860e;hp=3575bd60584a5c6a08c1e673a59af27a2ec66a2d;hpb=dca8c6894a08717979d3e4f64908702620171dee;p=avr-crypto-lib.git diff --git a/twister-small.c b/twister-small.c index 3575bd6..5fb0536 100644 --- a/twister-small.c +++ b/twister-small.c @@ -53,7 +53,7 @@ void twister_small_nextBlock(twister_state_t* ctx, const void* msg){ void twister_small_lastBlock(twister_state_t* ctx, const void* msg, uint16_t length_b){ uint8_t tmp[64]; - while(length_b>512){ + while(length_b>=512){ twister_small_nextBlock(ctx, msg); msg = ((uint8_t*)msg)+64; length_b -= 512;