Commit 56e05f0b authored by Niels Möller's avatar Niels Möller

Avoid the bash construction ${#foo}, in nettle-pbkdf2 test.

parent 2b186cb8
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.
......
......@@ -9,7 +9,9 @@ test_pbkdf2 () {
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment