/* twister-big.c */
/*
- This file is part of the Crypto-avr-lib/microcrypt-lib.
+ This file is part of the AVR-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify
void twister_big_lastBlock(twister_big_ctx_t* ctx, const void* msg, uint16_t length_b){
uint8_t tmp[64];
- while(length_b>512){
+ while(length_b>=512){
twister_big_nextBlock(ctx, msg);
msg = ((uint8_t*)msg)+64;
length_b -= 512;