Group number 1:
- members : Do Hoang Nam, Tran Tien Thanh, Pham Son Hai Duong, Dinh Quoc An, Nguyen Minh Quan,
- ma dong nhom trinh bay: MICKEY 2.0
- file ppt: duoc gui kem trong assignment
g++ -o MICKEY20.exe MICKEY20.cpp
./MICKEY20.cpp
Input: enter the message: Cảm xúc bị dồn nén được giải tỏa, tuôn trào. Điệp khúc tôi yễu em được lặp lại đến ba lần như một lời khẳng định tình yêu của tác giả rất chân thành đằm thắm. Điều đó có nghĩa ngọn lửa tình yêu trong trái tim tác giả không bao giờ tắt, không bao giờ lụi tàn, nhạt phai. Chính sự chân thành, đằm thắm, không bao giờ nhạt phai ấy là cái gốc của tấm lòng cao thượng trong tình yêu. Nó lí giải vì sao tác giả ở đoạn trên lại có một xử sự dịu dàng, tế nhị, trân trọng người mình yêu và đến cuối bài thơ lại có một lời chúc thiêng liêng đầy vị tha: Tôi cầu mong em có được một người yểu em cũng chân thành đằm thắm như tôi.
Output:
- Key: 10000011010000100001100011101000100111010111111111101101011001011100010101010111
- iv: 10111100110101100000101100011110001110101111010010101001000111010101110101010010
- cyphertext: 111011100101000100010100010111011011010101001000001111010100101000111110101001011111110101110100111110010010111100011010101011101111101110011000110001100010000000100111001011101101110111101011010110000111111111001001010010100111100101101100110111000111100101111110110100100111110110000101001011011001111000111110000101101101001010000011111001100011001000010100000001000100111110110111000101100110011110111101101101110001001001011100001000110101101011000101111001110000110101010110111101001010100001011000110001000111110011001000101111100100000001110110001010010111010110011110101010000000000001010010001010010110011111101101010101100000100010001110010111110011010100010010000000000100110011111010010100111010001100111010110010011011111100101110000110000100111000110010000011101100100110000000011111101110111000100010000010101010011101101010000100111011010101011010101000000000101011101111100010100001101011010110111110001011101000001111101010000100001010010101101101010010001001111010110101011111111000000001011100100001101011111010100110011110100010100000001010011001011100100110011110111001011010110111010000101010101111001101111101011011101001100000011010000011101101101101011101101001110110010100100111111110010111111100011100111011110110111100111001010000111111110111110101000100101000001111111110110010010111100000110000010101010001000101000010100010110011101100001100001010010100010010001100100000100001101101011001010111100000100100010110110110100100111110001101001101110110011100010010000000110010100100010101011111010000101101000000100010101011101111101010110001100000011010011001110110001000100100010011000010001000101011110110011010101111100011111100000110000010111000100101000000100100011000001110101011001110010010110100011011101011011000001001101010011010110100111111010001010111100111110011000011011011011111010011101101010001011001000101100010011010111001011101011111101111001001011100111001110000011100011101001100000001000011011101011010010101000001010110010110001110110010010101101110000001101011001101101100010110010010111100000001111100111000111011111100010110101010000101000100010010010011101011001000110001000111110010001000101111000101011010000011101001001110101110100110000011000101110101010111101010000110111011111101011110110101000011101010100010111000010101000111111010010010101000100000010101111110111010000111101011110001010110011000001010101000000011000011101011001111001100100000010011100001100011111000001011101100011000101101111100101010000110011010000011001100100101000010101111011100000011011111100101001000000001101110011101100100000001111010010100011100001001110011001000010100110001100110101111100110101110011110110010101110100101010111001101110111101011010000011010101011011111110011101100111000100001111101000100011111101001110111011100100110000111110000010110001000111110010100100001001000001110011011010010101111110111011011000010110111110101001101001010000100010000011101111101000011010010101100100010011100010100111111111111001000000111010100010101010001001000001011111111010000100110111100011011011101001110101111111010101110011011111011001000110001101001110010011011101000101010110010000111110001001011101000010001101101011000110110011001010111000000001100000110101000010111111000101001110110011010001011101010111110111111111101011101100100001111100101111110011000111011000101100001000100001010101101100111001110011110100110011000111001010001110000010111011100001000001110001110001100100001011100110111010100001001011011010011010111101110110111000000111100101000100111111101000101100000100111001110000001110111111000100100011101011010010101101000111111110001101111100101100100001011011101100111011011011101111001010110100000000100110101100000110011100000000001101111110111001011110101011010001101010110001001111101011110110000110100011110111010110101111100001001111110110100011111111001110110011011000101010001001101000001010000011011010100000000011100110111101011000101101001100100110001011001001111100010101100100000010111110100110110110101001100110100010001100111011110110110110001010001001100000000111011110110110010000111111100011110100000011011011001000000010110010110100010011010001000011000010110011000000100010111111011100001110101110001110001010011000001100011100011001011101110111001000110110111001101011110001110100110001001001101110111101001000100011100101111011100000110110110101110100110001100001100111010010100011100110011011000000101001011111110001101100100100000001100011111010110100010011110101001000100001110010110000100010001010101100000000011001100000010101001100010110000110110100101111110011000010111110111110101010011010000001110010001100000001000000011100111101010010110010011101101001000010001100011001011101101011010100010111010011110100111000011010011000111101111101111101101001101101110010001010111101011100000110000011001111010111010111111011111111111101010111110010100001111001001000001001111001110100010001010011100110011001011010111000000001000010111001111100110010101101100100010111111111011001000000000011111011000101101011011001111101010100011101101100101001011111110001001100001111100100110010000000010011110010111000000000011000110011001101011111011111000101001011111000101010101110010010100101010001011011111100011111000001011000011011110111011100010000011110111110100010101011111001011011001110000010111111001110101011101111010001111001000101010101101110011111001000101011001000111011111011000101111100101000000001010000110000101001111110011111100110001110000100010111010011101101100001011101001011010010111110000100010110000110010110101010011101101110111101001001010110001110010000101000110010010100111110011000111100000111011001111000111111111111011110000000011000101010000110111010111101100101001000001011001011010010110100111001101111010110001010101011011011111101111100001010010011001110110101111001010
g++ -o output.exe RC4.cpp framework.cpp
./output.exe
- Output:
Welcome to the encryption testing site! In this testing site, we are gonna have four different tests for an eStream:
- Encryption rate for long streams: The testing framework measures the encryption rate by encrypting a long stream in chunks of about 4KB. The encryption speed, in cycles/byte, is calculated by measuring the number of bytes encrypted in 250 µsec. !) Note that the time to setup the key or the IV is not considered in this test.
- Packet encryption rate: While a block cipher is likely to be a better choice when encrypting very short packets, it is still interesting to determine at which length a stream cipher starts to take the lead. The packet encryption rate is measured by applying with the packets of different lengths. Each call includes a separate IV setup and and the packet lengths (40, 576, and 1500 bytes) were chosen to be representative for the traffic seen on the Internet [JTC-003].
- Agility : The testing framework performs the following test: it first initiates a large number of sessions (filling 16MB of RAM ), and then encrypts streams of plaintext in short blocks of around 256 bytes
- Key and IV setup: The last test in the testing framework separately measures the efficiency of the key setup and the IV setup
Welcome to the encryption testing site! In this testing site, we are gonna have four different tests for an eStream:
- Encryption rate for long streams: The testing framework measures the encryption rate by encrypting a long stream in chunks of about 4KB. The encryption speed, in cycles/byte, is calculated by measuring the number of bytes encrypted in 250 µsec. !) Note that the time to setup the key or the IV is not considered in this test.
- Packet encryption rate: While a block cipher is likely to be a better choice when encrypting very short packets, it is still interesting to determine at which length a stream cipher starts to take the lead. The packet encryption rate is measured by applying with the packets of different lengths. Each call includes a separate IV setup and and the packet lengths (40, 576, and 1500 bytes) were chosen to be representative for the traffic seen on the Internet [JTC-003].
- Agility : The testing framework performs the following test: it first initiates a large number of sessions (filling 16MB of RAM ), and then encrypts streams of plaintext in short blocks of around 256 bytes
- Key and IV setup: The last test in the testing framework separately measures the efficiency of the key setup and the IV setup
Profile: Team 1 Key size: 128 bits
Estimated CPU frequency: 3.11043e+09 Hz Cycles are measured using RDTSC instruction
Testing memory requirements: Size of ECRYPT_ctx: 108 bytes
Testing stream encryption speed:
Encrypted 2blocks of 4096 bits (under 1 keys, 2 blocks/key) Total time: 0.000398238 Encryption speed (cycles/byte):302.574 Encryption speed (Mbps): 9.80883 Testing packet encryption speed:
Encrypted 116packets of 40 bits (under 1 keys, 116 blocks/key) Total time: 0.00025311Encryption speed (cycles/byte):19691.9 Encryption speed (Mbps): 0.150713
Encrypted 9packets of 40 bits (under 1 keys, 9 blocks/key) Total time: 0.000292571Encryption speed (cycles/byte):1580.59 Encryption speed (Mbps): 1.87755
Encrypted 4packets of 40 bits (under 1 keys, 4 blocks/key) Total time: 0.000294804Encryption speed (cycles/byte):611.604 Encryption speed (Mbps): 4.85242
Testing key setup speed: Did 7000 key setups under 1 key Key setup time: 0.0361938 seconds
Welcome to the encryption testing site! In this testing site, we are gonna have four different tests for an eStream:
- Encryption rate for long streams: The testing framework measures the encryption rate by encrypting a long stream in chunks of about 4KB. The encryption speed, in cycles/byte, is calculated by measuring the number of bytes encrypted in 250 µsec. !) Note that the time to setup the key or the IV is not considered in this test.
- Packet encryption rate: While a block cipher is likely to be a better choice when encrypting very short packets, it is still interesting to determine at which length a stream cipher starts to take the lead. The packet encryption rate is measured by applying with the packets of different lengths. Each call includes a separate IV setup and and the packet lengths (40, 576, and 1500 bytes) were chosen to be representative for the traffic seen on the Internet [JTC-003].
- Agility : The testing framework performs the following test: it first initiates a large number of sessions (filling 16MB of RAM ), and then encrypts streams of plaintext in short blocks of around 256 bytes
- Key and IV setup: The last test in the testing framework separately measures the efficiency of the key setup and the IV setup
Profile: Team 1 Key size: 80 bits IV size: 80 bits
Estimated CPU frequency: 3.11037e+09 Hz Cycles are measured using RDTSC instruction
Testing memory requirements: Size of ECRYPT_ctx: 108 bytes
Testing stream encryption speed:
Encrypted 1blocks of 4096 bits (under 1 keys, 1 blocks/key) Total time: Encryption speed (cycles/byte):4078.34 Encryption speed (Mbps): 0.727326 Testing packet encryption speed:
Encrypted 1packets of 40 bits (under 1 keys, 1 blocks/key) Total time: 0.000400188Encryption speed (cycles/byte):31121.2 Encryption speed (Mbps): 0.0953226
Encrypted 1packets of 40 bits (under 1 keys, 1 blocks/key) Total time: 0.00649495Encryption speed (cycles/byte):35073.7 Encryption speed (Mbps): 0.0845759
Encrypted 1packets of 40 bits (under 1 keys, 1 blocks/key) Total time: 0.0169989Encryption speed (cycles/byte):35248.9 Encryption speed (Mbps): 0.0841529
Testing key setup speed: Did 7000 key setups under 1 key Keystream setup time: 2.27061 seconds
Chua hoan thanh.