Use -r option when invoking rsa-encrypt. Needed for the test to work
authorNiels Möller <nisse@lysator.liu.se>
Thu, 12 Feb 2004 22:32:26 +0000 (23:32 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Thu, 12 Feb 2004 22:32:26 +0000 (23:32 +0100)
on systems with no /dev/urandom.

Rev: src/nettle/examples/rsa-encrypt-test:1.2

examples/rsa-encrypt-test

index 5fcc4614be24d42edc8c0f0097d75b0684fa4a63..1c0e6f2fd5aae37f7e4dad7bce9ef97eccb462fe 100755 (executable)
@@ -7,7 +7,7 @@ fi
 data="$srcdir/nettle-benchmark.c"
 
 if [ -x rsa-encrypt ] ; then
-  if ./rsa-encrypt testkey.pub < "$data" > testciphertext ; then
+  if ./rsa-encrypt -r rsa-encrypt testkey.pub < "$data" > testciphertext ; then
     :
   else
     exit 1