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