# $OpenBSD: cipher-speed.sh,v 1.15 2022/01/21 02:54:41 dtucker Exp $ # Placed in the Public Domain. 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 <&1 | getbytes if [ $? -ne 0 ]; then fail "ssh failed with mac $m cipher $c" fi done # No point trying all MACs for AEAD ciphers since they are ignored. if ${SSH} -Q cipher-auth | grep "^${c}\$" >/dev/null 2>&1 ; then break fi n=$(($n + 1)) done; done