#include <avr/pgmspace.h>
#include "twister.h"
#include "twister_tables.h"
-#include "memxor/memxor.h"
+#include "memxor.h"
//#ifndef TWISTER_MUL_TABLE
# include "gf256mul/gf256mul.h"
memxor(ctx->s, tmp, 64);
twister_blank_round(ctx);
for(j=0; j<4; ++j){
- *((uint8_t*)dest) = ctx->s[3-j][0] ^ tmp[3-j][0];
+ *((uint8_t*)dest) = ctx->s[7-j][0] ^ tmp[7-j][0];
dest = (uint8_t*)dest + 1;
}
}