X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/b3af72beed65e8fac2833f54ed3a0dde34886548..94e90035b1b2f00c5862a03f69a0b23d9b53df51:/OneRoundIoT/OneRound/one_round_hash.cpp diff --git a/OneRoundIoT/OneRound/one_round_hash.cpp b/OneRoundIoT/OneRound/one_round_hash.cpp index c04dfda..e67d4bb 100644 --- a/OneRoundIoT/OneRound/one_round_hash.cpp +++ b/OneRoundIoT/OneRound/one_round_hash.cpp @@ -1,6 +1,9 @@ //gcc pixmap_io.c -c //g++ -O3 one_round_test.cpp pixmap_io.o -o one_round_test -std=c++11 +// + + #include #include #include @@ -340,9 +343,6 @@ int main(int argc, char** argv) { } } - if(change) { - buffer[4]++; - } @@ -366,8 +366,14 @@ int main(int argc, char** argv) { } + if(change) { + + seq[4]++; + } + + int total_len=imsize; int rp=1; @@ -434,18 +440,20 @@ int main(int argc, char** argv) { RM2[i]=RM1[i]; } + cout<<"imsize "<