From: couturie Date: Sun, 24 Feb 2019 14:05:43 +0000 (+0100) Subject: new X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/commitdiff_plain/e6d4387fd5f7b3044c2ad17ef821f644235b042c?ds=sidebyside;hp=-c new --- e6d4387fd5f7b3044c2ad17ef821f644235b042c diff --git a/OneRoundIoT/NEW/scprng.cpp b/OneRoundIoT/NEW/scprng.cpp index 83765d1..e50118d 100644 --- a/OneRoundIoT/NEW/scprng.cpp +++ b/OneRoundIoT/NEW/scprng.cpp @@ -2,7 +2,7 @@ #include #include #include - +#include typedef unsigned char uchar; @@ -237,19 +237,34 @@ void scprng(uint64_t *plain, uint64_t* cipher, int bufsize, int nb_bloc, uint64_ } -int main() { +int main(int argc, char **argv) { printf("%d %d \n",sizeof(__uint64_t),sizeof(ulong)); + uint nb_test=1; + int width; int height; uchar *data_R, *data_G, *data_B; int imsize; uchar *buffer; - int size_buf=512; + int size_buf=128; + + int lena=0; + int h=128; + for(int i=1; i