3 if [ -z "$srcdir" ] ; then
7 data="$srcdir/nettle-benchmark.c"
9 if [ -x rsa-verify ] ; then
10 ./rsa-sign testkey < "$data" > testsignature \
11 && ./rsa-verify testkey.pub testsignature < "$data" \
14 # Try modifying the data
15 sed s/128/129/ < "$data" >testdata
17 if ./rsa-verify testkey.pub testsignature < testdata 2>/dev/null; then
21 # Try modifying the signature
22 sed s/1/2/ <testsignature > testsignature2
23 if ./rsa-verify testkey.pub testsignature2 < "$data" 2>/dev/null; then