]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Enable all supported ciphers and macs in the server
authordtucker@openbsd.org <dtucker@openbsd.org>
Fri, 21 Jan 2022 02:54:41 +0000 (02:54 +0000)
committerDamien Miller <djm@mindrot.org>
Wed, 2 Feb 2022 05:51:04 +0000 (16:51 +1100)
before trying to benchmark them.  Increase the data file size to get more
signal.

OpenBSD-Regress-ID: dc3697d9f7defdfc51c608782c8e750128e46eb6

regress/cipher-speed.sh

index 5da95b3a9e707982463318db47ee858d6a6e7dda..1340bd159873fd0c60d741ccc387c8a0ea2ba357 100644 (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' \