1# $OpenBSD: conch-ciphers.sh,v 1.4 2019/07/05 04:12:46 dtucker Exp $ 2# Placed in the Public Domain. 3 4tid="conch ciphers" 5 6if test "x$REGRESS_INTEROP_CONCH" != "xyes" ; then 7 fatal "conch interop tests not enabled" 8fi 9 10start_sshd 11 12for c in aes256-ctr aes256-cbc aes192-ctr aes192-cbc aes128-ctr aes128-cbc \ 13 cast128-cbc blowfish 3des-cbc ; do 14 verbose "$tid: cipher $c" 15 rm -f ${COPY} 16 # XXX the 2nd "cat" seems to be needed because of buggy FD handling 17 # in conch 18 ${CONCH} --identity $OBJ/ssh-rsa --port $PORT --user $USER -e none \ 19 --known-hosts $OBJ/known_hosts --notty --noagent --nox11 -n \ 20 127.0.0.1 "cat ${DATA}" 2>/dev/null | cat > ${COPY} 21 if [ $? -ne 0 ]; then 22 fail "ssh cat $DATA failed" 23 fi 24 cmp ${DATA} ${COPY} || fail "corrupted copy" 25done 26rm -f ${COPY} 27 28