Skip to content

Commit 6d37b98

Browse files
committed
Moved repository to Git and fixed support for adding keys
0 parents  commit 6d37b98

File tree

23 files changed

+2547
-0
lines changed

23 files changed

+2547
-0
lines changed

.classpath

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="con" path="com.ibm.bluez.jcop.eclipse.containers.cardconfig/com.ibm.bluez.jcop.eclipse.cardconfigs.njcop"/>
5+
<classpathentry kind="output" path="bin"/>
6+
</classpath>

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bin/

.jcop

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?><jcop.project debug_comp="2" version="2"><package debug_comp="0" exportmap="false" jcop.id=""><aid jcop.id="package"/><version jcop.id="package">1.0</version></package><package debug_comp="0" exportmap="false" jcop.id="openpgpcard"><aid jcop.id="package">D27600012401</aid><version jcop.id="package">1.0</version><cunit jcop.id="OpenPGPApplet.java"><applet jcop.id="OpenPGPApplet"><aid jcop.id="applet">D2760001240102000000000000010000</aid></applet></cunit><cunit jcop.id="PGPKey.java"/><cunit jcop.id="OpenPGPSecureMessaging.java"/></package></jcop.project>

.project

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>OpenPGP JavaCard</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>com.ibm.bluez.jcop.eclipse.jcopbuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
<nature>com.ibm.bluez.jcop.eclipse.jcopnature</nature>
22+
</natures>
23+
</projectDescription>

.settings/org.eclipse.jdt.core.prefs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.1
4+
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5+
org.eclipse.jdt.core.compiler.compliance=1.3
6+
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7+
org.eclipse.jdt.core.compiler.debug.localVariable=generate
8+
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=ignore
10+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=ignore
11+
org.eclipse.jdt.core.compiler.source=1.3

LICENSE

Lines changed: 339 additions & 0 deletions
Large diffs are not rendered by default.

build.properties

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
project.name=OpenPGP JavaCard
2+
3+
base.dir=.
4+
bin.dir=bin
5+
lib.dir=lib
6+
src.dir=src
7+
8+
jar.jctasks=jctasks.jar
9+
jar.gpj=gpj.jar
10+
11+
cap.package=openpgpcard
12+
cap.package_aid=0xD2:0x76:0x00:0x01:0x24:0x01
13+
cap.applet=openpgpcard.OpenPGPApplet
14+
cap.applet_aid=0xD2:0x76:0x00:0x01:0x24:0x01:0x02:0x00:0x00:0x00:0x00:0x00:0x00:0x01:0x00:0x00
15+
16+
gpj.sd_aid=0xA0:0x00:0x00:0x00:0x03:0x00:0x00:0x00
17+

