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: aarch64; Cortex-A53 (410fd034); 2018 Broadcom BCM2837B0; 4 x 1400MHz; pi3bplus, supercop-20231107

[Page version: 20240828 00:45:52]

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
1.951.951.99tango642
2.562.602.60chacha8
2.852.852.93salsa208
3.503.543.62chacha12
3.873.954.11salsa2012
5.45?5.45?6.51?chacha20
6.06?6.14?7.16?salsa20
6.23?6.35?7.36?T:tpy6
6.31?6.35?7.36?xsalsa20
6.59?6.71?7.65?T:nlsv2
5.98?7.24?7.41?T:tpy
7.24?7.65?8.34?T:cryptmtv3
7.49?9.40?9.72?T:tpypy
17.2518.2718.96T:aes128estream
24.5826.3726.73T:aes256estream
30.8831.4133.16T:aes128ctr
34.9935.2837.43T:aes192ctr
38.9039.9641.59T:aes256ctr
50.9052.2153.18T:ocelot1
53.8755.0555.91T:ocelot2
83.0185.0487.00T:amastrid
Cycles/byte for 4096 bytes
25%50%75%stream
2.292.292.29tango642
2.622.662.66chacha8
2.902.902.93salsa208
3.573.603.63chacha12
3.943.974.09salsa2012
5.49?5.49?6.29?chacha20
6.13?6.16?6.93?salsa20
6.44?6.44?7.17?xsalsa20
6.936.997.69T:nlsv2
7.357.428.15T:tpy6
8.338.619.12T:cryptmtv3
9.069.779.89T:tpy
10.9311.6611.87T:tpypy
18.0418.1318.62T:aes128estream
25.5426.0926.34T:aes256estream
32.0132.1432.93T:aes128ctr
36.1636.3237.17T:aes192ctr
40.4440.8941.38T:aes256ctr
54.1754.6355.30T:ocelot1
56.9557.3758.01T:ocelot2
86.7087.4688.26T:amastrid
Cycles/byte for 1536 bytes
25%50%75%stream
2.362.362.44tango642
2.602.602.64chacha8
3.583.583.58chacha12
4.154.154.15salsa208
5.135.215.21salsa2012
5.455.455.53chacha20
7.327.417.41salsa20
7.657.657.65xsalsa20
7.817.818.14T:nlsv2
8.228.228.30T:tpy6
10.7410.7410.99T:cryptmtv3
12.29?12.37?14.24?T:tpy
15.71?15.87?17.66?T:tpypy
17.7417.8219.61T:aes128estream
24.9426.6926.94T:aes256estream
39.6339.8841.22T:aes128ctr
43.9944.3545.49T:aes192ctr
48.3448.6749.89T:aes256ctr
56.0756.8057.94T:ocelot1
58.1958.9260.06T:ocelot2
86.1087.2488.54T:amastrid
Cycles/byte for 576 bytes
25%50%75%stream
3.693.693.69tango642
3.693.693.91chacha8
4.344.344.34salsa208
4.774.774.77chacha12
5.435.435.43salsa2012
6.736.946.94chacha20
7.387.607.60salsa20
8.258.258.46xsalsa20
9.339.339.33T:nlsv2
12.5912.8012.80T:cryptmtv3
13.0213.0213.02T:tpy6
18.2318.2318.23T:aes128estream
24.0924.0924.31T:tpy
25.3925.6125.82T:aes256estream
26.9126.9127.56T:tpypy
48.83?52.08?57.29?T:aes128ctr
52.95?55.34?59.46?T:aes192ctr
57.51?62.28?64.45?T:aes256ctr
64.8969.4470.31T:ocelot1
67.0672.0573.78T:ocelot2
101.56102.21104.82T:amastrid
Cycles/byte for 64 bytes
25%50%75%stream
5.865.865.86salsa208
5.86?7.81?7.81?salsa2012
9.779.779.77salsa20
11.72?13.67?13.67?chacha8
13.67?13.67?15.62?chacha12
15.62?15.62?17.58?xsalsa20
17.5817.5817.58chacha20
19.5319.5321.48tango642
23.4423.4425.39T:aes128estream
33.2033.2033.20T:aes256estream
33.2033.2033.20T:nlsv2
33.2035.1635.16T:cryptmtv3
74.2274.2274.22T:tpy6
169.92169.92171.88T:tpypy
173.83175.78175.78T:tpy
181.64181.64197.27T:aes128ctr
187.50189.45199.22T:aes192ctr
189.45193.36205.08T:aes256ctr
199.22201.17201.17T:ocelot1
203.12203.12203.12T:ocelot2
265.62?269.53?308.59?T:amastrid
Cycles/byte for 8 bytes
25%50%75%stream
46.88?62.50?62.50?salsa208
62.5062.5062.50chacha8
62.50?62.50?78.12?salsa2012
62.50?78.12?78.12?chacha12
78.12?78.12?93.75?salsa20
93.75?93.75?109.38?chacha20
93.7593.7593.75T:aes128estream
109.38?125.00?125.00?T:aes256estream
140.62140.62140.62xsalsa20
140.62?156.25?156.25?T:nlsv2
156.25156.25156.25tango642
203.12?218.75?234.38?T:cryptmtv3
546.88546.88562.50T:tpy6
1265.621281.251281.25T:ocelot1
1265.621281.251281.25T:ocelot2
1265.621281.251375.00T:aes128ctr
1281.251296.881406.25T:aes192ctr
1296.881296.881312.50T:tpypy
1296.881312.501421.88T:aes256ctr
1359.381359.381359.38T:tpy
1750.00?1765.62?1968.75?T:amastrid