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 4 (a60f12); 2023 AMD Ryzen 7 7700; 8 x 3800MHz; hertz, supercop-20240716

[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.21?0.24?0.28?aes256ctr
0.310.320.33chacha8
0.35?0.35?0.39?T:aes128ctr
0.420.440.45chacha12
0.40?0.45?0.47?T:aes192ctr
0.580.580.59salsa208
0.600.630.64T:speck6496ctr
0.640.650.65tango642
0.660.660.66T:speck64128ctr
0.670.690.70chacha20
0.700.710.71salsa2012
0.780.790.80T:speck128128ctr
0.800.810.82T:speck128192ctr
0.820.840.85T:speck128256ctr
0.930.940.96xsalsa20
0.870.940.96salsa20
1.251.281.32T:hc128
1.311.321.34T:simon128128ctr
1.311.341.38T:simon128256ctr
1.18?1.35?1.72?T:tpy
1.441.471.48T:trivium
1.561.581.59T:cryptmtv3
1.581.611.63T:nlsv2
1.671.671.69T:sosemanuk
1.671.681.69T:simon6496ctr
1.68?1.79?1.88?T:tpy6
1.741.801.83T:hc256
1.811.821.83T:simon64128ctr
2.092.112.13T:panama
2.112.192.31T:tpypy
2.402.412.50T:snow20
3.023.043.06T:rabbit
3.34?4.03?4.79?T:lexv2
8.118.128.15T:aes128estream
12.6112.6212.70T:aes256estream
13.9314.0514.16T:ocelot1
14.6114.7514.86T:ocelot2
24.3826.2326.54T:amastrid
Cycles/byte for 4096 bytes
25%50%75%stream
0.26?0.26?0.29?aes256ctr
0.340.340.35chacha8
0.380.380.40T:aes128ctr
0.450.470.47chacha12
0.610.610.62salsa208
0.650.660.66T:speck6496ctr
0.670.680.68T:aes192ctr
0.680.680.68T:speck64128ctr
0.700.710.72chacha20
0.730.730.74salsa2012
0.760.760.76tango642
0.810.820.82T:speck128128ctr
0.840.840.85T:speck128192ctr
0.860.870.88T:speck128256ctr
0.980.980.98salsa20
1.061.071.07xsalsa20
1.461.471.48T:simon128128ctr
1.551.571.57T:trivium
1.701.721.73T:simon128256ctr
1.751.771.77T:nlsv2
1.781.791.79T:simon6496ctr
1.961.971.97T:simon64128ctr
2.062.062.07T:sosemanuk
2.212.222.22T:cryptmtv3
2.342.412.46T:tpy6
2.482.492.55T:snow20
2.48?2.55?2.81?T:tpy
2.742.742.74T:panama
3.143.163.17T:rabbit
3.413.443.49T:tpypy
3.623.623.64T:hc128
4.14?4.15?4.72?T:lexv2
7.907.907.92T:hc256
8.198.198.21T:aes128estream
12.7112.7212.77T:aes256estream
14.8714.9314.98T:ocelot1
15.5315.6015.66T:ocelot2
25.9327.1027.30T:amastrid
Cycles/byte for 1536 bytes
25%50%75%stream
0.29?0.30?0.36?aes256ctr
0.400.400.41T:aes128ctr
0.480.490.49chacha8
0.590.590.60salsa208
0.640.640.65chacha12
0.690.690.72T:speck6496ctr
0.710.720.72T:speck64128ctr
0.720.730.73salsa2012
0.850.870.88T:speck128128ctr
0.900.900.91T:speck128192ctr
0.910.920.93T:speck128256ctr
0.960.970.98chacha20
0.950.980.98tango642
1.01?1.02?1.21?salsa20
1.021.051.08T:aes192ctr
1.251.251.27xsalsa20
1.711.721.73T:simon128128ctr
1.731.731.74T:trivium
1.941.951.96T:simon6496ctr
2.132.152.15T:nlsv2
2.192.212.22T:simon64128ctr
2.312.352.36T:simon128256ctr
2.602.632.81T:snow20
2.762.762.77T:sosemanuk
3.103.123.14T:cryptmtv3
3.143.273.33T:tpy6
3.353.363.36T:rabbit
3.793.803.81T:panama
4.36?4.36?6.04?T:lexv2
4.45?4.53?4.99?T:tpy
5.365.445.56T:tpypy
7.507.527.55T:hc128
8.268.328.33T:aes128estream
12.8612.8912.93T:aes256estream
16.4216.4916.67T:ocelot1
16.9317.1117.31T:ocelot2
18.0818.0818.13T:hc256
27.5829.1029.15T:amastrid
Cycles/byte for 576 bytes
25%50%75%stream
0.530.550.56T:aes128ctr
0.56?0.56?0.68?aes256ctr
0.580.590.59salsa208
0.600.600.61chacha8
0.840.840.86chacha12
0.840.850.85salsa2012
0.960.970.97T:speck6496ctr
0.991.001.01T:speck64128ctr
1.171.211.23T:speck128128ctr
1.261.261.27T:speck128256ctr
1.241.261.29T:speck128192ctr
1.261.281.31chacha20
1.321.321.32salsa20
1.441.451.45tango642
1.951.951.97xsalsa20
2.032.052.13T:aes192ctr
2.222.232.24T:trivium
2.652.662.68T:simon128128ctr
2.792.822.84T:simon6496ctr
2.892.892.91T:simon128256ctr
2.922.932.96T:snow20
2.973.023.05T:nlsv2
3.323.353.51T:simon64128ctr
3.853.853.85T:rabbit
4.354.384.38T:cryptmtv3
4.514.594.62T:sosemanuk
4.89?4.90?6.33?T:lexv2
5.665.845.90T:tpy6
6.556.606.62T:panama
8.518.538.53T:aes128estream
9.779.8210.19T:tpy
10.5210.6311.06T:tpypy
13.1613.2713.38T:aes256estream
17.8917.9118.03T:hc128
20.4920.6820.92T:ocelot1
20.8720.9821.16T:ocelot2
32.7934.0534.50T:amastrid
45.1845.2745.32T:hc256
Cycles/byte for 64 bytes
25%50%75%stream
1.561.621.67T:aes128ctr
2.552.552.55salsa208
3.053.123.20T:speck6496ctr
2.94?3.17?3.34?aes256ctr
3.233.283.33T:speck64128ctr
3.313.313.34salsa2012
3.893.944.08T:speck128128ctr
3.984.004.16T:speck128192ctr
4.084.094.20T:speck128256ctr
4.814.844.84salsa20
5.195.225.22chacha8
6.166.166.16T:simon6496ctr
7.037.037.09T:simon64128ctr
7.097.147.20T:snow20
7.207.337.42chacha12
8.038.198.23tango642
8.258.278.34T:simon128128ctr
8.258.338.42T:trivium
8.779.099.16T:cryptmtv3
9.679.679.67T:simon128256ctr
10.3410.3410.34T:rabbit
10.4210.7210.72xsalsa20
11.0911.1711.34chacha20
11.41?11.55?13.72?T:lexv2
11.7011.7011.77T:aes128estream
14.6414.7215.17T:aes192ctr
16.7816.8617.25T:nlsv2
17.8117.9818.08T:aes256estream
24.8824.8925.06T:sosemanuk
38.8439.0940.31T:tpy6
42.3042.3942.81T:panama
66.8668.8371.34T:ocelot1
68.3969.5270.53T:ocelot2
77.9477.9880.84T:tpy
78.5079.1279.52T:tpypy
100.73101.70102.28T:amastrid
150.88150.89152.30T:hc128
393.14393.61394.97T:hc256
Cycles/byte for 8 bytes
25%50%75%stream
12.62?13.00?14.50?T:aes128ctr
14.38?14.38?17.75?T:speck64128ctr
14.6214.6214.75T:speck6496ctr
17.1217.1217.38T:speck128256ctr
17.5017.5017.50T:speck128192ctr
19.7519.7519.88T:speck128128ctr
24.3825.6226.12aes256ctr
32.0032.1232.38chacha8
37.7538.2539.38salsa208
39.3839.5039.62chacha12
39.7539.7539.75T:simon6496ctr
45.3845.8846.50salsa2012
46.2546.2546.25T:simon64128ctr
48.0049.1249.38T:aes128estream
54.8854.8855.00salsa20
53.6256.0057.88T:cryptmtv3
55.6256.2556.25T:snow20
56.6256.8857.12T:trivium
58.1258.3862.75chacha20
61.2561.5061.62tango642
63.7566.2566.38T:rabbit
67.2567.8868.88T:aes256estream
68.3868.8875.75T:lexv2
76.6276.6276.62T:simon128128ctr
87.7587.7587.75T:simon128256ctr
88.3889.2591.12T:nlsv2
102.50103.12103.25xsalsa20
118.00118.12121.75T:aes192ctr
197.62198.75202.38T:sosemanuk
301.88302.38305.62T:tpy6
331.38335.25335.75T:panama
447.00455.25457.38T:ocelot2
453.12466.25469.12T:ocelot1
617.38620.12622.88T:tpypy
609.38621.00622.88T:tpy
665.38672.38689.62T:amastrid
1207.381207.751216.75T:hc128
3137.003145.883159.75T:hc256