Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / nettle / examples / rsa-encrypt-test
blobff935fb0abdc331686895602b3a94fad5b5abe7f
1 #! /bin/sh
3 if [ -z "$srcdir" ] ; then
4 srcdir=`pwd`
5 fi
7 data="$srcdir/nettle-benchmark.c"
9 if [ -x rsa-encrypt$EXEEXT ] ; then
10 if $EMULATOR ./rsa-encrypt -r rsa-decrypt$EXEEXT testkey.pub < "$data" > testciphertext ; then
12 else
13 exit 1
15 if $EMULATOR ./rsa-decrypt testkey < testciphertext > testcleartext ; then
17 else
18 exit 1
20 if cmp "$data" testcleartext ; then
21 exit 0
22 else
23 exit 1
25 else
26 exit 77