aboutsummaryrefslogtreecommitdiff
path: root/src/cz/crcs/ectester/standalone/libs
diff options
context:
space:
mode:
authorJ08nY2017-11-12 17:23:04 +0100
committerJ08nY2017-11-12 17:23:04 +0100
commite329190e496ecf847cfd7afa886ac08cacb2fc92 (patch)
tree1a59895a1c6ee6e158b1feb5ff140e8af6887f07 /src/cz/crcs/ectester/standalone/libs
parente97e68677d0141af52e0c5be291d147cbe58c5b1 (diff)
downloadECTester-e329190e496ecf847cfd7afa886ac08cacb2fc92.tar.gz
ECTester-e329190e496ecf847cfd7afa886ac08cacb2fc92.tar.zst
ECTester-e329190e496ecf847cfd7afa886ac08cacb2fc92.zip
Add BouncyCastle library. Sketch out ECTesterStandalone.
Diffstat (limited to 'src/cz/crcs/ectester/standalone/libs')
-rw-r--r--src/cz/crcs/ectester/standalone/libs/BouncyCastleLib.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/cz/crcs/ectester/standalone/libs/BouncyCastleLib.java b/src/cz/crcs/ectester/standalone/libs/BouncyCastleLib.java
new file mode 100644
index 0000000..78da737
--- /dev/null
+++ b/src/cz/crcs/ectester/standalone/libs/BouncyCastleLib.java
@@ -0,0 +1,21 @@
+package cz.crcs.ectester.standalone.libs;
+import org.bouncycastle.jce.provider.BouncyCastleProvider;
+
+import java.security.Security;
+
+public class BouncyCastleLib {
+
+ public BouncyCastleLib() {
+
+ }
+
+ public boolean setUp() {
+ try {
+ Security.addProvider(new BouncyCastleProvider());
+ } catch (NullPointerException | SecurityException ignored) {
+ return false;
+ }
+ return true;
+ }
+
+}