From: couturie Date: Sun, 18 Feb 2018 19:28:15 +0000 (+0100) Subject: new X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/commitdiff_plain/7b936288991808e1548f9fcfa93bccb651071c4d?hp=3fbd7b35e2a1ab0574ec4fc209d3a261a98c563d new --- diff --git a/OneRoundIoT/OneRound/one_round_hash.cpp b/OneRoundIoT/OneRound/one_round_hash.cpp index 44773bc..bf3cfbb 100644 --- a/OneRoundIoT/OneRound/one_round_hash.cpp +++ b/OneRoundIoT/OneRound/one_round_hash.cpp @@ -178,7 +178,7 @@ void diff(uchar *Y, uchar *X, int h) { } else if(h==16) { - + /* Y[0] = X[3] ^ X[4] ^ X[6] ^ X[8] ^ X[9] ^ X[13] ^ X[14]; Y[1] = X[2] ^ X[5] ^ X[7] ^ X[8] ^ X[9] ^ X[12] ^ X[15]; Y[2] = X[1] ^ X[4] ^ X[6] ^ X[10] ^ X[11] ^ X[12] ^ X[15]; @@ -195,9 +195,9 @@ void diff(uchar *Y, uchar *X, int h) { Y[13] = X[0] ^ X[3] ^ X[6] ^ X[7] ^ X[8] ^ X[10] ^ X[13]; Y[14] = X[0] ^ X[3] ^ X[4] ^ X[5] ^ X[9] ^ X[11] ^ X[14]; Y[15] = X[1] ^ X[2] ^ X[4] ^ X[5] ^ X[8] ^ X[10] ^ X[15]; - + */ -/* uchar X0=X[0]; + uchar X0=X[0]; uchar X1=X[1]; uchar X2=X[2]; uchar X3=X[3]; @@ -231,7 +231,7 @@ void diff(uchar *Y, uchar *X, int h) { Y[13] = X0 ^ X3 ^ X6 ^ X7 ^ X8 ^ X10 ^ X13; Y[14] = X0 ^ X3 ^ X4 ^ X5 ^ X9 ^ X11 ^ X14; Y[15] = X1 ^ X2 ^ X4 ^ X5 ^ X8 ^ X10 ^ X15; -*/ + }