aboutsummaryrefslogtreecommitdiff
path: root/src/cz/crcs/ectester/applet/ECKeyTester.java
diff options
context:
space:
mode:
authorJ08nY2017-03-30 01:51:46 +0200
committerJ08nY2017-03-30 01:51:46 +0200
commit565d312568da433f213b3d7ea67861b7784b2115 (patch)
tree7e3af1d28512e77b073105d5dc40c6e869633a3d /src/cz/crcs/ectester/applet/ECKeyTester.java
parent83c963ae78407e7a14ac71096f81254364d1e605 (diff)
downloadECTester-565d312568da433f213b3d7ea67861b7784b2115.tar.gz
ECTester-565d312568da433f213b3d7ea67861b7784b2115.tar.zst
ECTester-565d312568da433f213b3d7ea67861b7784b2115.zip
Added more documentation, anomalous curves, support command.
- Added CURVES.md, FORMAT.md and TESTS.md that talk a bit about what ECTester actually does/support. - Added anomalous curves (where |F_p| = #|E(F_p)|), meaning these curves have a trace of one and ECDLP over them reduces to easy DLP over multiplicative F*_p. These concrete curves are from Atsuko Miyaji's paper: Elliptic curves over F_p Suitable for Cryptosystems. - Added Support command that queries the results of KeyAgreement and Signature allocations. - Renamed smallpub curves to nonprime curves. - Fixed nonprime curves test suite.
Diffstat (limited to 'src/cz/crcs/ectester/applet/ECKeyTester.java')
-rw-r--r--src/cz/crcs/ectester/applet/ECKeyTester.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cz/crcs/ectester/applet/ECKeyTester.java b/src/cz/crcs/ectester/applet/ECKeyTester.java
index 7ef6150..e22094b 100644
--- a/src/cz/crcs/ectester/applet/ECKeyTester.java
+++ b/src/cz/crcs/ectester/applet/ECKeyTester.java
@@ -148,6 +148,18 @@ public class ECKeyTester {
return ecdsaSignature;
}
+ public boolean hasECDH() {
+ return ecdhKeyAgreement != null;
+ }
+
+ public boolean hasECDHC() {
+ return ecdhcKeyAgreement != null;
+ }
+
+ public boolean hasECDSA() {
+ return ecdsaSignature != null;
+ }
+
public short getSW() {
return sw;
}