GithubHelp home page GithubHelp logo

hibigyao / isoapplet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from philipwendland/isoapplet

0.0 0.0 0.0 318 KB

A Java Card PKI Applet aiming to be ISO 7816 compliant

License: GNU General Public License v3.0

Java 100.00%

isoapplet's Introduction

General Information

The Java Card IsoApplet (e.g. for use with OpenSC). The Applet is capable of saving a PKCS#15 file structure and performing PKI related operations using the private key, such as signing or decrypting. Private keys can be generated directly on the smart card or imported from the host computer. The import of private keys is disabled in the default security configuration. The applet targets modern smartcards with Java Card 3.0.4 or above.

IsoApplet Version and Smartcard requirements

IsoApplet is maintained in two different versions: one for newer smartcards and a legacy version for older smartcards. If your smartcard supports the newer version of IsoApplet, you should prefer it. For both versions, the support of the "requestObjectDeletion()"-mechanism of the Java Card API is recommended to be able to properly delete files. Also, the javacardx.crypto.Cipher-package needs to be supported by your smart card. This is very common among Java Card smartcards.

New version of IsoApplet (v1)

This version is found on the main branch. It targets smartcards with Java Card version >= 3.0.4. This version requires extended APDUs the be used and supported by your reader and smartcard (javacardx.apdu.ExtendedLength). If supported by your smart card, the newer version of IsoApplet supports the following additional features:

  • RSA keys of 4096 bit length
  • RSA PSS signatures
  • ECDSA with off-card hashing, which makes ECC actually usable in practice

Legacy Version of IsoApplet (v0)

The legacy version is found on the main-javacard-v2.2.2 branch branch. It targets smartcards with Java Card version >= 2.2.2. The ECDSA implementation with Java Card version 2.2.2 is hardly usable in practice because it requires on-card hash generation. If your smartcard implements javacardx.apdu.ExtendedLength and IsoApplet is configured with DEF_EXT_APDU in IsoApplet.java, you can use extended APDUs.

Build process

This project uses ant-javacard to build cap-files. After cloning the IsoApplet repository, all you have to do is:

  • Perform git submodule init && git submodule update to retrieve the Java Card SDKs, in case you did not git clone --recursive to clone this repository.
  • Install Apache ant, openjdk-17-jdk-headless
  • Invoke ant to produce the cap file.

Installation

Install the CAP-file (IsoApplet.cap) to your Java Card smart card (e.g. with GlobalPlatformPro).

Have a look at the wiki for more information: https://github.com/philipWendland/IsoApplet/wiki

isoapplet's People

Contributors

philipwendland avatar swissbit-csteuer avatar hfmanson avatar martinpaljak avatar swissbit-okaufmann avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.