X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/9b54e701a0d5abcf47b533fcb86a1c24ffa034a9..518ec4e69d3cbcee49a2eb54ee147d58e8c31658:/OneRoundIoT/EnhancedOneRound/enhanced_oneround.cpp diff --git a/OneRoundIoT/EnhancedOneRound/enhanced_oneround.cpp b/OneRoundIoT/EnhancedOneRound/enhanced_oneround.cpp index c895a8a..7254d32 100644 --- a/OneRoundIoT/EnhancedOneRound/enhanced_oneround.cpp +++ b/OneRoundIoT/EnhancedOneRound/enhanced_oneround.cpp @@ -1598,27 +1598,30 @@ int main(int argc, char** argv) { double t=TimeStart(); - rc4key(DK, Sbox1, 8); - - - rc4key(&DK[8], Sbox2, 8); - - rc4key(&DK[16], sc, 16); - prga(sc, h*h*2+256, RM); - - + for(int i=0;i