summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@t520.localdomain>2013-02-20 13:42:08 -0600
committerEndi Sukma Dewata <edewata@t520.localdomain>2013-02-20 13:42:08 -0600
commit04cd913f7df1bce47afa94064d126d829c3cbee3 (patch)
treebf35cfc78c1598fbb41741101109858dc068914c
parent556b75cab26d427d443e00de1c2cec4aaa9b161d (diff)
downloadpki-04cd913f7df1bce47afa94064d126d829c3cbee3.zip
pki-04cd913f7df1bce47afa94064d126d829c3cbee3.tar.gz
pki-04cd913f7df1bce47afa94064d126d829c3cbee3.tar.xz
Added JCDK scripts.
-rw-r--r--base/javacard/jcdk/bin/apdutool15
-rw-r--r--base/javacard/jcdk/bin/capdump15
-rw-r--r--base/javacard/jcdk/bin/capgen15
-rw-r--r--base/javacard/jcdk/bin/converter15
-rwxr-xr-xbase/javacard/jcdk/bin/crefbin0 -> 735003 bytes
-rw-r--r--base/javacard/jcdk/bin/exp2text15
-rw-r--r--base/javacard/jcdk/bin/jcwde15
-rw-r--r--base/javacard/jcdk/bin/libjpcsclite.sobin0 -> 5803 bytes
-rw-r--r--base/javacard/jcdk/bin/scriptgen15
-rw-r--r--base/javacard/jcdk/bin/verifycap15
-rw-r--r--base/javacard/jcdk/bin/verifyexp15
-rw-r--r--base/javacard/jcdk/bin/verifyrev15
-rw-r--r--base/javacard/jcdk/lib/api_16.jarbin0 -> 145072 bytes
-rw-r--r--base/javacard/jcdk/lib/jcclientsamples.jarbin244817 -> 23754 bytes
-rw-r--r--base/javacard/jcdk/lib/jcwde_16.jarbin0 -> 69477 bytes
15 files changed, 150 insertions, 0 deletions
diff --git a/base/javacard/jcdk/bin/apdutool b/base/javacard/jcdk/bin/apdutool
new file mode 100644
index 0000000..128e724
--- /dev/null
+++ b/base/javacard/jcdk/bin/apdutool
@@ -0,0 +1,15 @@
+#!/bin/sh
+#
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+JAVA_HOME=${JAVA_HOME:-/usr/j2se}
+
+bin_home=`dirname $0`
+JC_HOME=${JC_HOME:-$bin_home/..}
+
+JC_PATH=$JC_HOME/lib/apdutool.jar:$JC_HOME/lib/apduio.jar:$JC_HOME/lib/converter.jar:$JC_HOME/lib/jcwde.jar:$JC_HOME/lib/scriptgen.jar:$JC_HOME/lib/offcardverifier.jar:$JC_HOME/lib/api.jar:$JC_HOME/lib/installer.jar:$JC_HOME/lib/capdump.jar:$JC_HOME/samples/classes:$CLASSPATH
+
+JFLAGS="-classpath $JC_PATH"
+$JAVA_HOME/bin/java $JFLAGS com.sun.javacard.apdutool.Main "$@"
diff --git a/base/javacard/jcdk/bin/capdump b/base/javacard/jcdk/bin/capdump
new file mode 100644
index 0000000..3877c3a
--- /dev/null
+++ b/base/javacard/jcdk/bin/capdump
@@ -0,0 +1,15 @@
+#!/bin/sh
+#
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+JAVA_HOME=${JAVA_HOME:-/usr/j2se}
+
+bin_home=`dirname $0`
+JC_HOME=${JC_HOME:-$bin_home/..}
+
+JC_PATH=$JC_HOME/lib/apdutool.jar:$JC_HOME/lib/apduio.jar:$JC_HOME/lib/converter.jar:$JC_HOME/lib/jcwde.jar:$JC_HOME/lib/scriptgen.jar:$JC_HOME/lib/offcardverifier.jar:$JC_HOME/lib/api.jar:$JC_HOME/lib/installer.jar:$JC_HOME/lib/capdump.jar:$JC_HOME/samples/classes:$CLASSPATH
+
+JFLAGS="-classpath $JC_PATH"
+$JAVA_HOME/bin/java $JFLAGS com.sun.javacard.capdump.CapDump "$@"
diff --git a/base/javacard/jcdk/bin/capgen b/base/javacard/jcdk/bin/capgen
new file mode 100644
index 0000000..f054c6b
--- /dev/null
+++ b/base/javacard/jcdk/bin/capgen
@@ -0,0 +1,15 @@
+#!/bin/sh
+#
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+JAVA_HOME=${JAVA_HOME:-/usr/j2se}
+
+bin_home=`dirname $0`
+JC_HOME=${JC_HOME:-$bin_home/..}
+
+JC_PATH=$JC_HOME/lib/apdutool.jar:$JC_HOME/lib/apduio.jar:$JC_HOME/lib/converter.jar:$JC_HOME/lib/jcwde.jar:$JC_HOME/lib/scriptgen.jar:$JC_HOME/lib/offcardverifier.jar:$JC_HOME/lib/api.jar:$JC_HOME/lib/installer.jar:$JC_HOME/lib/capdump.jar:$JC_HOME/samples/classes:$CLASSPATH
+
+JFLAGS="-classpath $JC_PATH"
+$JAVA_HOME/bin/java $JFLAGS com.sun.javacard.jcasm.cap.Main "$@"
diff --git a/base/javacard/jcdk/bin/converter b/base/javacard/jcdk/bin/converter
new file mode 100644
index 0000000..e99bb8e
--- /dev/null
+++ b/base/javacard/jcdk/bin/converter
@@ -0,0 +1,15 @@
+#!/bin/sh
+#
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+JAVA_HOME=${JAVA_HOME:-/usr/j2se}
+
+bin_home=`dirname $0`
+JC_HOME=${JC_HOME:-$bin_home/..}
+
+JC_PATH=$JC_HOME/lib/apdutool.jar:$JC_HOME/lib/apduio.jar:$JC_HOME/lib/converter.jar:$JC_HOME/lib/jcwde.jar:$JC_HOME/lib/scriptgen.jar:$JC_HOME/lib/offcardverifier.jar:$JC_HOME/lib/api.jar:$JC_HOME/lib/installer.jar:$JC_HOME/lib/capdump.jar:$JC_HOME/samples/classes:$CLASSPATH
+
+JFLAGS="-classpath $JC_PATH"
+$JAVA_HOME/bin/java $JFLAGS com.sun.javacard.converter.Converter "$@"
diff --git a/base/javacard/jcdk/bin/cref b/base/javacard/jcdk/bin/cref
new file mode 100755
index 0000000..b0d8ac8
--- /dev/null
+++ b/base/javacard/jcdk/bin/cref
Binary files differ
diff --git a/base/javacard/jcdk/bin/exp2text b/base/javacard/jcdk/bin/exp2text
new file mode 100644
index 0000000..6350fac
--- /dev/null
+++ b/base/javacard/jcdk/bin/exp2text
@@ -0,0 +1,15 @@
+#!/bin/sh
+#
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+JAVA_HOME=${JAVA_HOME:-/usr/j2se}
+
+bin_home=`dirname $0`
+JC_HOME=${JC_HOME:-$bin_home/..}
+
+JC_PATH=$JC_HOME/lib/apdutool.jar:$JC_HOME/lib/apduio.jar:$JC_HOME/lib/converter.jar:$JC_HOME/lib/jcwde.jar:$JC_HOME/lib/scriptgen.jar:$JC_HOME/lib/offcardverifier.jar:$JC_HOME/lib/api.jar:$JC_HOME/lib/installer.jar:$JC_HOME/lib/capdump.jar:$JC_HOME/samples/classes:$CLASSPATH
+
+JFLAGS="-classpath $JC_PATH"
+$JAVA_HOME/bin/java $JFLAGS com.sun.javacard.converter.Exp2Text "$@"
diff --git a/base/javacard/jcdk/bin/jcwde b/base/javacard/jcdk/bin/jcwde
new file mode 100644
index 0000000..f59a861
--- /dev/null
+++ b/base/javacard/jcdk/bin/jcwde
@@ -0,0 +1,15 @@
+#!/bin/sh
+#
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+JAVA_HOME=${JAVA_HOME:-/usr/j2se}
+
+bin_home=`dirname $0`
+JC_HOME=${JC_HOME:-$bin_home/..}
+
+JC_PATH=$JC_HOME/lib/apdutool.jar:$JC_HOME/lib/apduio.jar:$JC_HOME/lib/converter.jar:$JC_HOME/lib/jcwde.jar:$JC_HOME/lib/scriptgen.jar:$JC_HOME/lib/offcardverifier.jar:$JC_HOME/lib/api.jar:$JC_HOME/lib/installer.jar:$JC_HOME/lib/capdump.jar:$JC_HOME/samples/classes:$CLASSPATH
+
+JFLAGS="-classpath $JC_PATH"
+$JAVA_HOME/bin/java $JFLAGS com.sun.javacard.jcwde.Main "$@"
diff --git a/base/javacard/jcdk/bin/libjpcsclite.so b/base/javacard/jcdk/bin/libjpcsclite.so
new file mode 100644
index 0000000..4ffb8b1
--- /dev/null
+++ b/base/javacard/jcdk/bin/libjpcsclite.so
Binary files differ
diff --git a/base/javacard/jcdk/bin/scriptgen b/base/javacard/jcdk/bin/scriptgen
new file mode 100644
index 0000000..3a1e310
--- /dev/null
+++ b/base/javacard/jcdk/bin/scriptgen
@@ -0,0 +1,15 @@
+#!/bin/sh
+#
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+JAVA_HOME=${JAVA_HOME:-/usr/j2se}
+
+bin_home=`dirname $0`
+JC_HOME=${JC_HOME:-$bin_home/..}
+
+JC_PATH=$JC_HOME/lib/apdutool.jar:$JC_HOME/lib/apduio.jar:$JC_HOME/lib/converter.jar:$JC_HOME/lib/jcwde.jar:$JC_HOME/lib/scriptgen.jar:$JC_HOME/lib/offcardverifier.jar:$JC_HOME/lib/api.jar:$JC_HOME/lib/installer.jar:$JC_HOME/lib/capdump.jar:$JC_HOME/samples/classes:$CLASSPATH
+
+JFLAGS="-classpath $JC_PATH"
+$JAVA_HOME/bin/java $JFLAGS com.sun.javacard.scriptgen.Main "$@"
diff --git a/base/javacard/jcdk/bin/verifycap b/base/javacard/jcdk/bin/verifycap
new file mode 100644
index 0000000..6d4ae0b
--- /dev/null
+++ b/base/javacard/jcdk/bin/verifycap
@@ -0,0 +1,15 @@
+#!/bin/sh
+#
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+JAVA_HOME=${JAVA_HOME:-/usr/j2se}
+
+bin_home=`dirname $0`
+JC_HOME=${JC_HOME:-$bin_home/..}
+
+JC_PATH=$JC_HOME/lib/apdutool.jar:$JC_HOME/lib/apduio.jar:$JC_HOME/lib/converter.jar:$JC_HOME/lib/jcwde.jar:$JC_HOME/lib/scriptgen.jar:$JC_HOME/lib/offcardverifier.jar:$JC_HOME/lib/api.jar:$JC_HOME/lib/installer.jar:$JC_HOME/lib/capdump.jar:$JC_HOME/samples/classes:$CLASSPATH
+
+JFLAGS="-classpath $JC_PATH"
+$JAVA_HOME/bin/java $JFLAGS com.sun.javacard.offcardverifier.Verifier "$@"
diff --git a/base/javacard/jcdk/bin/verifyexp b/base/javacard/jcdk/bin/verifyexp
new file mode 100644
index 0000000..9120515
--- /dev/null
+++ b/base/javacard/jcdk/bin/verifyexp
@@ -0,0 +1,15 @@
+#!/bin/sh
+#
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+JAVA_HOME=${JAVA_HOME:-/usr/j2se}
+
+bin_home=`dirname $0`
+JC_HOME=${JC_HOME:-$bin_home/..}
+
+JC_PATH=$JC_HOME/lib/apdutool.jar:$JC_HOME/lib/apduio.jar:$JC_HOME/lib/converter.jar:$JC_HOME/lib/jcwde.jar:$JC_HOME/lib/scriptgen.jar:$JC_HOME/lib/offcardverifier.jar:$JC_HOME/lib/api.jar:$JC_HOME/lib/installer.jar:$JC_HOME/lib/capdump.jar:$JC_HOME/samples/classes:$CLASSPATH
+
+JFLAGS="-classpath $JC_PATH"
+$JAVA_HOME/bin/java $JFLAGS com.sun.javacard.offcardverifier.VerifyExp "$@"
diff --git a/base/javacard/jcdk/bin/verifyrev b/base/javacard/jcdk/bin/verifyrev
new file mode 100644
index 0000000..c231efb
--- /dev/null
+++ b/base/javacard/jcdk/bin/verifyrev
@@ -0,0 +1,15 @@
+#!/bin/sh
+#
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+JAVA_HOME=${JAVA_HOME:-/usr/j2se}
+
+bin_home=`dirname $0`
+JC_HOME=${JC_HOME:-$bin_home/..}
+
+JC_PATH=$JC_HOME/lib/apdutool.jar:$JC_HOME/lib/apduio.jar:$JC_HOME/lib/converter.jar:$JC_HOME/lib/jcwde.jar:$JC_HOME/lib/scriptgen.jar:$JC_HOME/lib/offcardverifier.jar:$JC_HOME/lib/api.jar:$JC_HOME/lib/installer.jar:$JC_HOME/lib/capdump.jar:$JC_HOME/samples/classes:$CLASSPATH
+
+JFLAGS="-classpath $JC_PATH"
+$JAVA_HOME/bin/java $JFLAGS com.sun.javacard.offcardverifier.VerifyRev "$@"
diff --git a/base/javacard/jcdk/lib/api_16.jar b/base/javacard/jcdk/lib/api_16.jar
new file mode 100644
index 0000000..6213631
--- /dev/null
+++ b/base/javacard/jcdk/lib/api_16.jar
Binary files differ
diff --git a/base/javacard/jcdk/lib/jcclientsamples.jar b/base/javacard/jcdk/lib/jcclientsamples.jar
index 5320dc1..c169891 100644
--- a/base/javacard/jcdk/lib/jcclientsamples.jar
+++ b/base/javacard/jcdk/lib/jcclientsamples.jar
Binary files differ
diff --git a/base/javacard/jcdk/lib/jcwde_16.jar b/base/javacard/jcdk/lib/jcwde_16.jar
new file mode 100644
index 0000000..76de86b
--- /dev/null
+++ b/base/javacard/jcdk/lib/jcwde_16.jar
Binary files differ