diff options
| author | J08nY | 2018-03-03 20:03:04 +0100 |
|---|---|---|
| committer | J08nY | 2018-03-03 20:03:04 +0100 |
| commit | 30e29e6244aad9e28aacb187d6e2bc1f44ed322c (patch) | |
| tree | 4324b96bf9f914047b398ad6dd9093abd9dfecbf | |
| parent | 30210ec562a49d1b397a19d8c64ed0e0fd80cc0e (diff) | |
| download | ECTester-30e29e6244aad9e28aacb187d6e2bc1f44ed322c.tar.gz ECTester-30e29e6244aad9e28aacb187d6e2bc1f44ed322c.tar.zst ECTester-30e29e6244aad9e28aacb187d6e2bc1f44ed322c.zip | |
| -rw-r--r-- | README.md | 19 | ||||
| -rw-r--r-- | docs/FORMAT.md | 6 | ||||
| -rw-r--r-- | src/cz/crcs/ectester/reader/output/FileTestWriter.java | 1 |
3 files changed, 22 insertions, 4 deletions
@@ -2,7 +2,7 @@ [](https://travis-ci.org/crocs-muni/ECTester) [](https://github.com/crocs-muni/ECTester/releases) [](https://github.com/crocs-muni/ECTester/blob/master/LICENSE) [](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); } |
