~ubuntu-branches/ubuntu/wily/nettle/wily-proposed

« back to all changes in this revision

Viewing changes to examples/rsa-encrypt-test

  • Committer: Package Import Robot
  • Author(s): Magnus Holmgren
  • Date: 2013-05-04 19:50:28 UTC
  • mfrom: (1.4.6) (3.1.11 experimental)
  • Revision ID: package-import@ubuntu.com-20130504195028-fp6c9fw1tsm5scwa
Tags: 2.7-1
* New upstream release (Closes: #706081).
* Include watch file improvements from Bart Martens <bartm@debian.org>
  via the QA system.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
data="$srcdir/nettle-benchmark.c"
8
8
 
9
 
if [ -x rsa-encrypt ] ; then
10
 
  if ./rsa-encrypt -r rsa-decrypt testkey.pub < "$data" > testciphertext ; then
 
9
if [ -x rsa-encrypt$EXEEXT ] ; then
 
10
  if $EMULATOR ./rsa-encrypt -r rsa-decrypt$EXEEXT testkey.pub < "$data" > testciphertext ; then
11
11
    :
12
12
  else
13
13
    exit 1
14
14
  fi
15
 
  if ./rsa-decrypt testkey < testciphertext > testcleartext ; then
 
15
  if $EMULATOR ./rsa-decrypt testkey < testciphertext > testcleartext ; then
16
16
    :
17
17
  else
18
18
    exit 1