X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/fb12494aee99738f9daab81fad888d1a45b5cb34..d8de23027e190ab94ece38a9411fefb995bab460:/CipherImg/test_sub_perm.cpp?ds=inline diff --git a/CipherImg/test_sub_perm.cpp b/CipherImg/test_sub_perm.cpp index b52d167..4e95800 100644 --- a/CipherImg/test_sub_perm.cpp +++ b/CipherImg/test_sub_perm.cpp @@ -1,4 +1,4 @@ -//g++ test_sub_perm.cpp -o test_sub_perm -O3 -fpermissive +//g++ test_sub_perm.cpp -o test_sub_perm -O3 -fpermissive // ./test_sub_perm sizebuf512 nb1000 @@ -57,6 +57,29 @@ void rc4key(uchar *key, uchar *sc, int size_DK) { } } +void rc4keyperm(uchar *key,int len, int rp,int *sc, int size_DK) { + + //sc=1:len; + + + + for (int i=0;i