aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md19
-rw-r--r--docs/FORMAT.md6
-rw-r--r--src/cz/crcs/ectester/reader/output/FileTestWriter.java1
3 files changed, 22 insertions, 4 deletions
diff --git a/README.md b/README.md
index 1af8a21..c34da5d 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
[![Build status](https://api.travis-ci.org/crocs-muni/ECTester.svg?branch=master)](https://travis-ci.org/crocs-muni/ECTester) [![GitHub release](https://img.shields.io/github/release/crocs-muni/ECTEster.svg)](https://github.com/crocs-muni/ECTester/releases) [![license](https://img.shields.io/github/license/crocs-muni/ECTester.svg)](https://github.com/crocs-muni/ECTester/blob/master/LICENSE) [![docs](https://img.shields.io/badge/docs-github.io-brightgreen.svg)](https://crocs-muni.github.io/ECTester/)
Tests support and behavior of elliptic curve cryptography implementations on JavaCards (`TYPE_EC_FP` and `TYPE_EC_F2M`) and on selected software libraries.
-For more information on ECC support on JavaCards see the [github page](https://crocs-muni.github.io/ECTester/).
+For more information on ECC support on JavaCards see the [github page](https://crocs-muni.github.io/ECTester/), with results, tables and docs.
## Build
@@ -106,6 +106,8 @@ For format of this file see [FORMAT](docs/FORMAT.md).
Perform support and performance tests of ECC.
+Use with `-o / --output [out_type:]<out_file>` to output the test results to a file.
+For possible formats of this file see [FORMAT](docs/FORMAT.md).
For more info about the test suites see [TESTS](docs/TESTS.md).
#### Generate
@@ -206,6 +208,19 @@ Currently supported libraries include:
For more information on ECC libraries see [LIBS](docs/LIBS.md).
+### Setup
+
+Installing the Java Cryptography Extension Unlimited Strength policy files is necessary to do testing
+with quite a lot of practical key sizes, they are available for download:
+
+ * [Java 6](http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html)
+ * [Java 7](http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html)
+ * [Java 8](http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html)
+
+To install, place them in `${java.home}/jre/lib/security/`.
+
+### Options
+
```
usage: ECTesterStandalone.jar [-V] [-h] [ (ecdh [-t <type>] [-n <amount>] [-b <n>] [-nc <cat/id>]) |
(ecdsa [-t <type>] [-n <amount>] [-b <n>] [-nc <cat/id>] [-f <file>]) |
@@ -251,5 +266,5 @@ usage: ECTesterStandalone.jar [-V] [-h] [ (ecdh [-t <type>] [-n <amount>] [-b <n
-st,--sig-type <type> Set the Signature object [type].
-b,--bits <n> What size of curve to use.
-nc,--named-curve <cat/id> Use a named curve, from CurveDB: <cat/id>
+```
-``` \ No newline at end of file
diff --git a/docs/FORMAT.md b/docs/FORMAT.md
index 849a62c..bde2543 100644
--- a/docs/FORMAT.md
+++ b/docs/FORMAT.md
@@ -56,4 +56,8 @@ Output of the `-dsa/--ecdsa` option.
## Test runs
By default test runs are output in a human readable format, however YAML and XML is also supported and can be selected
-by using the `-o/--output` option.
+by using the `--format` option. Also, prefixing the output file name when using the `-o/--output` option allows to output
+the same test run in different formats to different files.
+
+For example:
+`--format yaml -o default_output.yaml -o xml:output_file.xml -o text:readable_text_file.txt `
diff --git a/src/cz/crcs/ectester/reader/output/FileTestWriter.java b/src/cz/crcs/ectester/reader/output/FileTestWriter.java
index 6cfece1..e4ef9b8 100644
--- a/src/cz/crcs/ectester/reader/output/FileTestWriter.java
+++ b/src/cz/crcs/ectester/reader/output/FileTestWriter.java
@@ -19,7 +19,6 @@ public class FileTestWriter extends TeeTestWriter {
public FileTestWriter(String defaultFormat, boolean systemOut, String[] files) throws ParserConfigurationException, FileNotFoundException {
int fLength = files == null ? 0 : files.length;
writers = new TestWriter[systemOut ? fLength + 1 : fLength];
- System.err.println(writers.length);
if (systemOut) {
writers[0] = createWriter(defaultFormat, System.out);
}