aboutsummaryrefslogtreecommitdiff
path: root/jcbuild.xml
diff options
context:
space:
mode:
authorJ08nY2017-01-17 02:55:31 +0100
committerJ08nY2017-01-17 03:17:08 +0100
commit4debe5adb4bb486f488878e348ee7bcf386c43f2 (patch)
tree2cacbee1b1fac0c6afb686f5c2ce6f64bc4e1499 /jcbuild.xml
parentbffdcc6925d806d74179a76b2dc57a619e9c1886 (diff)
downloadECTester-4debe5adb4bb486f488878e348ee7bcf386c43f2.tar.gz
ECTester-4debe5adb4bb486f488878e348ee7bcf386c43f2.tar.zst
ECTester-4debe5adb4bb486f488878e348ee7bcf386c43f2.zip
major changes, ECTester rewrite, moved to valid package
reader: ECTester, mostly rewritten SimpleAPDU - communication with applet now done through simpler instructions: allocate, set, generate, ecdh, ecdsa - moved to a valid Java package dir cz.crcs.ectester - SimpleAPDU: renamed to ECTester - CardMngr: seamlessly supports simulation vs real card - DirtyLogger: takes a nullable String and creates file - ECTester: currently only supports key generation, curve testing under way - supports external curve setting, example files in data package - tests can be done through files, to achieve a more modular approach - Util: static utility class - ParamReader: reads curve domain parameters and keys from simple csv-like human-readable files with hex strings applet: ECTesterApplet, rewrite of SimpleECCApplet - more granularity in instructions - moved complexity over to the reader side - ECKeyGenerator: now a class that takes KeyPair as param - ECKeyTester: now a class that takes KeyPair as param - EC_Consts: removed ecsp curves(now done externally), removed unused methods - ECTesterApplet: currently only tested instructions are: allocate, set, generate data: contains several curve and pubkey files in format supported by ParamReader - Prime field curves: p,a,b,gx,gy,r,k - Binary field curves: e1,a,b,gx,gy,r,k or e1,e2,e3,a,b,gx,gy,r,k - Public key: wx,wy - Private key: s - Key: wx,wy,s - all values are hex strings
Diffstat (limited to 'jcbuild.xml')
-rw-r--r--jcbuild.xml20
1 files changed, 11 insertions, 9 deletions
diff --git a/jcbuild.xml b/jcbuild.xml
index 70d5370..9b1dabb 100644
--- a/jcbuild.xml
+++ b/jcbuild.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<project basedir="." default="all" name="ECTester">
+<project basedir="." default="build" name="ECTesterApplet">
<!-- Based on Martin Paljak's applets playground -->
<!-- Applet building dependencies -->
<property name="JC222" value="ext/java_card_kit-2_2_2"/>
@@ -10,15 +10,17 @@
<!-- ant-javacard task from javacard.pro -->
<taskdef name="javacard" classname="pro.javacard.ant.JavaCard" classpath="ext/ant-javacard.jar"/>
-
- <!-- All included applets -->
- <target name="all" depends="SimpleECC" />
-
- <target name="SimpleECC">
+
+ <target name="build" description="Builds the CAP file.">
<javacard jckit="${JC221}">
- <cap output="!uploader/simpleECC.cap" sources="src/applets" aid="4543546573746572" >
- <applet class="applets.SimpleECCApplet" aid="45435465737465723031"/>
+ <cap output="!uploader/ectester.cap" sources="src/cz/crcs/ectester/applet" aid="4543546573746572" >
+ <applet class="cz.crcs.ectester.applet.ECTesterApplet" aid="45435465737465723031"/>
</cap>
- </javacard>
+ </javacard>
+ </target>
+
+ <target name="upload" depends="build" description="Uploads the CAP file to the card, using gp.jar">
+ <exec dir="!uploader" executable="./gppro_upload.sh" osfamily="unix"/>
+ <exec dir="!uploader" executable="./gppro_upload.bat" osfamily="windows"/>
</target>
</project>