Commit fbd97af9 authored by Niels Möller's avatar Niels Möller

Use rsa-sign to create signature.

Rev: src/nettle/examples/rsa-verify-test:1.2
parent ecc49d8d
......@@ -7,11 +7,9 @@ fi
data="$srcdir/nettle-benchmark.c"
if [ -x rsa-verify ] ; then
if ./rsa-verify testkey.pub testsignature < "$data" ; then
:
else
exit 1;
fi
./rsa-sign testkey < "$data" > testsignature \
&& ./rsa-verify testkey.pub testsignature < "$data" \
|| exit 1;
# Try modifying the data
sed s/128/129/ < "$data" >testdata
......
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