X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/fc79b4d9bd348fea2043e2aa4e7f29bd16fef2e1..7b02553c06f361be8c2f181d0a6cb4cd6b4fdb39:/OneRoundIoT/OneRound/one_round_hash.cpp?ds=inline 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 "<