blob: 2c727f66c906a8b649a809bb86670c89fc0fa76c [file] [log] [blame]
Darren Tucker76437602003-06-18 22:43:13 +10001# $OpenBSD: try-ciphers.sh,v 1.8 2003/06/12 15:40:01 markus Exp $
Damien Miller38cd4352002-05-01 13:17:33 +10002# Placed in the Public Domain.
3
4tid="try ciphers"
5
6ciphers="aes128-cbc 3des-cbc blowfish-cbc cast128-cbc arcfour
Darren Tucker76437602003-06-18 22:43:13 +10007 aes192-cbc aes256-cbc rijndael-cbc@lysator.liu.se
8 aes128-ctr aes192-ctr aes256-ctr"
Damien Miller38cd4352002-05-01 13:17:33 +10009macs="hmac-sha1 hmac-md5 hmac-sha1-96 hmac-md5-96"
10
11for c in $ciphers; do
12 for m in $macs; do
13 trace "proto 2 cipher $c mac $m"
14 verbose "test $tid: proto 2 cipher $c mac $m"
15 ${SSH} -F $OBJ/ssh_proxy -2 -m $m -c $c somehost true
16 if [ $? -ne 0 ]; then
17 fail "ssh -2 failed with mac $m cipher $c"
18 fi
19 done
20done
21
22ciphers="3des blowfish"
23for c in $ciphers; do
24 trace "proto 1 cipher $c"
25 verbose "test $tid: proto 1 cipher $c"
26 ${SSH} -F $OBJ/ssh_proxy -1 -c $c somehost true
27 if [ $? -ne 0 ]; then
28 fail "ssh -1 failed with cipher $c"
29 fi
30done