Lines Matching +full:- +full:16 +full:g

9 rm -f ${LOG}
14 echo "KexAlgorithms curve25519-sha256" >> ssh_proxy
23 if test -z "$_bytes"; then
26 if ! test -z "$_kexopt" ; then
29 _opts="$_opts -o$_kexopt"
33 # default chacha20-poly1305 cipher has implicit MAC
34 _opts="$_opts -oCiphers=aes128-ctr" ;;
37 rm -f ${COPY} ${COPY2} ${LOG}
40 ${SSH} <${COPY} $_opts -vv \
41 -oRekeyLimit=$_bytes -F $OBJ/ssh_proxy somehost "cat >${COPY2}"
42 if [ $? -ne 0 ]; then
46 n=`grep 'NEWKEYS sent' ${LOG} | wc -l`
47 n=`expr $n - 1`
48 _want=`echo $_kexopt | cut -f2 -d=`
53 tr -d '\r' | sort -u` ;;
55 _got=`awk '/kex: client->server cipher:/{print $5}' ${LOG} | \
56 tr -d '\r' | sort -u` ;;
58 _got=`awk '/kex: client->server cipher:/{print $7}' ${LOG} | \
59 tr -d '\r' | sort -u` ;;
65 if [ $n -lt 1 ]; then
76 kexs=`${SSH} -Q kex | grep -v curve25519-sha256@libssh.org`
77 ciphers=`${SSH} -Q cipher`
78 macs=`${SSH} -Q mac`
92 if ${SSH} -Q cipher-auth | sed 's/^/Ciphers=/' | \
96 ssh_data_rekeying "" "KexAlgorithms=$kex" "-o$opt"
103 for s in 16 1k 128k 256k; do
110 rm -f ${COPY} ${LOG}
111 ${SSH} < ${DATA} -oRekeyLimit="default $s" -F \
113 if [ $? -ne 0 ]; then
117 n=`grep 'NEWKEYS sent' ${LOG} | wc -l`
118 n=`expr $n - 1`
120 if [ $n -lt 1 ]; then
127 rm -f ${COPY} ${LOG}
128 ${SSH} -oRekeyLimit="default $s" -F \
130 if [ $? -ne 0 ]; then
133 n=`grep 'NEWKEYS sent' ${LOG} | wc -l`
134 n=`expr $n - 1`
136 if [ $n -lt 1 ]; then
141 for s in 16 1k 128k 256k; do
145 rm -f ${COPY} ${COPY2} ${LOG}
147 ${SSH} -F $OBJ/ssh_proxy somehost "cat ${COPY}" >${COPY2}
148 if [ $? -ne 0 ]; then
152 n=`grep 'NEWKEYS sent' ${LOG} | wc -l`
153 n=`expr $n - 1`
155 if [ $n -lt 1 ]; then
164 rm -f ${COPY} ${LOG}
165 ${SSH} -F $OBJ/ssh_proxy somehost "sleep $s;sleep 10"
166 if [ $? -ne 0 ]; then
169 n=`grep 'NEWKEYS sent' ${LOG} | wc -l`
170 n=`expr $n - 1`
172 if [ $n -lt 1 ]; then
178 for size in 16 1k 1K 1m 1M 1g 1G 4G 8G; do
180 16) bytes=16 ;;
183 1g|1G) bytes=1073741824 ;;
184 4g|4G) bytes=4294967296 ;;
185 8g|8G) bytes=8589934592 ;;
187 b=`${SSH} -G -o "rekeylimit $size" -F $OBJ/ssh_proxy host | \
203 s=`${SSH} -G -o "rekeylimit default $time" -F $OBJ/ssh_proxy host | \
210 rm -f ${COPY} ${COPY2} ${DATA}