Fix possible implicit extended length usage support
This commit is contained in:
@@ -27,7 +27,7 @@ public final class Constants {
|
||||
protected static final short INTERNAL_BUFFER_MAX_LENGTH =
|
||||
(short)0x500;
|
||||
|
||||
protected static final short APDU_MAX_LENGTH = (short)256;
|
||||
protected static final short APDU_MAX_LENGTH = (short)0x400;
|
||||
|
||||
protected static final byte[] KEY_DERIVATION_FUNCTION_DEFAULT = {
|
||||
(byte)0x81, (byte)0x01, (byte)0x00
|
||||
|
@@ -23,8 +23,9 @@ package fr.anssi.smartpgp;
|
||||
import javacard.framework.*;
|
||||
import javacard.security.*;
|
||||
import javacardx.crypto.*;
|
||||
import javacardx.apdu.ExtendedLength;
|
||||
|
||||
public final class SmartPGPApplet extends Applet {
|
||||
public final class SmartPGPApplet extends Applet implements ExtendedLength {
|
||||
|
||||
private final Common common;
|
||||
private final Persistent data;
|
||||
@@ -100,7 +101,7 @@ public final class SmartPGPApplet extends Applet {
|
||||
short blen = apdu.setIncomingAndReceive();
|
||||
|
||||
final short lc = apdu.getIncomingLength();
|
||||
final short offcdata = ISO7816.OFFSET_CDATA;
|
||||
final short offcdata = apdu.getOffsetCdata();
|
||||
|
||||
short off = transients.chainingInputLength();
|
||||
|
||||
|
Reference in New Issue
Block a user