# $OpenBSD: cipher-speed.sh,v 1.14 2017/04/30 23:34:55 djm 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=`expr $n + 1` done; done