+2014-05-14 Niels Möller <nisse@lysator.liu.se>
+
+ * testsuite/nettle-pbkdf2-test: Avoid the bash construction
+ ${#foo}.
+
2014-05-09 Niels Möller <nisse@lysator.liu.se>
* mini-gmp.c: Updated, use version from gmp-6.0.0.
salt="$2"
iters="$3"
expected="$4"
- length=`expr ${#expected} / 2`
+ # Relies on division rounding down; breaks if
+ # $expected contains more than one space.
+ length=`expr "$expected" : '.*' / 2`
printf "%s" "$password" | $EMULATOR ../tools/nettle-pbkdf2 \
-i "$iters" -l "$length" "$salt" > test1.out