aboutsummaryrefslogtreecommitdiff
path: root/src/cz/crcs/ectester/standalone/test
diff options
context:
space:
mode:
authorJ08nY2018-02-05 17:26:24 +0100
committerJ08nY2018-02-05 17:26:24 +0100
commitdf3a0cbc285d9a34760034e186d7c7535375df5a (patch)
treebe833e9ba4ac5e075f7cf18d6c9ca9ad90a4dc18 /src/cz/crcs/ectester/standalone/test
parent8eab5248e36615beae97c7d33bd0c9ac3a87895c (diff)
downloadECTester-df3a0cbc285d9a34760034e186d7c7535375df5a.tar.gz
ECTester-df3a0cbc285d9a34760034e186d7c7535375df5a.tar.zst
ECTester-df3a0cbc285d9a34760034e186d7c7535375df5a.zip
Show library name in test suite output in standalone testing.
Diffstat (limited to 'src/cz/crcs/ectester/standalone/test')
-rw-r--r--src/cz/crcs/ectester/standalone/test/KeyGeneratorTestable.java3
-rw-r--r--src/cz/crcs/ectester/standalone/test/SignatureTestable.java3
-rw-r--r--src/cz/crcs/ectester/standalone/test/StandaloneDefaultSuite.java1
-rw-r--r--src/cz/crcs/ectester/standalone/test/StandaloneTestSuite.java8
4 files changed, 12 insertions, 3 deletions
diff --git a/src/cz/crcs/ectester/standalone/test/KeyGeneratorTestable.java b/src/cz/crcs/ectester/standalone/test/KeyGeneratorTestable.java
index 3fca168..c2fec5a 100644
--- a/src/cz/crcs/ectester/standalone/test/KeyGeneratorTestable.java
+++ b/src/cz/crcs/ectester/standalone/test/KeyGeneratorTestable.java
@@ -8,6 +8,9 @@ import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.spec.ECParameterSpec;
+/**
+ * @author Jan Jancar johny@neuromancer.sk
+ */
public class KeyGeneratorTestable extends BaseTestable {
private KeyPair kp;
private KeyPairGenerator kpg;
diff --git a/src/cz/crcs/ectester/standalone/test/SignatureTestable.java b/src/cz/crcs/ectester/standalone/test/SignatureTestable.java
index e434337..7b26af7 100644
--- a/src/cz/crcs/ectester/standalone/test/SignatureTestable.java
+++ b/src/cz/crcs/ectester/standalone/test/SignatureTestable.java
@@ -10,6 +10,9 @@ import java.security.SignatureException;
import java.security.interfaces.ECPrivateKey;
import java.security.interfaces.ECPublicKey;
+/**
+ * @author Jan Jancar johny@neuromancer.sk
+ */
public class SignatureTestable extends BaseTestable {
private Signature sig;
private ECPrivateKey signKey;
diff --git a/src/cz/crcs/ectester/standalone/test/StandaloneDefaultSuite.java b/src/cz/crcs/ectester/standalone/test/StandaloneDefaultSuite.java
index 42d2e54..572449a 100644
--- a/src/cz/crcs/ectester/standalone/test/StandaloneDefaultSuite.java
+++ b/src/cz/crcs/ectester/standalone/test/StandaloneDefaultSuite.java
@@ -9,6 +9,7 @@ import cz.crcs.ectester.standalone.ECTesterStandalone;
import cz.crcs.ectester.standalone.consts.KeyAgreementIdent;
import cz.crcs.ectester.standalone.consts.KeyPairGeneratorIdent;
import cz.crcs.ectester.standalone.consts.SignatureIdent;
+import cz.crcs.ectester.standalone.libs.ECLibrary;
import javax.crypto.KeyAgreement;
import java.security.KeyPairGenerator;
diff --git a/src/cz/crcs/ectester/standalone/test/StandaloneTestSuite.java b/src/cz/crcs/ectester/standalone/test/StandaloneTestSuite.java
index ad404c8..2949d52 100644
--- a/src/cz/crcs/ectester/standalone/test/StandaloneTestSuite.java
+++ b/src/cz/crcs/ectester/standalone/test/StandaloneTestSuite.java
@@ -3,10 +3,8 @@ package cz.crcs.ectester.standalone.test;
import cz.crcs.ectester.common.cli.TreeCommandLine;
import cz.crcs.ectester.common.output.TestWriter;
import cz.crcs.ectester.common.test.TestSuite;
-import cz.crcs.ectester.data.EC_Store;
import cz.crcs.ectester.standalone.ECTesterStandalone;
-
-import java.security.NoSuchAlgorithmException;
+import cz.crcs.ectester.standalone.libs.ProviderECLibrary;
/**
* @author Jan Jancar johny@neuromancer.sk
@@ -20,4 +18,8 @@ public abstract class StandaloneTestSuite extends TestSuite {
this.cfg = cfg;
this.cli = cli;
}
+
+ public ProviderECLibrary getLibrary() {
+ return cfg.selected;
+ }
}