Skip to content
Snippets Groups Projects
Commit fbd97af9 authored by Niels Möller's avatar Niels Möller
Browse files

Use rsa-sign to create signature.

Rev: src/nettle/examples/rsa-verify-test:1.2
parent ecc49d8d
No related branches found
No related tags found
No related merge requests found
...@@ -7,11 +7,9 @@ fi ...@@ -7,11 +7,9 @@ fi
data="$srcdir/nettle-benchmark.c" data="$srcdir/nettle-benchmark.c"
if [ -x rsa-verify ] ; then if [ -x rsa-verify ] ; then
if ./rsa-verify testkey.pub testsignature < "$data" ; then ./rsa-sign testkey < "$data" > testsignature \
: && ./rsa-verify testkey.pub testsignature < "$data" \
else || exit 1;
exit 1;
fi
# Try modifying the data # Try modifying the data
sed s/128/129/ < "$data" >testdata sed s/128/129/ < "$data" >testdata
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment