From: couturie Date: Sat, 30 Sep 2017 12:19:06 +0000 (+0200) Subject: new X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/commitdiff_plain/8e5dc86424a8d757498e6468b1085bdf21b19116?ds=inline new --- diff --git a/Arduino/sketch_AES_other2/sketch_AES_other2.ino b/Arduino/sketch_AES_other2/sketch_AES_other2.ino deleted file mode 100644 index e2165ed..0000000 --- a/Arduino/sketch_AES_other2/sketch_AES_other2.ino +++ /dev/null @@ -1,75 +0,0 @@ -#include - - - - -int size_mesg=256; - -byte *key = (unsigned char*)"0123456789010123"; -byte *iv = (unsigned char*)"0123456789010123"; - - -void printArray(byte *mes, int n) { - for (byte i = 0; i < n; i++) { - Serial.print(mes[i]); - Serial.print(" "); - } - Serial.println(); -} - - - -void setup() { - // put your setup code here to run once: - Serial.begin (57600) ; -// printf_begin(); - delay(500); -} - -void loop() { - // put your main code here, to run repeatedly: - - AES aes(key, iv, AES::AES_MODE_128, AES::CIPHER_ENCRYPT); - - uint8_t plain[size_mesg]; - uint8_t cipher [size_mesg] ; - uint8_t check [size_mesg] ; - - - randomSeed(334); - for(int i=0;i