From: Raphaƫl Couturier Date: Mon, 29 Jul 2019 11:02:21 +0000 (+0200) Subject: new X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/commitdiff_plain/adf5b1ebab7c0058a2b31b552f9477a05a0810c3?hp=0036ee671aae06eff3caf234c1feea7204d99d73 new --- diff --git a/OneRoundIoT/EnhancedOneRound/test_substitution.cpp b/OneRoundIoT/EnhancedOneRound/test_substitution.cpp index 48ea63f..978876b 100644 --- a/OneRoundIoT/EnhancedOneRound/test_substitution.cpp +++ b/OneRoundIoT/EnhancedOneRound/test_substitution.cpp @@ -206,7 +206,8 @@ int main(int argc, char** argv) { uchar Sbox1[256]; - uchar Sbox2[256]; + uchar Sbox2[256]; + uchar Sbox3[256]; uchar Temp[256]; @@ -214,27 +215,36 @@ int main(int argc, char** argv) { double time=0; - rc4key(DK, Sbox1, 8); + rc4key(DK, Sbox1, 16); - rc4key(&DK[8], Sbox2, 8); + rc4key(&DK[16], Sbox2, 16); + rc4key(&DK[32], Sbox3, 16); + + + for(int i=0;i<256;i++) + cout<<(int)Sbox1[i]<<" "; + cout<