X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=twister-small.c;h=5fb05368ce9ff7d9255d1553ad38bd06006dff6b;hb=cccb1d3e008592ad7e4b57653afb95deb4d4a2c5;hp=3575bd60584a5c6a08c1e673a59af27a2ec66a2d;hpb=3caccd2034e682222162e24c256d20bf65d7c649;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;