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 (860f81); 2021 AMD Ryzen 3 5300U; 4 x 2600MHz; lucienne, 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.380.400.40T:aes192ctr
0.440.440.45T:aes128ctr
0.520.520.53chacha8
0.580.590.60aes256ctr
0.630.640.64salsa208
0.710.710.71tango642
0.710.720.72chacha12
0.910.910.92salsa2012
0.910.920.94T:speck6496ctr
0.930.950.97T:speck64128ctr
1.101.101.12T:speck128128ctr
1.101.111.11chacha20
1.101.151.17T:speck128192ctr
1.181.181.19T:speck128256ctr
1.361.371.38T:simon6496ctr
1.431.441.44T:simon64128ctr
1.451.461.46xsalsa20
1.451.461.47salsa20
1.611.621.63T:hc128
1.941.941.95T:simon128128ctr
2.012.022.04T:simon128256ctr
2.082.122.14T:cryptmtv3
2.172.182.20T:hc256
2.222.222.23T:sosemanuk
2.332.362.42T:tpy
2.332.372.37T:trivium
2.482.532.58T:tpy6
2.522.542.55T:panama
2.522.542.56T:nlsv2
2.712.732.74T:snow20
2.822.842.85T:rabbit
3.693.803.90T:tpypy
4.164.164.17T:lexv2
9.019.079.08T:aes128estream
12.8913.3613.51T:aes256estream
17.1317.3417.37T:ocelot1
18.4218.8818.97T:ocelot2
30.3630.5731.41T:amastrid
Cycles/byte for 4096 bytes
25%50%75%stream
0.460.460.46T:aes128ctr
0.530.530.54chacha8
0.580.580.58T:aes192ctr
0.610.610.62aes256ctr
0.650.650.65salsa208
0.730.730.73chacha12
0.850.850.85tango642
0.920.920.93salsa2012
0.950.950.97T:speck6496ctr
0.980.991.00T:speck64128ctr
1.121.121.13chacha20
1.151.151.16T:speck128128ctr
1.161.191.21T:speck128192ctr
1.231.231.24T:speck128256ctr
1.471.471.47salsa20
1.561.561.56xsalsa20
1.591.591.59T:simon6496ctr
1.751.751.76T:simon64128ctr
2.222.222.22T:simon128128ctr
2.452.472.47T:trivium
2.482.482.49T:sosemanuk
2.482.492.49T:simon128256ctr
2.592.612.62T:cryptmtv3
2.682.692.70T:nlsv2
2.802.812.81T:snow20
2.912.932.93T:rabbit
3.213.223.24T:tpy6
3.393.393.39T:panama
3.963.973.99T:tpy
4.304.304.30T:lexv2
4.834.834.84T:hc128
5.335.395.46T:tpypy
9.089.089.09T:aes128estream
10.5710.5710.59T:hc256
13.1013.4513.47T:aes256estream
18.9318.9919.00T:ocelot1
20.3020.6320.66T:ocelot2
32.2432.3432.62T:amastrid
Cycles/byte for 1536 bytes
25%50%75%stream
0.490.490.49T:aes128ctr
0.550.550.56chacha8
0.650.650.66aes256ctr
0.670.670.67salsa208
0.740.750.76chacha12
0.880.880.90T:aes192ctr
0.940.940.95salsa2012
1.001.011.03T:speck6496ctr
1.051.051.07T:speck64128ctr
1.091.091.09tango642
1.141.141.16chacha20
1.221.231.25T:speck128128ctr
1.241.251.30T:speck128192ctr
1.311.311.32T:speck128256ctr
1.481.491.50salsa20
1.741.741.74xsalsa20
1.961.961.96T:simon6496ctr
2.272.282.28T:simon64128ctr
2.632.632.63T:trivium
2.712.712.71T:simon128128ctr
2.942.942.96T:snow20
2.972.982.99T:sosemanuk
3.043.053.05T:rabbit
3.083.103.10T:nlsv2
3.203.253.27T:simon128256ctr
3.883.913.95T:cryptmtv3
4.344.394.45T:tpy6
4.524.534.54T:lexv2
4.804.814.82T:panama
6.596.626.64T:tpy
8.038.088.18T:tpypy
9.109.209.21T:aes128estream
10.1710.1810.18T:hc128
13.2813.5413.60T:aes256estream
21.7221.8222.03T:ocelot1
23.4123.5723.81T:ocelot2
24.5324.5924.60T:hc256
34.5035.9436.12T:amastrid
Cycles/byte for 576 bytes
25%50%75%stream
0.610.620.65T:aes128ctr
0.760.770.77chacha8
0.820.840.85aes256ctr
0.880.880.89salsa208
1.031.041.05chacha12
1.211.211.21T:speck6496ctr
1.241.251.26salsa2012
1.261.261.31T:speck64128ctr
1.541.541.54T:speck128128ctr
1.591.591.59T:speck128256ctr
1.591.591.64T:speck128192ctr
1.621.621.62chacha20
1.731.751.76tango642
1.711.761.77T:aes192ctr
1.951.951.96salsa20
2.592.602.61xsalsa20
3.063.063.10T:trivium
3.283.293.33T:snow20
3.403.423.43T:rabbit
3.533.533.58T:simon6496ctr
3.903.923.93T:nlsv2
4.074.074.07T:simon64128ctr
4.264.294.30T:sosemanuk
4.344.374.38T:cryptmtv3
5.145.165.17T:lexv2
5.225.245.29T:simon128128ctr
5.595.615.65T:simon128256ctr
7.327.427.60T:tpy6
8.618.628.63T:panama
9.319.349.35T:aes128estream
13.7413.8013.92T:tpy
13.5513.9814.03T:aes256estream
15.2015.2415.31T:tpypy
24.5524.5724.59T:hc128
29.2929.4429.52T:ocelot1
30.7030.8730.99T:ocelot2
40.2040.4240.75T:amastrid
61.8761.8761.88T:hc256
Cycles/byte for 64 bytes
25%50%75%stream
1.95?1.98?2.34?T:aes128ctr
2.612.672.72chacha8
2.69?2.72?3.03?aes256ctr
3.143.143.19salsa208
3.223.223.22T:speck6496ctr
3.413.413.41T:speck64128ctr
3.593.623.64chacha12
4.034.064.06T:speck128256ctr
4.094.094.09T:speck128192ctr
4.114.114.11T:speck128128ctr
4.124.164.17salsa2012
5.695.805.84chacha20
6.126.166.17salsa20
7.597.597.62T:rabbit
7.787.787.80T:snow20
7.94?8.14?8.88?T:simon6496ctr
8.738.738.73T:simon64128ctr
8.77?8.78?9.77?T:trivium
9.289.389.78T:cryptmtv3
10.0810.1410.19tango642
11.9211.9712.14xsalsa20
12.4112.4712.70T:simon128128ctr
12.5312.8812.92T:aes192ctr
12.9512.9513.08T:aes128estream
12.9813.0513.09T:lexv2
13.8613.8813.88T:simon128256ctr
18.5918.6118.67T:sosemanuk
18.5618.6718.77T:nlsv2
18.4818.8319.06T:aes256estream
46.9547.3847.56T:tpy6
56.5256.8957.09T:panama
105.64105.73106.47T:tpy
107.34107.61108.27T:tpypy
114.70115.44117.88T:amastrid
119.69122.81126.20T:ocelot1
119.53123.36124.25T:ocelot2
208.59208.88208.89T:hc128
538.98539.52540.02T:hc256
Cycles/byte for 8 bytes
25%50%75%stream
16.75?17.12?19.75?T:aes128ctr
19.25?19.25?21.88?T:speck6496ctr
20.6220.6222.25T:speck64128ctr
22.6222.6222.62T:speck128192ctr
23.1223.1225.25T:speck128256ctr
23.2523.3823.38chacha8
23.0023.6223.88aes256ctr
24.0024.0024.25T:speck128128ctr
30.3830.5030.50chacha12
41.5041.5041.50salsa2012
41.8841.8842.75salsa208
43.7544.0045.00T:simon6496ctr
45.7545.7545.75T:rabbit
47.5047.5047.75chacha20
48.8849.5050.12T:simon64128ctr
54.00?54.00?61.75?T:trivium
57.3858.1259.75T:aes128estream
58.8860.7562.12T:cryptmtv3
62.0062.0062.00salsa20
61.8862.1262.12T:snow20
71.3872.0072.38T:aes256estream
72.1272.1274.50T:simon128128ctr
76.8876.8878.00tango642
77.3880.2580.88T:lexv2
84.0086.3886.38T:simon128256ctr
86.2587.2589.25T:nlsv2
101.75104.50106.25T:aes192ctr
108.75108.75108.75xsalsa20
147.75147.75147.75T:sosemanuk
352.75362.12364.88T:tpy6
450.00451.75452.38T:panama
761.12775.62780.25T:amastrid
824.75831.50832.00T:tpy
830.62832.12838.75T:tpypy
850.62862.12874.00T:ocelot2
850.50866.25871.00T:ocelot1
1667.121668.621670.50T:hc128
4310.384313.754315.75T:hc256