idpass / card-applets

Apache License 2.0
18 stars 2 forks source link

ID PASS

Contributor Covenant GitHub CircleCI

General design

ID PASS applets

How to build the project

The project is built using Gradle with the Fidesmo Javacard Gradle plugin. You can set the JavaCard HOME not only through the environment but also creating a gradle.properties file with the property com.fidesmo.gradle.javacard.home set to the correct absolute path. Here is an example gradle.properties content:

com.fidesmo.gradle.javacard.home=/absolute/path/to/card-applets/libs-sdks/jc304_kit/

However, the _JAVA_OPTIONS can only be set at an environment level. Please see build.sh. Whereas currently this project uses Gradle version 4.7, the highest alternative version usable is version 4.10.3. This Gradle version constraint is imposed upon by the com.fidesmo:gradle-javacard:0.2.7 javacard Gradle plugin that this project is using.

General SW List

SW DESCRIPTION
0x9000 No error
0x6982 SCP Security Level is too low
0x6B00 Incorrect parameters (P1,P2)
0x6700 Wrong DATA length

Packages

  1. tools - package contains common classes, used in other ID PASS applets. MUST be uploaded first.
  2. auth - package contains applet for Personas authentication
  3. sam - package contains applet for encryption and decryption Personas data
  4. datastorage - package contains applet for personas data storage

ID PASS applets support ExtendedLength APDUs. Project contains scripts folder with JCShell scripts for demonstration and testing.

Contributors

Contributions are welcome!