]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - twister-small.c
new AES in C, happy new year
[avr-crypto-lib.git] / twister-small.c
index 68e8e827b67b96e11212e1455d5386382c943486..44212859a0bf4d7a82081b3e8654f406c89c63be 100644 (file)
@@ -63,6 +63,7 @@ void twister_small_lastBlock(twister_state_t* ctx, void* msg, uint16_t length_b)
        tmp[length_b/8] |= 0x80 >> (length_b&0x07);
        twister_small_nextBlock(ctx, tmp);
        ctx->length_counter_b -= 512 - length_b;
+
        twister_mini_round(ctx, &(ctx->length_counter_b));
        twister_blank_round(ctx);
 }