diff options
author | Darren Tucker <dtucker@zip.com.au> | 2013-11-07 15:21:19 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2013-11-07 15:21:19 +1100 |
commit | a955041c930e63405159ff7d25ef14272f36eab3 (patch) | |
tree | 139a60ab9b18607e959263b6db52dae4573fc37f /regress/cipher-speed.sh | |
parent | 06595d639577577bc15d359e037a31eb83563269 (diff) |
- dtucker@cvs.openbsd.org 2013/11/07 02:48:38
[regress/integrity.sh regress/cipher-speed.sh regress/try-ciphers.sh]
Use ssh -Q instead of hardcoding lists of ciphers or MACs.
Diffstat (limited to 'regress/cipher-speed.sh')
-rw-r--r-- | regress/cipher-speed.sh | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/regress/cipher-speed.sh b/regress/cipher-speed.sh index 489d9f5fa..8ff9b3220 100644 --- a/regress/cipher-speed.sh +++ b/regress/cipher-speed.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: cipher-speed.sh,v 1.9 2013/05/17 04:29:14 dtucker Exp $ | 1 | # $OpenBSD: cipher-speed.sh,v 1.10 2013/11/07 02:48:38 dtucker Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | tid="cipher speed" | 4 | tid="cipher speed" |
@@ -11,18 +11,7 @@ getbytes () | |||
11 | 11 | ||
12 | tries="1 2" | 12 | tries="1 2" |
13 | 13 | ||
14 | ciphers="aes128-cbc 3des-cbc blowfish-cbc cast128-cbc | 14 | for c in `${SSH} -Q cipher`; do n=0; for m in `${SSH} -Q mac`; do |
15 | arcfour128 arcfour256 arcfour | ||
16 | aes192-cbc aes256-cbc rijndael-cbc@lysator.liu.se | ||
17 | aes128-ctr aes192-ctr aes256-ctr" | ||
18 | config_defined OPENSSL_HAVE_EVPGCM && \ | ||
19 | ciphers="$ciphers aes128-gcm@openssh.com aes256-gcm@openssh.com" | ||
20 | macs="hmac-sha1 hmac-md5 umac-64@openssh.com umac-128@openssh.com | ||
21 | hmac-sha1-96 hmac-md5-96" | ||
22 | config_defined HAVE_EVP_SHA256 && \ | ||
23 | macs="$macs hmac-sha2-256 hmac-sha2-512" | ||
24 | |||
25 | for c in $ciphers; do n=0; for m in $macs; do | ||
26 | trace "proto 2 cipher $c mac $m" | 15 | trace "proto 2 cipher $c mac $m" |
27 | for x in $tries; do | 16 | for x in $tries; do |
28 | printf "%-60s" "$c/$m:" | 17 | printf "%-60s" "$c/$m:" |