summaryrefslogtreecommitdiff
path: root/examples/rsa-verify-test
diff options
context:
space:
mode:
Diffstat (limited to 'examples/rsa-verify-test')
-rwxr-xr-xexamples/rsa-verify-test10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/rsa-verify-test b/examples/rsa-verify-test
index 765b61f5..13c143cb 100755
--- a/examples/rsa-verify-test
+++ b/examples/rsa-verify-test
@@ -6,21 +6,21 @@ fi
data="$srcdir/nettle-benchmark.c"
-if [ -x rsa-verify ] ; then
- ./rsa-sign testkey < "$data" > testsignature \
- && ./rsa-verify testkey.pub testsignature < "$data" \
+if [ -x rsa-verify$EXEEXT ] ; then
+ $EMULATOR ./rsa-sign testkey < "$data" > testsignature \
+ && $EMULATOR ./rsa-verify testkey.pub testsignature < "$data" \
|| exit 1;
# Try modifying the data
sed s/128/129/ < "$data" >testdata
- if ./rsa-verify testkey.pub testsignature < testdata 2>/dev/null; then
+ if $EMULATOR ./rsa-verify testkey.pub testsignature < testdata 2>/dev/null; then
exit 1
fi
# Try modifying the signature
sed s/1/2/ <testsignature > testsignature2
- if ./rsa-verify testkey.pub testsignature2 < "$data" 2>/dev/null; then
+ if $EMULATOR ./rsa-verify testkey.pub testsignature2 < "$data" 2>/dev/null; then
exit 1;
fi
exit 0