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-20240625

[Page version: 20240719 07:49: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.280.28aes256ctr
0.400.410.42T:aes128ctr
0.420.430.45T:aes192ctr
0.470.480.48chacha8
0.490.490.49salsa208
0.670.680.69chacha12
0.680.690.69tango642
0.700.700.71salsa2012
0.850.860.88T:speck6496ctr
0.900.900.90T:speck64128ctr
1.031.051.07chacha20
1.061.061.07T:speck128128ctr
1.091.091.09T:speck128192ctr
1.121.131.13T:speck128256ctr
1.121.131.14salsa20
1.121.131.15xsalsa20
1.151.161.17T:simon6496ctr
1.161.201.25T:simon64128ctr
1.351.371.38T:hc128
1.691.711.72T:simon128128ctr
1.801.811.82T:simon128256ctr
1.881.881.89T:trivium
1.891.891.92T:sosemanuk
1.961.982.01T:hc256
2.042.062.07T:panama
2.122.132.15T:cryptmtv3
2.212.232.24T:nlsv2
2.402.412.42T:rabbit
2.322.412.48T:tpy
2.382.432.54T:tpy6
3.113.123.15T:snow20
3.823.924.05T:tpypy
4.014.034.07T:lexv2
8.078.108.13T:aes128estream
12.6212.6812.75T:aes256estream
17.4717.7418.04T:ocelot1
18.5018.6618.86T:ocelot2
25.9126.6927.36T:amastrid
Cycles/byte for 4096 bytes
25%50%75%stream
0.300.300.30aes256ctr
0.430.430.43T:aes128ctr
0.490.490.49chacha8
0.500.510.51salsa208
0.550.550.56T:aes192ctr
0.690.700.70chacha12
0.710.720.72salsa2012
0.830.830.83tango642
0.890.900.90T:speck6496ctr
0.930.930.93T:speck64128ctr
1.051.061.07chacha20
1.101.101.10T:speck128128ctr
1.131.131.13T:speck128192ctr
1.141.151.15salsa20
1.161.171.17T:speck128256ctr
1.231.241.24xsalsa20
1.291.301.30T:simon6496ctr
1.441.471.48T:simon64128ctr
1.941.951.96T:simon128128ctr
2.032.042.04T:trivium
2.122.122.14T:sosemanuk
2.222.222.23T:simon128256ctr
2.392.402.41T:nlsv2
2.482.492.49T:rabbit
2.682.692.70T:cryptmtv3
2.712.722.72T:panama
3.043.063.14T:tpy6
3.193.193.21T:snow20
3.663.703.73T:tpy
4.144.154.18T:lexv2
4.444.454.45T:hc128
5.205.245.31T:tpypy
8.158.178.18T:aes128estream
9.459.469.47T:hc256
12.7212.7612.81T:aes256estream
18.4918.6718.87T:ocelot1
19.5919.6719.79T:ocelot2
27.7228.2328.67T:amastrid
Cycles/byte for 1536 bytes
25%50%75%stream
0.340.340.35aes256ctr
0.450.460.46T:aes128ctr
0.510.510.51chacha8
0.530.530.54salsa208
0.710.720.73chacha12
0.740.740.75salsa2012
0.750.760.78T:aes192ctr
0.940.960.97T:speck6496ctr
0.980.980.99T:speck64128ctr
1.041.051.05tango642
1.071.081.09chacha20
1.161.161.16T:speck128128ctr
1.171.171.17salsa20
1.181.191.19T:speck128192ctr
1.231.231.23T:speck128256ctr
1.401.411.41xsalsa20
1.521.521.53T:simon6496ctr
1.831.921.93T:simon64128ctr
2.282.292.30T:trivium
2.332.342.36T:simon128128ctr
2.552.562.57T:sosemanuk
2.612.632.64T:rabbit
2.742.762.78T:nlsv2
2.902.912.92T:simon128256ctr
3.303.313.33T:snow20
3.803.803.82T:panama
4.124.134.14T:cryptmtv3
4.044.134.19T:tpy6
4.344.354.36T:lexv2
5.835.865.92T:tpy
7.467.507.56T:tpypy
8.278.288.30T:aes128estream
9.569.579.60T:hc128
12.8112.8712.90T:aes256estream
20.1620.3020.80T:ocelot1
20.9821.2721.79T:ocelot2
21.9121.9321.95T:hc256
30.7531.3431.80T:amastrid
Cycles/byte for 576 bytes
25%50%75%stream
0.550.560.57aes256ctr
0.560.580.60T:aes128ctr
0.680.690.70chacha8
0.730.730.74salsa208
0.960.970.99chacha12
1.031.051.06salsa2012
1.091.141.15T:speck6496ctr
1.141.151.15T:speck64128ctr
1.311.321.35T:aes192ctr
1.351.361.42T:speck128128ctr
1.381.391.40T:speck128192ctr
1.451.461.46T:speck128256ctr
1.501.521.54chacha20
1.641.661.67salsa20
1.691.691.70tango642
2.272.292.30xsalsa20
2.962.982.99T:trivium
2.992.993.00T:rabbit
3.013.023.04T:simon6496ctr
3.093.103.12T:simon64128ctr
3.633.653.68T:snow20
3.623.653.68T:nlsv2
3.703.713.72T:sosemanuk
4.654.664.69T:cryptmtv3
4.734.744.76T:simon128128ctr
4.904.934.94T:lexv2
5.135.155.17T:simon128256ctr
6.666.686.71T:panama
7.007.127.22T:tpy6
8.518.568.58T:aes128estream
11.4911.6411.64T:tpy
13.3613.4313.48T:aes256estream
13.4713.6113.73T:tpypy
23.2523.2723.31T:hc128
24.5824.8225.65T:ocelot1
25.7526.0326.23T:ocelot2
36.0936.2636.38T:amastrid
55.1255.1555.21T:hc256
Cycles/byte for 64 bytes
25%50%75%stream
1.891.922.00T:aes128ctr
2.592.672.75T:speck6496ctr
2.752.812.84chacha8
2.732.832.88aes256ctr
2.983.023.06T:speck64128ctr
3.033.083.12salsa208
3.383.443.56T:speck128192ctr
3.423.473.52T:speck128128ctr
3.503.553.58chacha12
3.673.723.83T:speck128256ctr
4.034.064.11salsa2012
5.485.555.59chacha20
6.146.176.19salsa20
7.117.207.30T:simon6496ctr
7.667.697.72T:rabbit
7.807.887.94T:snow20
7.917.988.05T:simon64128ctr
8.388.388.88T:aes192ctr
9.809.839.83tango642
10.6210.7710.80T:cryptmtv3
11.5811.6411.72T:simon128128ctr
11.6211.6611.70T:trivium
11.5211.6911.83T:lexv2
11.5311.6911.73xsalsa20
11.6411.7011.84T:aes128estream
12.9213.0013.12T:simon128256ctr
17.0617.1217.34T:sosemanuk
17.1117.3617.84T:nlsv2
18.8319.0219.11T:aes256estream
43.2243.3144.16T:tpy6
43.4743.5943.70T:panama
80.8681.7583.44T:ocelot2
82.3983.6185.42T:ocelot1
85.7086.4186.77T:tpy
87.7888.5288.94T:tpypy
111.98115.38118.72T:amastrid
197.92198.08198.44T:hc128
480.14480.69481.23T:hc256
Cycles/byte for 8 bytes
25%50%75%stream
16.1216.3817.25T:aes128ctr
16.3816.3816.38T:speck6496ctr
17.1217.5017.62T:speck64128ctr
18.7518.7518.88T:speck128192ctr
21.1221.2521.50T:speck128128ctr
22.3822.3822.62T:speck128256ctr
23.1223.5024.12aes256ctr
28.6229.0029.50chacha12
34.6234.8834.88salsa2012
37.1237.7538.88chacha8
38.7539.1239.62salsa208
43.3843.3843.50T:simon6496ctr
44.3845.0045.38chacha20
48.0048.5048.62T:rabbit
49.7549.7549.75T:simon64128ctr
50.3850.5051.12salsa20
51.0051.2551.88T:aes128estream
61.5061.8865.75T:snow20
67.0067.0071.00T:aes192ctr
69.2569.5069.88T:lexv2
70.5072.2573.88T:cryptmtv3
72.2572.3872.88T:simon128128ctr
74.0074.2574.25tango642
76.8877.6278.50T:aes256estream
82.0082.2582.62T:simon128256ctr
83.0083.3884.50T:trivium
93.3893.8895.12T:nlsv2
96.1296.2596.25xsalsa20
136.75137.25139.00T:sosemanuk
329.38338.00338.00T:tpy6
344.25345.25347.00T:panama
508.50513.62521.00T:ocelot1
530.62538.50545.75T:ocelot2
663.75671.00684.25T:tpy
678.25682.62685.75T:tpypy
777.62788.25810.50T:amastrid
1583.501586.251588.38T:hc128
3848.883851.503856.62T:hc256