X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/4fa9c3d0a87911ef71653cb99aa1c70f633a9473..f6a8395dc6bbfc631a9f53b35fe3970a3749a48a:/OneRoundIoT/OneRound/one_round_new.cpp diff --git a/OneRoundIoT/OneRound/one_round_new.cpp b/OneRoundIoT/OneRound/one_round_new.cpp index 59210a8..9066eaf 100644 --- a/OneRoundIoT/OneRound/one_round_new.cpp +++ b/OneRoundIoT/OneRound/one_round_new.cpp @@ -30,8 +30,9 @@ using namespace std; int key_size=256; int nb_test=1; int ctr=0; +const int h=32; + -const int h=16; const int h2=h*h; @@ -142,9 +143,9 @@ void encrypt_ctr(uchar* seq_in, uchar *seq_out, int len,uchar* RM1,int *Pbox, in uchar *fX=new uchar[h2]; int ind1,ind2; - + for(int a=0;a