#include //#include "./printf.h" AES aes ; byte *key = (unsigned char*)"0123456789010123"; const int size_mesg=256; //real iv = iv x2 ex: 01234567 = 0123456701234567 unsigned long long int my_iv = 36753562; void setup () { Serial.begin (57600) ; // printf_begin(); delay(500); // printf("\n===testng mode\n") ; randomSeed(134); // otfly_test () ; // otfly_test256 () ; } void loop () { prekey_test () ; delay(2000); } void prekey (int bits) { aes.iv_inc(); byte iv [N_BLOCK] ; byte plain[size_mesg]; byte cipher [size_mesg] ; byte check [size_mesg] ; randomSeed(334); for(int i=0;i