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 2 (860f01); 2022 AMD Ryzen 5 4500U; 6 x 3600MHz; renoir, 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.370.390.41T:aes192ctr
0.440.440.45T:aes128ctr
0.520.520.53chacha8
0.580.590.59aes256ctr
0.640.640.64salsa208
0.700.710.71tango642
0.720.720.72chacha12
0.910.910.92salsa2012
0.910.910.92T:speck6496ctr
0.950.950.97T:speck64128ctr
1.081.101.11T:speck128128ctr
1.101.111.12chacha20
1.141.141.15T:speck128192ctr
1.181.181.20T:speck128256ctr
1.361.361.37T:simon6496ctr
1.421.431.44T:simon64128ctr
1.441.451.45salsa20
1.441.451.45xsalsa20
1.611.621.63T:hc128
1.931.941.96T:simon128128ctr
2.032.052.06T:simon128256ctr
2.092.122.15T:cryptmtv3
2.192.212.22T:hc256
2.222.232.24T:sosemanuk
2.352.372.37T:trivium
2.27?2.40?2.54?T:tpy
2.422.482.53T:tpy6
2.502.512.53T:nlsv2
2.532.532.54T:panama
2.732.742.74T:snow20
2.832.842.85T:rabbit
3.783.923.98T:tpypy
4.154.154.16T:lexv2
8.989.049.08T:aes128estream
12.7913.2413.44T:aes256estream
17.2017.3817.98T:ocelot1
18.6718.8719.00T:ocelot2
29.9931.9532.80T:amastrid
Cycles/byte for 4096 bytes
25%50%75%stream
0.460.460.46T:aes128ctr
0.530.530.54chacha8
0.570.580.59T:aes192ctr
0.620.620.62aes256ctr
0.650.650.65salsa208
0.730.730.73chacha12
0.850.850.86tango642
0.920.920.92salsa2012
0.950.950.95T:speck6496ctr
0.990.991.00T:speck64128ctr
1.121.131.13chacha20
1.151.151.15T:speck128128ctr
1.181.191.19T:speck128192ctr
1.231.231.24T:speck128256ctr
1.461.461.46salsa20
1.551.551.56xsalsa20
1.591.591.59T:simon6496ctr
1.761.761.76T:simon64128ctr
2.222.232.23T:simon128128ctr
2.452.462.47T:trivium
2.472.482.49T:sosemanuk
2.492.492.49T:simon128256ctr
2.602.612.63T:cryptmtv3
2.672.682.68T:nlsv2
2.812.822.82T:snow20
2.922.922.92T:rabbit
3.153.173.20T:tpy6
3.383.393.39T:panama
3.843.934.03T:tpy
4.304.304.30T:lexv2
4.834.844.84T:hc128
5.375.475.50T:tpypy
9.059.079.09T:aes128estream
10.5810.5910.60T:hc256
13.0313.3513.40T:aes256estream
18.9619.0319.45T:ocelot1
20.4720.5420.62T:ocelot2
31.7033.1333.69T:amastrid
Cycles/byte for 1536 bytes
25%50%75%stream
0.480.490.49T:aes128ctr
0.560.560.56chacha8
0.670.670.67salsa208
0.670.680.68aes256ctr
0.750.750.76chacha12
0.870.880.91T:aes192ctr
0.940.940.95salsa2012
1.001.011.03T:speck6496ctr
1.051.051.06T:speck64128ctr
1.101.101.10tango642
1.141.141.15chacha20
1.221.231.23T:speck128128ctr
1.241.251.25T:speck128192ctr
1.311.311.34T:speck128256ctr
1.481.481.48salsa20
1.731.731.73xsalsa20
1.961.961.96T:simon6496ctr
2.292.292.32T:simon64128ctr
2.632.632.63T:trivium
2.712.712.71T:simon128128ctr
2.932.932.96T:snow20
2.962.972.98T:sosemanuk
3.053.063.08T:rabbit
3.063.073.08T:nlsv2
3.223.263.27T:simon128256ctr
3.903.933.95T:cryptmtv3
4.294.314.32T:tpy6
4.534.534.54T:lexv2
4.814.824.82T:panama
6.376.396.47T:tpy
7.938.008.13T:tpypy
8.989.029.21T:aes128estream
10.1810.1910.19T:hc128
13.2013.5713.59T:aes256estream
21.6621.9322.45T:ocelot1
23.2223.3323.42T:ocelot2
24.5624.5924.59T:hc256
34.2234.9035.11T:amastrid
Cycles/byte for 576 bytes
25%50%75%stream
0.610.620.65T:aes128ctr
0.750.750.75chacha8
0.880.880.89salsa208
1.041.041.05chacha12
1.031.051.08aes256ctr
1.211.211.21T:speck6496ctr
1.231.241.25salsa2012
1.261.261.26T:speck64128ctr
1.541.541.58T:speck128128ctr
1.591.591.61T:speck128192ctr
1.591.601.63T:speck128256ctr
1.591.631.64chacha20
1.741.751.75T:aes192ctr
1.751.771.80tango642
1.931.941.94salsa20
2.582.602.62xsalsa20
3.063.083.14T:trivium
3.283.293.31T:snow20
3.413.413.42T:rabbit
3.533.533.56T:simon6496ctr
3.903.933.95T:nlsv2
4.074.084.17T:simon64128ctr
4.244.244.27T:sosemanuk
4.344.374.38T:cryptmtv3
5.145.175.18T:lexv2
5.205.225.30T:simon128128ctr
5.585.595.64T:simon128256ctr
7.307.467.59T:tpy6
8.588.598.59T:panama
9.349.389.40T:aes128estream
13.1713.2513.34T:tpy
13.7014.0914.11T:aes256estream
14.9615.1015.17T:tpypy
24.5724.5824.58T:hc128
28.9529.5429.74T:ocelot1
30.9431.0231.14T:ocelot2
39.4540.0541.26T:amastrid
61.7561.7761.88T:hc256
Cycles/byte for 64 bytes
25%50%75%stream
1.971.982.02T:aes128ctr
2.612.612.64chacha8
3.123.143.19salsa208
3.223.223.22T:speck6496ctr
3.413.413.41T:speck64128ctr
3.623.623.64chacha12
4.054.054.08T:speck128256ctr
4.064.064.16salsa2012
4.094.094.09T:speck128192ctr
4.114.114.11T:speck128128ctr
5.475.485.64aes256ctr
5.665.665.66chacha20
6.116.126.14salsa20
7.597.597.86T:rabbit
7.647.707.70T:snow20
7.947.947.97T:simon6496ctr
8.848.848.84T:simon64128ctr
8.75?8.97?9.81?T:trivium
9.199.289.38T:cryptmtv3
10.1210.3610.36tango642
11.9211.9412.09xsalsa20
12.0812.2212.72T:aes192ctr
12.4112.5312.70T:simon128128ctr
12.8913.1613.28T:aes128estream
13.0213.2713.39T:lexv2
13.7313.8414.02T:simon128256ctr
18.3618.3618.47T:sosemanuk
18.5918.7218.77T:nlsv2
20.2820.4820.56T:aes256estream
46.4447.1248.08T:tpy6
56.6156.6256.69T:panama
100.91101.33102.16T:tpy
104.91105.12106.23T:tpypy
113.50114.28115.78T:amastrid
120.62121.47122.89T:ocelot1
124.02125.05125.59T:ocelot2
208.42208.58208.81T:hc128
539.31539.59539.77T:hc256
Cycles/byte for 8 bytes
25%50%75%stream
16.75?17.25?19.62?T:aes128ctr
19.25?19.25?22.38?T:speck6496ctr
20.62?20.62?23.00?T:speck64128ctr
22.2522.3822.62chacha8
22.6222.6222.62T:speck128192ctr
23.1223.1223.12T:speck128256ctr
24.0024.0024.25T:speck128128ctr
25.12?27.00?28.50?aes256ctr
30.1230.2530.50chacha12
41.1241.1241.38salsa208
44.0044.6245.25T:simon6496ctr
45.7545.7546.00T:rabbit
46.5046.8847.25chacha20
49.1249.2551.25T:simon64128ctr
51.8851.8852.75salsa2012
53.62?55.25?61.62?T:trivium
58.1258.1258.88T:cryptmtv3
58.8859.8860.00T:aes128estream
60.6261.6262.38T:snow20
72.1272.1275.00T:simon128128ctr
67.38?74.50?75.12?salsa20
76.3878.6278.62tango642
79.0079.6281.50T:lexv2
83.8886.1286.38T:simon128256ctr
87.1288.8889.75T:nlsv2
90.2590.8890.88T:aes256estream
99.62102.50105.62T:aes192ctr
114.88115.75117.62xsalsa20
146.50146.50148.62T:sosemanuk
350.50351.38360.50T:tpy6
449.00450.88451.88T:panama
757.88766.12774.25T:amastrid
785.25787.00788.88T:tpy
819.50820.50822.25T:tpypy
841.50858.50867.25T:ocelot1
877.25885.88913.25T:ocelot2
1668.001668.381670.00T:hc128
4312.624315.624318.25T:hc256