summaryrefslogtreecommitdiff
path: root/src/cz/crcs/ectester/standalone/ECTesterStandalone.java
diff options
context:
space:
mode:
authorJ08nY2017-11-29 20:43:57 +0100
committerJ08nY2017-11-29 20:43:57 +0100
commit5026cc9f03f11fc2a473124e32867f3302f901f7 (patch)
treec317da55f300770d8e84dbf6cc2cc41c53efda33 /src/cz/crcs/ectester/standalone/ECTesterStandalone.java
parent9250f269d6a8ffa7f3714d60a0437a112ad7a924 (diff)
downloadECTester-5026cc9f03f11fc2a473124e32867f3302f901f7.tar.gz
ECTester-5026cc9f03f11fc2a473124e32867f3302f901f7.tar.zst
ECTester-5026cc9f03f11fc2a473124e32867f3302f901f7.zip
Implement KeyPairGeneration for LibTomCrypt.
Diffstat (limited to 'src/cz/crcs/ectester/standalone/ECTesterStandalone.java')
-rw-r--r--src/cz/crcs/ectester/standalone/ECTesterStandalone.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cz/crcs/ectester/standalone/ECTesterStandalone.java b/src/cz/crcs/ectester/standalone/ECTesterStandalone.java
index 8125485..8605158 100644
--- a/src/cz/crcs/ectester/standalone/ECTesterStandalone.java
+++ b/src/cz/crcs/ectester/standalone/ECTesterStandalone.java
@@ -23,6 +23,7 @@ import java.security.*;
import java.security.interfaces.ECPrivateKey;
import java.security.interfaces.ECPublicKey;
import java.security.spec.AlgorithmParameterSpec;
+import java.security.spec.ECGenParameterSpec;
import java.security.spec.ECParameterSpec;
import java.util.*;
import java.util.stream.Collectors;
@@ -87,7 +88,7 @@ public class ECTesterStandalone {
} catch (ParseException | IOException ex) {
System.err.println(ex.getMessage());
- } catch (InvalidAlgorithmParameterException e) {
+ } catch (InvalidAlgorithmParameterException | InvalidParameterException e) {
System.err.println("Invalid algorithm parameter: " + e.getMessage());
} catch (NoSuchAlgorithmException nsaex) {
System.err.println("Algorithm not supported by the selected library: " + nsaex.getMessage());