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; Zen 3 (a50f00); 2021 AMD Ryzen 5 PRO 5650G; 6 x 3900MHz; cezanne, 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.270.270.28aes256ctr
0.400.410.42T:aes128ctr
0.430.430.43T:aes192ctr
0.470.480.49chacha8
0.480.490.50salsa208
0.670.680.70chacha12
0.68?0.69?0.85?tango642
0.700.710.71salsa2012
0.850.860.88T:speck6496ctr
0.900.900.90T:speck64128ctr
1.041.051.07chacha20
1.061.061.07T:speck128128ctr
1.091.091.10T:speck128192ctr
1.121.131.13T:speck128256ctr
1.121.131.14xsalsa20
1.121.131.14salsa20
1.131.161.17T:simon6496ctr
1.181.211.26T:simon64128ctr
1.361.371.39T:hc128
1.701.711.72T:simon128128ctr
1.801.801.82T:simon128256ctr
1.871.891.90T:trivium
1.901.901.91T:sosemanuk
1.971.982.00T:hc256
2.012.052.07T:tpy
2.062.072.07T:panama
2.102.112.13T:cryptmtv3
2.212.232.36T:nlsv2
2.302.382.44T:tpy6
2.412.432.44T:rabbit
3.083.103.10T:snow20
3.833.913.96T:tpypy
4.024.054.07T:lexv2
8.058.108.16T:aes128estream
11.09?12.34?17.36?T:aes256estream
15.8416.0016.70T:ocelot1
18.1418.2818.41T:ocelot2
27.4927.6028.52T:amastrid
Cycles/byte for 4096 bytes
25%50%75%stream
0.300.300.30aes256ctr
0.420.430.43T:aes128ctr
0.490.490.50chacha8
0.510.510.51salsa208
0.550.550.55T:aes192ctr
0.690.690.71chacha12
0.720.720.72salsa2012
0.83?0.83?0.95?tango642
0.890.900.90T:speck6496ctr
0.930.930.93T:speck64128ctr
1.061.061.07chacha20
1.101.101.10T:speck128128ctr
1.121.131.13T:speck128192ctr
1.141.151.15salsa20
1.161.171.17T:speck128256ctr
1.231.231.24xsalsa20
1.291.301.31T:simon6496ctr
1.461.481.48T:simon64128ctr
1.951.951.95T:simon128128ctr
2.032.042.05T:trivium
2.122.132.13T:sosemanuk
2.222.222.23T:simon128256ctr
2.382.402.49T:nlsv2
2.492.502.51T:rabbit
2.672.682.68T:cryptmtv3
2.722.722.72T:panama
3.023.053.07T:tpy6
3.173.183.18T:snow20
3.403.433.43T:tpy
4.154.164.17T:lexv2
4.444.454.45T:hc128
5.235.265.29T:tpypy
8.148.178.20T:aes128estream
9.449.459.46T:hc256
12.43?12.45?16.20?T:aes256estream
17.6417.6918.16T:ocelot1
19.2419.3119.37T:ocelot2
29.1729.2229.60T:amastrid
Cycles/byte for 1536 bytes
25%50%75%stream
0.340.340.35aes256ctr
0.450.460.46T:aes128ctr
0.510.510.52chacha8
0.530.540.54salsa208
0.710.720.73chacha12
0.740.740.75salsa2012
0.740.750.75T:aes192ctr
0.940.960.97T:speck6496ctr
0.980.980.99T:speck64128ctr
1.051.061.06tango642
1.071.081.10chacha20
1.161.161.16T:speck128128ctr
1.161.171.18salsa20
1.181.191.19T:speck128192ctr
1.231.231.24T:speck128256ctr
1.401.401.41xsalsa20
1.521.521.53T:simon6496ctr
1.831.921.93T:simon64128ctr
2.282.292.30T:trivium
2.342.342.35T:simon128128ctr
2.542.552.56T:sosemanuk
2.612.642.67T:rabbit
2.732.752.76T:nlsv2
2.902.912.92T:simon128256ctr
3.303.323.33T:snow20
3.803.813.82T:panama
4.094.094.11T:cryptmtv3
4.074.104.34T:tpy6
4.354.364.37T:lexv2
5.755.775.79T:tpy
7.637.677.71T:tpypy
8.248.268.29T:aes128estream
9.559.569.58T:hc128
12.56?12.61?16.32?T:aes256estream
20.3920.5020.83T:ocelot1
20.9321.0521.16T:ocelot2
21.8821.9121.93T:hc256
30.5730.6832.34T:amastrid
Cycles/byte for 576 bytes
25%50%75%stream
0.540.550.56aes256ctr
0.560.580.60T:aes128ctr
0.690.690.70chacha8
0.740.750.80salsa208
0.990.991.01chacha12
1.041.051.05salsa2012
1.091.101.15T:speck6496ctr
1.141.151.15T:speck64128ctr
1.291.301.30T:aes192ctr
1.371.371.37T:speck128128ctr
1.381.381.39T:speck128192ctr
1.461.461.47T:speck128256ctr
1.511.521.53chacha20
1.641.661.68salsa20
1.691.701.70tango642
2.252.262.28xsalsa20
2.952.972.98T:trivium
3.013.033.05T:rabbit
3.023.033.04T:simon6496ctr
3.093.103.12T:simon64128ctr
3.563.593.64T:nlsv2
3.653.683.69T:snow20
3.693.693.69T:sosemanuk
4.624.644.65T:cryptmtv3
4.674.754.76T:simon128128ctr
4.884.924.97T:lexv2
5.125.145.16T:simon128256ctr
6.676.686.70T:panama
6.696.766.84T:tpy6
8.488.508.53T:aes128estream
11.9112.0712.10T:tpy
13.08?13.11?16.90?T:aes256estream
13.5613.6613.76T:tpypy
23.2423.2723.30T:hc128
25.0825.2725.51T:ocelot2
27.6927.8328.75T:ocelot1
36.6136.8736.99T:amastrid
55.0755.1255.17T:hc256
Cycles/byte for 64 bytes
25%50%75%stream
1.911.951.98T:aes128ctr
2.612.642.75T:speck6496ctr
2.732.782.86aes256ctr
2.752.802.86chacha8
3.023.033.06T:speck64128ctr
3.053.083.14salsa208
3.283.313.44T:speck128128ctr
3.383.443.55T:speck128192ctr
3.693.783.83T:speck128256ctr
3.813.883.91chacha12
4.024.114.14salsa2012
5.455.535.61chacha20
6.096.146.17salsa20
7.097.197.27T:simon6496ctr
7.697.697.69T:rabbit
7.958.028.09T:simon64128ctr
8.278.308.36T:snow20
8.278.338.48T:aes192ctr
9.759.789.86tango642
10.2710.4510.52T:cryptmtv3
11.4711.5511.69T:simon128128ctr
11.4411.5811.70xsalsa20
11.6411.7011.72T:trivium
11.7311.7711.97T:lexv2
11.7311.8612.06T:aes128estream
12.9713.0813.16T:simon128256ctr
16.6416.7516.98T:nlsv2
17.0617.0617.12T:sosemanuk
19.19?19.44?23.09?T:aes256estream
41.9442.4543.94T:tpy6
43.5043.7043.91T:panama
80.6181.6183.53T:ocelot2
89.2389.5991.31T:tpy
89.9190.4293.84T:tpypy
115.25115.98116.88T:amastrid
123.14124.08125.47T:ocelot1
197.75198.08198.62T:hc128
479.70479.98480.42T:hc256
Cycles/byte for 8 bytes
25%50%75%stream
16.1216.3817.12T:aes128ctr
16.3816.3816.38T:speck6496ctr
17.1217.1217.12T:speck64128ctr
18.7518.7519.38T:speck128192ctr
18.8818.8818.88T:speck128128ctr
22.3822.3822.38T:speck128256ctr
22.8823.5024.25aes256ctr
26.8827.2527.75chacha8
27.3827.3827.50salsa208
36.2536.7537.38chacha12
43.3843.3843.50T:simon6496ctr
44.5044.8845.38chacha20
45.7545.8847.00salsa2012
48.2548.2548.25T:rabbit
49.7549.7549.75T:simon64128ctr
51.1251.1251.12salsa20
51.0051.5051.62T:aes128estream
63.0063.6264.88T:snow20
66.5067.0067.12T:aes192ctr
66.0067.8868.38T:cryptmtv3
69.2569.8871.38T:lexv2
72.2572.2572.75T:simon128128ctr
73.7573.7575.25tango642
79.25?81.62?89.38?T:aes256estream
82.0082.0082.00T:simon128256ctr
83.0083.0083.88T:trivium
90.5091.2593.38T:nlsv2
96.2596.2597.00xsalsa20
136.75136.88137.25T:sosemanuk
324.12330.00330.88T:tpy6
345.00345.88347.38T:panama
521.12529.62536.00T:ocelot2
700.25703.50711.50T:tpypy
699.12710.25716.12T:tpy
771.75800.50806.25T:amastrid
854.75868.62893.88T:ocelot1
1584.121586.381589.12T:hc128
3842.123848.503851.88T:hc256