upstream: Enable all supported ciphers and macs in the server

before trying to benchmark them.  Increase the data file size to get more
signal.

OpenBSD-Regress-ID: dc3697d9f7defdfc51c608782c8e750128e46eb6
This commit is contained in:
dtucker@openbsd.org 2022-01-21 02:54:41 +00:00 committed by Damien Miller
parent 15b7199a1f
commit 968e508967
1 changed files with 10 additions and 0 deletions

View File

@ -3,6 +3,16 @@
tid="cipher speed"
# Enable all supported ciphers and macs.
ciphers=`${SSH} -Q Ciphers | tr '\n' , | sed 's/,$//'`
macs=`${SSH} -Q MACs | tr '\n' , | sed 's/,$//'`
cat >>$OBJ/sshd_proxy <<EOD
Ciphers $ciphers
MACs $macs
EOD
increase_datafile_size 10000 # 10MB
getbytes ()
{
sed -n -e '/transferred/s/.*secs (\(.* bytes.sec\).*/\1/p' \