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