X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/2850bb6426a5db0bc65b0b6c32c1e8ab651165f8..ff99986ec776f610a89ee8fa8f4360be23e15859:/OneRoundIoT/NEW/scprng.cpp diff --git a/OneRoundIoT/NEW/scprng.cpp b/OneRoundIoT/NEW/scprng.cpp index 5f1a3d5..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