diff options
Diffstat (limited to 'regress/integrity.sh')
-rw-r--r-- | regress/integrity.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/regress/integrity.sh b/regress/integrity.sh index 23135685c..f6e5c1963 100644 --- a/regress/integrity.sh +++ b/regress/integrity.sh | |||
@@ -18,6 +18,10 @@ macs="hmac-sha1 hmac-md5 umac-64@openssh.com umac-128@openssh.com | |||
18 | # sshd-command for proxy (see test-exec.sh) | 18 | # sshd-command for proxy (see test-exec.sh) |
19 | cmd="sh ${SRC}/sshd-log-wrapper.sh ${SSHD} ${TEST_SSH_LOGFILE} -i -f $OBJ/sshd_proxy" | 19 | cmd="sh ${SRC}/sshd-log-wrapper.sh ${SSHD} ${TEST_SSH_LOGFILE} -i -f $OBJ/sshd_proxy" |
20 | 20 | ||
21 | jot() { | ||
22 | awk 'BEGIN { for (i = $2; i < $2 + $1; i++) { printf "%d\n", i } }' | ||
23 | } | ||
24 | set -x | ||
21 | for m in $macs; do | 25 | for m in $macs; do |
22 | trace "test $tid: mac $m" | 26 | trace "test $tid: mac $m" |
23 | elen=0 | 27 | elen=0 |
@@ -26,7 +30,8 @@ for m in $macs; do | |||
26 | ecnt=0 | 30 | ecnt=0 |
27 | skip=0 | 31 | skip=0 |
28 | for off in $(jot $tries $startoffset); do | 32 | for off in $(jot $tries $startoffset); do |
29 | if [ $((skip--)) -gt 0 ]; then | 33 | skip=$((skip - 1)) |
34 | if [ $skip -gt 0 ]; then | ||
30 | # avoid modifying the high bytes of the length | 35 | # avoid modifying the high bytes of the length |
31 | continue | 36 | continue |
32 | fi | 37 | fi |