Skip to content

Commit

Permalink
Offcard Keygen + SCA countermeasures
Browse files Browse the repository at this point in the history
  • Loading branch information
asdfjkl committed Jun 5, 2022
1 parent 384be71 commit 0edf902
Show file tree
Hide file tree
Showing 30 changed files with 361 additions and 540 deletions.
17 changes: 17 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="lib" path="/home/user/u2f/extlibs/jc303_kit/lib/ant-contrib-1.0b3.jar"/>
<classpathentry kind="lib" path="/home/user/u2f/extlibs/jc303_kit/lib/api_classic.jar"/>
<classpathentry kind="lib" path="/home/user/u2f/extlibs/jc303_kit/lib/api_connected.jar"/>
<classpathentry kind="lib" path="/home/user/u2f/extlibs/jc303_kit/lib/asm-all-3.1.jar"/>
<classpathentry kind="lib" path="/home/user/u2f/extlibs/jc303_kit/lib/bcel-5.2.jar"/>
<classpathentry kind="lib" path="/home/user/u2f/extlibs/jc303_kit/lib/commons-cli-1.0.jar"/>
<classpathentry kind="lib" path="/home/user/u2f/extlibs/jc303_kit/lib/commons-codec-1.3.jar"/>
<classpathentry kind="lib" path="/home/user/u2f/extlibs/jc303_kit/lib/commons-httpclient-3.0.jar"/>
<classpathentry kind="lib" path="/home/user/u2f/extlibs/jc303_kit/lib/commons-logging-1.1.jar"/>
<classpathentry kind="lib" path="/home/user/u2f/extlibs/jc303_kit/lib/jctasks.jar"/>
<classpathentry kind="lib" path="/home/user/u2f/extlibs/jc303_kit/lib/tools.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
</classpath>
2 changes: 0 additions & 2 deletions .gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions .gitmodules

This file was deleted.

17 changes: 17 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>u2f</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

Binary file added bin/de/asdfjkl/u2f/javacard/FIDOAPI.class
Binary file not shown.
Binary file added bin/de/asdfjkl/u2f/javacard/FIDOStandalone.class
Binary file not shown.
Binary file added bin/de/asdfjkl/u2f/javacard/FIDOUtils.class
Binary file not shown.
Binary file added bin/de/asdfjkl/u2f/javacard/Secp256r1.class
Binary file not shown.
Binary file added bin/de/asdfjkl/u2f/javacard/U2FApplet.class
Binary file not shown.
96 changes: 0 additions & 96 deletions build.gradle

This file was deleted.

29 changes: 22 additions & 7 deletions build.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="applet" name="ledger-u2f-javacard">
<target name="applet">
<get src="https://github.com/martinpaljak/ant-javacard/releases/download/v1.4/ant-javacard.jar" skipexisting="true" dest="."/>
<taskdef name="javacard" classname="pro.javacard.ant.JavaCard" classpath="ant-javacard.jar"/>
<javacard>
<cap output="U2FApplet.cap" sources="src" aid="a0:00:00:06:17:00:4f:97:a2:e9:50:01" version="1.1">
<applet class="com.ledger.u2f.U2FApplet" aid="a0:00:00:06:17:00:4f:97:a2:e9:49:01"/>
<project basedir="." default="buildcap" name="U2F-Applet">
<!-- Applet building dependencies -->

<property name="JC301" value="extlibs/jc303_kit"/>

<!-- ant-javacard task from javacard.pro -->
<taskdef name="javacard" classname="pro.javacard.ant.JavaCard" classpath="tools/ant-javacard.jar"/>

<!-- CCU2F applet on Sm@rtCafe Expert 7 C3-->
<target name="buildcap">
<delete file="cap/u2f.cap"/>
<javacard jckit="${JC301}">
<cap output="cap/u2f.cap" aid="A000000647" sources="src">
<applet class="de.asdfjkl.u2f.javacard.U2FApplet" aid="A0000006472F0001"/>
</cap>
</javacard>
</target>

<!-- Install Applet -->
<target name="install" depends="buildcap">
<exec executable="cmd">
<arg value="scripts/install+personalize.bat"/>
</exec>
</target>

</project>
Binary file added cap/u2f.cap
Binary file not shown.
Binary file removed gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 0 additions & 6 deletions gradle/wrapper/gradle-wrapper.properties

This file was deleted.

164 changes: 0 additions & 164 deletions gradlew

This file was deleted.

Loading

0 comments on commit 0edf902

Please sign in to comment.