X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/3fbd7b35e2a1ab0574ec4fc209d3a261a98c563d..4d9a4865f4446306e2815ac4da409c92243b85b2:/OneRoundIoT/OneRound/one_round_hash_new.cpp diff --git a/OneRoundIoT/OneRound/one_round_hash_new.cpp b/OneRoundIoT/OneRound/one_round_hash_new.cpp index fbb517f..03242cd 100644 --- a/OneRoundIoT/OneRound/one_round_hash_new.cpp +++ b/OneRoundIoT/OneRound/one_round_hash_new.cpp @@ -168,16 +168,7 @@ void hash_DSD_BIN(uchar* seq_in, uchar* RM1,int len, int *PboxRM, uchar *Sbox1, X[a+3]=RM1[a+3]^seq_in[ind2+a+3]; } -/* Y[0]=Sbox1[X[0]^X[h-1]]; - for(int a=1;a0;a--) { - Z[a-1]=Sbox2[Z[a]^Y[a]]; - } -*/ Y[0]=X[0]^X[h-1]; for(int a=1;a0;a--) { Z[a-1]=Z[a]^Y[a]; } - for(int a=0;a