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; pi3aplus, supercop-20240425

[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
1.561.561.57tango642
2.572.572.57chacha8
2.862.862.86salsa208
3.523.523.53chacha12
3.883.893.90salsa2012
5.435.445.44chacha20
6.086.086.09salsa20
6.086.086.09xsalsa20
6.256.256.27T:tpy6
6.196.286.36T:tpy
6.606.606.61T:nlsv2
7.237.237.25T:cryptmtv3
8.228.398.67T:tpypy
17.1917.2217.26T:aes128estream
24.6124.6524.80T:aes256estream
29.9030.0230.79T:aes128ctr
34.0234.1335.88T:aes192ctr
38.1638.3139.98T:aes256ctr
49.6749.7751.37T:ocelot1
52.2952.4254.02T:ocelot2
80.0981.9683.30T:amastrid
Cycles/byte for 4096 bytes
25%50%75%stream
1.831.831.84tango642
2.602.602.60chacha8
2.892.892.89salsa208
3.563.563.56chacha12
3.933.933.93salsa2012
5.475.475.47chacha20
6.126.126.12salsa20
6.216.216.21xsalsa20
6.906.906.91T:nlsv2
7.327.337.34T:tpy6
8.288.288.29T:cryptmtv3
9.029.049.10T:tpy
10.8210.8611.07T:tpypy
17.3017.3017.33T:aes128estream
24.7324.7624.85T:aes256estream
30.4930.5531.12T:aes128ctr
34.6334.6835.99T:aes192ctr
38.7838.8540.10T:aes256ctr
51.9451.9953.18T:ocelot1
54.6054.6555.84T:ocelot2
83.1783.7584.52T:amastrid
Cycles/byte for 1536 bytes
25%50%75%stream
2.292.292.30tango642
2.662.662.66chacha8
2.952.952.96salsa208
3.613.613.62chacha12
3.984.094.09salsa2012
5.525.535.53chacha20
6.176.176.18salsa20
6.426.426.43xsalsa20
7.637.647.65T:nlsv2
9.119.119.12T:tpy6
10.7110.7110.72T:cryptmtv3
13.6413.6413.77T:tpy
14.9214.9315.30T:tpypy
17.4317.4417.48T:aes128estream
24.9824.9925.00T:aes256estream
31.3931.4431.60T:aes128ctr
35.5735.5935.80T:aes192ctr
39.7139.7339.92T:aes256ctr
55.6155.6455.83T:ocelot1
58.3058.3458.54T:ocelot2
87.5287.7388.41T:amastrid
Cycles/byte for 576 bytes
25%50%75%stream
3.043.053.05chacha8
3.093.093.11salsa208
3.493.493.51tango642
4.064.074.07chacha12
4.144.144.17salsa2012
6.116.126.13chacha20
6.326.326.32salsa20
6.986.986.99xsalsa20
9.259.269.28T:nlsv2
12.3312.3412.36T:cryptmtv3
13.8813.8813.89T:tpy6
17.8217.8217.82T:aes128estream
25.3625.4725.49T:aes256estream
25.9525.9726.19T:tpy
26.0326.0626.26T:tpypy
33.8133.9534.01T:aes128ctr
38.1138.1538.22T:aes192ctr
42.2642.3042.51T:aes256ctr
65.5865.6165.66T:ocelot1
68.2568.2768.35T:ocelot2
100.23100.41101.95T:amastrid
Cycles/byte for 64 bytes
25%50%75%stream
4.834.834.83salsa208
5.865.865.91salsa2012
6.166.166.16chacha8
7.697.697.69chacha12
8.038.038.14salsa20
10.8910.8910.89chacha20
14.0214.0514.05xsalsa20
18.6118.6118.83tango642
22.8822.8822.88T:aes128estream
28.77?30.02?32.53?T:cryptmtv3
32.1732.2332.25T:aes256estream
35.1935.3335.44T:nlsv2
64.7365.9566.41T:aes128ctr
70.5371.0572.00T:aes192ctr
74.6274.6774.89T:tpy6
74.8075.1275.38T:aes256ctr
168.28168.42168.98T:tpypy
183.25183.28183.48T:tpy
192.77193.19193.56T:ocelot1
195.39195.67196.05T:ocelot2
273.19273.42276.11T:amastrid
Cycles/byte for 8 bytes
25%50%75%stream
48.6248.6249.50salsa208
53.2553.2553.75chacha8
56.8856.8856.88salsa2012
65.5065.5065.50chacha12
75.3875.3877.00salsa20
80.0080.1280.12T:aes128estream
90.8890.8891.62chacha20
109.25109.25109.25T:aes256estream
122.38122.62123.25xsalsa20
143.88143.88145.62tango642
168.12168.38169.25T:nlsv2
164.25?191.00?200.38?T:cryptmtv3
342.50351.62357.25T:aes128ctr
365.62368.88371.88T:aes192ctr
374.25377.25382.38T:aes256ctr
551.75553.25553.88T:tpy6
1201.501202.501206.75T:ocelot1
1202.751204.881210.38T:ocelot2
1287.001288.121289.00T:tpypy
1422.001422.501423.62T:tpy
1805.121828.621840.12T:amastrid