1# $OpenBSD: cipher-speed.sh,v 1.4 2011/08/02 01:23:41 djm Exp $
| 1# $OpenBSD: cipher-speed.sh,v 1.5 2012/06/28 05:07:45 dtucker Exp $
|
2# Placed in the Public Domain. 3 4tid="cipher speed" 5 6getbytes () 7{ 8 sed -n '/transferred/s/.*secs (\(.* bytes.sec\).*/\1/p' 9} 10 11tries="1 2" 12DATA=/bin/ls 13DATA=/bsd 14 15ciphers="aes128-cbc 3des-cbc blowfish-cbc cast128-cbc 16 arcfour128 arcfour256 arcfour 17 aes192-cbc aes256-cbc rijndael-cbc@lysator.liu.se 18 aes128-ctr aes192-ctr aes256-ctr" 19macs="hmac-sha1 hmac-md5 umac-64@openssh.com hmac-sha1-96 hmac-md5-96" 20config_defined HAVE_EVP_SHA256 &&
| 2# Placed in the Public Domain. 3 4tid="cipher speed" 5 6getbytes () 7{ 8 sed -n '/transferred/s/.*secs (\(.* bytes.sec\).*/\1/p' 9} 10 11tries="1 2" 12DATA=/bin/ls 13DATA=/bsd 14 15ciphers="aes128-cbc 3des-cbc blowfish-cbc cast128-cbc 16 arcfour128 arcfour256 arcfour 17 aes192-cbc aes256-cbc rijndael-cbc@lysator.liu.se 18 aes128-ctr aes192-ctr aes256-ctr" 19macs="hmac-sha1 hmac-md5 umac-64@openssh.com hmac-sha1-96 hmac-md5-96" 20config_defined HAVE_EVP_SHA256 &&
|
21 macs="$macs hmac-sha2-256 hmac-sha2-256-96 hmac-sha2-512 hmac-sha2-512-96"
| 21 macs="$macs hmac-sha2-256 hmac-sha2-512"
|
22 23for c in $ciphers; do for m in $macs; do 24 trace "proto 2 cipher $c mac $m" 25 for x in $tries; do 26 echon "$c/$m:\t" 27 ( ${SSH} -o 'compression no' \ 28 -F $OBJ/ssh_proxy -2 -m $m -c $c somehost \ 29 exec sh -c \'"dd of=/dev/null obs=32k"\' \
--- 22 unchanged lines hidden --- | 22 23for c in $ciphers; do for m in $macs; do 24 trace "proto 2 cipher $c mac $m" 25 for x in $tries; do 26 echon "$c/$m:\t" 27 ( ${SSH} -o 'compression no' \ 28 -F $OBJ/ssh_proxy -2 -m $m -c $c somehost \ 29 exec sh -c \'"dd of=/dev/null obs=32k"\' \
--- 22 unchanged lines hidden --- |