VAMPIRE

eBACS: ECRYPT Benchmarking of Cryptographic Systems


ECRYPT II
General information:IntroductioneBASHeBASCeBAEADeBATSSUPERCOPXBXComputersArch
How to submit new software:Tipshashstreamaeaddhkemencryptsign
List of primitives measured:lwcsha3hashstreamlwccaesaraeaddhkemencryptsign
Measurements:lwcsha3hashstreamlwccaesaraeaddhkemencryptsign
List of subroutines:verifydecodeencodesortcorehashblocksxofscalarmult

Measurements of stream ciphers on one machine: amd64; Haswell+AES (306c3); 2013 Intel Core i7-4770; 4 x 3400MHz; speed2supercop, supercop-20240716

[Page version: 20240726 23:46:00]

eBASC (ECRYPT Benchmarking of Stream Ciphers) is a project to measure the performance of stream ciphers. This page presents benchmark results collected in eBASC:

Graphs show timings for all message lengths between 0 and 4096 bytes. The stair-step shape of a typical curve on the graphs reflects the fact that these stream ciphers handle messages in blocks, such as 64-byte blocks.

Each table row lists the first quartile of many speed measurements, the median of many speed measurements, the third quartile of many speed measurements, and the name of the primitive. Measurements with large variance are indicated in red with question marks. The symbol T: (starting with supercop-20200816) means that the SUPERCOP database at the time of benchmarking did not list constant time as a goal for this implementation. The symbol T!!! means that constant time was listed as a goal for this implementation, but that the implementation failed TIMECOP. (TIMECOP failures are not necessarily security issues; they can sometimes be resolved by, e.g., declaring that a rejection-sampling condition is safe to declassify.)

There is a separate page with more information about each stream cipher and each implementation. Designers and implementors interested in submitting new stream ciphers and new implementations should read the call for submissions.


Implementation notes

