aboutsummaryrefslogtreecommitdiff
path: root/src/cz/crcs/ectester/reader/ec/EC_Key.java
diff options
context:
space:
mode:
authorJ08nY2017-04-19 01:10:17 +0200
committerJ08nY2017-04-19 01:10:17 +0200
commita7eef06134bef0861e43261640d61153ebb2a6e5 (patch)
tree2ef308843b4e8b1770be6681c15b98dcd78d40ff /src/cz/crcs/ectester/reader/ec/EC_Key.java
parentf4a66768ed6dfcfd7156ad0c8c364cdbf6e45e9c (diff)
downloadECTester-a7eef06134bef0861e43261640d61153ebb2a6e5.tar.gz
ECTester-a7eef06134bef0861e43261640d61153ebb2a6e5.tar.zst
ECTester-a7eef06134bef0861e43261640d61153ebb2a6e5.zip
Refactor testing, add Config class, make EC_Data read bytes
- The ECTester.Config class now stores and reads all CLI options - Testing with the -t / --test option was partially refactored into: - Test: Encapsulates one Command and Response pair with expected result, a real result and a callback to dynamically assign result - TestSuite: Encapsulates a bunch of tests, represents a whole category of tests either that can be run on any curve or only on some.
Diffstat (limited to 'src/cz/crcs/ectester/reader/ec/EC_Key.java')
-rw-r--r--src/cz/crcs/ectester/reader/ec/EC_Key.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cz/crcs/ectester/reader/ec/EC_Key.java b/src/cz/crcs/ectester/reader/ec/EC_Key.java
index ad846b8..85fd652 100644
--- a/src/cz/crcs/ectester/reader/ec/EC_Key.java
+++ b/src/cz/crcs/ectester/reader/ec/EC_Key.java
@@ -20,6 +20,16 @@ public class EC_Key extends EC_Params {
this.desc = desc;
}
+ private EC_Key(String id, short mask, String curve) {
+ this(mask, curve);
+ this.id = id;
+ }
+
+ private EC_Key(String id, short mask, String curve, String desc) {
+ this(mask, curve, desc);
+ this.id = id;
+ }
+
public String getCurve() {
return curve;
}