Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for Isoapplet v1 #29

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix extended APDUs
The extended APDU feature flag is still helpful to maintain
backwards compatibility in OpenSC.
  • Loading branch information
swissbit-csteuer committed Nov 30, 2022
commit 230aeb38d70e5a470ecbd74f142650b9989d528c
3 changes: 2 additions & 1 deletion src/xyz/wendland/javacard/pki/isoapplet/IsoApplet.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public class IsoApplet extends Applet implements ExtendedLength {
private static final byte STATE_OPERATIONAL_DEACTIVATED = (byte) 0x04; // Applet usage is deactivated. (Unused at the moment.)
private static final byte STATE_TERMINATED = (byte) 0x0C; // Applet usage is terminated. (Unused at the moment.)

private static final byte API_FEATURE_EXT_APDU = (byte) 0x01;
private static final byte API_FEATURE_SECURE_RANDOM = (byte) 0x02;
private static final byte API_FEATURE_ECC = (byte) 0x04;
private static final byte API_FEATURE_RSA_SHA256_PSS = (byte) 0x08;
Expand Down Expand Up @@ -156,7 +157,7 @@ public static void install(byte[] bArray, short bOffset, byte bLength) {
* \brief Only this class's install method should create the applet object.
*/
protected IsoApplet() {
api_features = 0;
api_features = API_FEATURE_EXT_APDU;
pin = new OwnerPIN(PIN_MAX_TRIES, PIN_MAX_LENGTH);
fs = new IsoFileSystem();

Expand Down