Graphs: (bytes,cycles)
Cycles/byte for long messages
25%50%75%stream
0.550.560.56chacha8
0.640.640.64salsa208
0.720.730.74tango642
0.760.760.76T:aes128ctr
0.770.780.79chacha12
0.900.910.93salsa2012
0.87?0.99?1.11?T:aes192ctr
1.001.001.01aes256ctr
1.031.041.04T:speck6496ctr
1.071.081.09T:speck64128ctr
1.211.211.22chacha20
1.251.261.27T:speck128128ctr
1.291.301.30T:speck128192ctr
1.331.331.34T:speck128256ctr
1.13?1.44?2.64?xsalsa20
1.451.461.48salsa20
1.531.541.54T:simon6496ctr
1.601.601.62T:simon64128ctr
1.881.901.91T:trivium
2.012.032.04T:sosemanuk
2.022.092.15T:tpy
2.132.162.18T:hc128
2.242.262.27T:nlsv2
2.162.262.36T:simon128128ctr
2.282.352.44T:simon128256ctr
2.222.412.45T:tpy6
2.442.452.46T:cryptmtv3
2.582.622.64T:hc256
3.073.083.11T:panama
3.173.183.19T:rabbit
3.143.323.36T:tpypy
3.323.363.51T:snow20
4.444.454.47T:lexv2
9.079.099.10T:aes128estream
13.9114.0314.08T:aes256estream
17.21?18.76?21.10?T:ocelot1
19.6820.0421.56T:ocelot2
31.4132.1833.55T:amastrid
Cycles/byte for 4096 bytes
25%50%75%stream
0.560.570.57chacha8
0.660.660.66salsa208
0.790.790.79chacha12
0.790.790.79T:aes128ctr
0.880.880.89tango642
0.920.930.94salsa2012
1.041.051.05aes256ctr
1.071.071.07T:speck6496ctr
1.111.111.11T:speck64128ctr
1.221.231.23chacha20
1.301.301.30T:speck128128ctr
1.321.341.42T:aes192ctr
1.341.341.34T:speck128192ctr
1.371.371.38T:speck128256ctr
1.471.471.48salsa20
1.55?1.56?2.45?xsalsa20
1.751.761.76T:simon6496ctr
1.951.961.96T:simon64128ctr
1.981.991.99T:trivium
2.392.402.40T:nlsv2
2.522.532.54T:sosemanuk
2.522.592.60T:simon128128ctr
2.802.812.86T:simon128256ctr
2.992.992.99T:cryptmtv3
3.043.163.18T:tpy6
3.273.283.28T:rabbit
3.453.463.56T:snow20
3.683.693.71T:tpy
4.074.084.09T:panama
4.584.584.59T:lexv2
4.754.824.84T:tpypy
5.425.425.43T:hc128
9.149.159.15T:aes128estream
11.0711.0811.08T:hc256
14.0314.1114.13T:aes256estream
19.01?19.82?21.36?T:ocelot1
21.0621.1222.22T:ocelot2
33.5033.6634.65T:amastrid
Cycles/byte for 1536 bytes
25%50%75%stream
0.580.580.59chacha8
0.680.690.69salsa208
0.800.820.82chacha12
0.840.840.84T:aes128ctr
0.950.950.95salsa2012
1.111.111.12aes256ctr
1.121.121.13T:speck6496ctr
1.141.141.15tango642
1.161.161.17T:speck64128ctr
1.241.251.26chacha20
1.361.361.37T:speck128128ctr
1.401.411.41T:speck128192ctr
1.441.441.45T:speck128256ctr
1.491.491.50salsa20
1.74?1.75?2.64?xsalsa20
1.91?1.93?2.21?T:aes192ctr
2.112.112.12T:simon6496ctr
2.142.142.15T:trivium
2.532.542.55T:simon64128ctr
2.682.692.70T:nlsv2
2.963.123.15T:simon128128ctr
3.423.423.43T:rabbit
3.423.433.44T:sosemanuk
3.523.533.67T:simon128256ctr
3.613.633.73T:snow20
4.244.284.40T:tpy6
4.334.334.34T:cryptmtv3
4.794.804.82T:lexv2
5.715.725.74T:panama
6.306.346.39T:tpy
7.207.317.39T:tpypy
9.219.229.24T:aes128estream
10.7810.8210.85T:hc128
14.1914.2414.28T:aes256estream
20.9921.7022.95T:ocelot1
22.8923.0223.80T:ocelot2
25.1525.1825.22T:hc256
36.5736.8637.08T:amastrid
Cycles/byte for 576 bytes
25%50%75%stream
0.780.780.80chacha8
0.940.960.97salsa208
1.061.061.08T:aes128ctr
1.101.121.15chacha12
1.311.311.33salsa2012
1.321.331.34T:speck6496ctr
1.381.381.39T:speck64128ctr
1.391.401.41aes256ctr
1.611.621.62T:speck128128ctr
1.651.661.67T:speck128192ctr
1.691.701.71T:speck128256ctr
1.721.721.74chacha20
1.831.841.86tango642
2.062.062.08salsa20
2.532.542.56T:trivium
2.78?2.80?3.58?xsalsa20
3.373.403.42T:nlsv2
3.543.553.57T:simon64128ctr
3.43?3.67?3.99?T:aes192ctr
3.723.743.75T:simon6496ctr
3.833.843.88T:rabbit
4.034.084.10T:snow20
4.995.025.05T:cryptmtv3
5.035.045.05T:simon128128ctr
5.435.445.46T:simon128256ctr
5.435.465.49T:lexv2
5.835.855.88T:sosemanuk
7.497.547.65T:tpy6
9.489.499.51T:aes128estream
10.1010.1410.17T:panama
13.4413.4913.58T:tpy
14.2014.2614.42T:tpypy
14.5614.6214.67T:aes256estream
25.2225.3025.35T:hc128
25.6726.4927.67T:ocelot1
27.6227.8228.72T:ocelot2
42.0742.5442.96T:amastrid
62.6762.7462.81T:hc256
Cycles/byte for 64 bytes
25%50%75%stream
2.882.942.94chacha8
3.443.503.56salsa208
3.503.503.56T:aes128ctr
3.503.563.62T:speck64128ctr
3.503.563.69T:speck6496ctr
3.943.944.06chacha12
4.194.254.38T:speck128192ctr
4.254.384.56T:speck128128ctr
4.444.504.69T:speck128256ctr
4.564.564.69aes256ctr
4.694.694.75salsa2012
5.755.815.81chacha20
7.067.067.12salsa20
7.627.697.75T:simon6496ctr
7.697.757.81T:trivium
8.508.628.88T:rabbit
8.949.009.12T:snow20
9.009.069.19T:simon64128ctr
10.8110.8811.00tango642
11.8111.9412.00T:cryptmtv3
12.6912.7512.88T:aes128estream
12.8812.9413.00T:simon128128ctr
13.3113.4413.62T:lexv2
13.6213.6913.81xsalsa20
13.7513.8113.88T:nlsv2
14.6214.7515.00T:simon128256ctr
19.1219.3119.50T:aes256estream
22.50?22.81?28.06?T:aes192ctr
33.0633.1933.38T:sosemanuk
47.1947.5047.69T:tpy6
64.9465.3865.69T:panama
84.0687.3187.56T:ocelot1
87.2587.6988.81T:ocelot2
100.88101.31101.81T:tpypy
103.75104.62106.81T:tpy
119.56120.38121.12T:amastrid
204.81205.62206.62T:hc128
543.31543.81544.19T:hc256
Cycles/byte for 8 bytes
25%50%75%stream
18.5019.0020.00T:speck6496ctr
18.50?19.50?23.00?T:speck128128ctr
19.0019.5020.00T:speck128256ctr
19.0019.5020.00T:speck64128ctr
22.0022.5023.00T:speck128192ctr
26.0026.5026.50chacha8
29.5029.5030.00T:aes128ctr
37.5038.0038.50aes256ctr
37.5038.0038.50salsa2012
39.5041.0042.50salsa208
44.5045.0046.00T:simon6496ctr
46.0046.5047.00chacha12
47.5047.5048.00chacha20
48.5049.0049.50T:trivium
50.0052.0054.50T:rabbit
55.0055.5056.00T:simon64128ctr
55.5056.0056.50salsa20
55.5056.0057.50T:aes128estream
68.5069.5072.00T:aes256estream
70.5071.5073.00T:snow20
72.0073.0074.50T:cryptmtv3
75.0076.0077.00T:simon128128ctr
75.5076.0077.00T:nlsv2
79.0080.0082.00T:lexv2
82.5083.0084.50tango642
88.5090.5092.50T:simon128256ctr
108.00108.50109.50xsalsa20
182.50?186.00?225.00?T:aes192ctr
265.50267.00268.50T:sosemanuk
369.00373.50378.00T:tpy6
510.50512.00516.00T:panama
543.50550.00561.00T:ocelot1
546.50560.50574.50T:ocelot2
775.50782.50787.00T:tpypy
783.00786.00791.00T:amastrid
813.50819.00843.00T:tpy
1640.501647.001652.50T:hc128
4349.004352.504358.00T:hc256