X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/a0adebcd963a2cdfa2f0100cdadf882cb993cfbe..ff99986ec776f610a89ee8fa8f4360be23e15859:/OneRoundIoT/NEW/scprng.cpp?ds=inline diff --git a/OneRoundIoT/NEW/scprng.cpp b/OneRoundIoT/NEW/scprng.cpp index 83765d1..8840364 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() { - printf("%d %d \n",sizeof(__uint64_t),sizeof(ulong)); +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