build.xml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<project name="${project.name}" default="applet">
3+
4+
<property file="build.properties" />
5+
6+
<!-- Definitions for tasks for Java Card tools -->
7+
<taskdef name="apdutool" classname="com.sun.javacard.ant.tasks.APDUToolTask" classpath="${lib.dir}/${jar.jctasks}" />
8+
<taskdef name="capgen" classname="com.sun.javacard.ant.tasks.CapgenTask" classpath="${lib.dir}/${jar.jctasks}" />
9+
<taskdef name="maskgen" classname="com.sun.javacard.ant.tasks.MaskgenTask" classpath="${lib.dir}/${jar.jctasks}" />
10+
<taskdef name="deploycap" classname="com.sun.javacard.ant.tasks.DeployCapTask" classpath="${lib.dir}/${jar.jctasks}" />
11+
<taskdef name="exp2text" classname="com.sun.javacard.ant.tasks.Exp2TextTask" classpath="${lib.dir}/${jar.jctasks}" />
12+
<taskdef name="convert" classname="com.sun.javacard.ant.tasks.ConverterTask" classpath="${lib.dir}/${jar.jctasks}" />
13+
<taskdef name="verifyexport" classname="com.sun.javacard.ant.tasks.VerifyExpTask" classpath="${lib.dir}/${jar.jctasks}" />
14+
<taskdef name="verifycap" classname="com.sun.javacard.ant.tasks.VerifyCapTask" classpath="${lib.dir}/${jar.jctasks}" />
15+
<taskdef name="verifyrevision" classname="com.sun.javacard.ant.tasks.VerifyRevTask" classpath="${lib.dir}/${jar.jctasks}" />
16+
<taskdef name="scriptgen" classname="com.sun.javacard.ant.tasks.ScriptgenTask" classpath="${lib.dir}/${jar.jctasks}" />
17+
<typedef name="appletnameaid" classname="com.sun.javacard.ant.types.AppletNameAID" classpath="${lib.dir}/${jar.jctasks}" />
18+
<typedef name="jcainputfile" classname="com.sun.javacard.ant.types.JCAInputFile" classpath="${lib.dir}/${jar.jctasks}" />
19+
<typedef name="exportfiles" classname="org.apache.tools.ant.types.FileSet" classpath="${lib.dir}/${jar.jctasks}" />
20+
21+
<path id="classpath">
22+
<fileset dir="${lib.dir}" includes="*.jar" />
23+
</path>
24+
25+
<pathconvert property="cap.dir">
26+
<path path="${bin.dir}/${cap.package}" />
27+
<unpackagemapper from="*" to="*/javacard" />
28+
</pathconvert>
29+
30+
<pathconvert property="cap.file">
31+
<path path="${cap.package}" />
32+
<chainedmapper>
33+
<unpackagemapper from="*" to="*.cap" />
34+
<flattenmapper />
35+
</chainedmapper>
36+
</pathconvert>
37+
38+
<target name="clean">
39+
<delete dir="${bin.dir}" />
40+
<delete dir="${base.dir}" includes="*.zip *.tar.*" />
41+
</target>
42+
43+
<target name="compile">
44+
<mkdir dir="${bin.dir}" />
45+
<javac srcdir="${src.dir}" destdir="${bin.dir}" includeantruntime="false" source="1.3" target="1.2">
46+
<classpath refid="classpath" />
47+
</javac>
48+
</target>
49+
50+
<target name="applet" depends="compile">
51+
<convert dir="${bin.dir}" JCA="true" EXP="true" CAP="true" nobanner="true" majorminorversion="1.0"
52+
packagename="${cap.package}" packageaid="${cap.package_aid}"
53+
ExportPath="${lib.dir}/api_export_files:${lib.dir}/jcopx_export_files:${bin.dir}">
54+
<AppletNameAID appletname="${cap.applet}" aid="${cap.applet_aid}" />
55+
<classpath refid="classpath" />
56+
</convert>
57+
</target>
58+
59+
<target name="release" depends="clean,compile,applet">
60+
<zip destfile="${base.dir}/${project.name}.zip">
61+
<fileset dir="${base.dir}" excludes="*.zip *.tar.*" />
62+
</zip>
63+
<tar destfile="${base.dir}/${project.name}.tar.gz" compression="gzip">
64+
<fileset dir="${base.dir}" excludes="*.zip *.tar.*" />
65+
</tar>
66+
<tar destfile="${base.dir}/${project.name}.tar.bz2" compression="bzip2">
67+
<fileset dir="${base.dir}" excludes="*.zip *.tar.*" />
68+
</tar>
69+
</target>
70+
71+
<target name="install" depends="applet">
72+
<java classname="net.sourceforge.gpj.cardservices.GlobalPlatformService">
73+
<classpath refid="classpath" />
74+
<arg line="-sdaid ${gpj.sd_aid}" />
75+
<arg line="-deletedeps -delete ${cap.package_aid}" />
76+
<arg line="-load '${cap.dir}/${cap.file}'" />
77+
<arg line="-install -list" />
78+
</java>
79+
</target>
80+
81+
<target name="uninstall">
82+
<java classname="net.sourceforge.gpj.cardservices.GlobalPlatformService">
83+
<classpath refid="classpath" />
84+
<arg line="-sdaid ${gpj.sd_aid}" />
85+
<arg line="-deletedeps -delete ${cap.package_aid} -list" />
86+
</java>
87+
</target>
88+
</project>

lib/api.jar

122 KB
Binary file not shown.
212 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy