Changes

Jump to: navigation, search

DPS915 C U D A B O Y S

1,826 bytes added, 12:09, 3 November 2015
Profiling
'''RC4 Cipher - 283 MB mp3 File'''
[root@jr-net-cent7 aes]# time ./encFile 4 /home/johny/aes/music.mp3
/home/johny/aes/music.mp3
* * * File Protector * * *
Mode 4: RC4 cipher
Please enter the RC4 key (8 chars min)
testing123
The password is: testing123
Beginning encryption
Completed: 100%
Cipher completed.
Program terminated.
 
real 0m6.758s
user 0m3.551s
sys 0m0.068s
 
Flat profile:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls ms/call ms/call name
84.05 1.70 1.70 296271519 0.00 0.00 rc4_output()
13.39 1.97 0.27 byteCipher(int, std::string)
2.73 2.02 0.06 1 55.09 55.09 rc4_init(unsigned char*, unsigned int)
0.00 2.02 0.00 1 0.00 0.00 _GLOBAL__sub_I_S
 
As we can see the <code>rc4_output</code> and <code>byteCipher</code> functions take up most of the processing time.
 
 
'''RC4 Cipher - 636 MB iso File'''
[root@jr-net-cent7 aes]# time ./encFile 4 /home/johny/aes/cent.iso
/home/johny/aes/cent.iso
* * * File Protector * * *
Mode 4: RC4 cipher
Please enter the RC4 key (8 chars min)
testing123
The password is: testing123
Beginning encryption
Completed: 100%
Cipher completed.
Program terminated.
 
real 0m10.293s
user 0m8.235s
sys 0m0.312s
 
Flat profile:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls ms/call ms/call name
74.86 3.59 3.59 666894336 0.00 0.00 rc4_output()
23.21 4.70 1.11 byteCipher(int, std::string)
2.09 4.80 0.10 1 100.16 100.16 rc4_init(unsigned char*, unsigned int)
0.00 4.80 0.00 1 0.00 0.00 _GLOBAL__sub_I_S
'''RC4 Cipher - 3.0 GB iso File'''

Navigation menu