X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/60c0e3eda17810f9f706c64e67259ec004b1636c..518ec4e69d3cbcee49a2eb54ee147d58e8c31658:/OneRoundIoT/EnhancedOneRound/enhanced_oneround.cpp diff --git a/OneRoundIoT/EnhancedOneRound/enhanced_oneround.cpp b/OneRoundIoT/EnhancedOneRound/enhanced_oneround.cpp index e13650b..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