Install for load error
Status: Beta
Brought to you by:
woj76
Commands Install for load is invalid according GP spec should be like this
try {
// data
bo.write(cap.getPackageAID().getLength());
bo.write(cap.getPackageAID().getBytes());
bo.write(sdAID.getLength());
bo.write(sdAID.getBytes());
bo.write(hash.length);
bo.write(hash);
bo.write(loadParams.length);
bo.write(loadParams);
bo.write((byte)0x00); //token lenght - mandatory according to gp spec
} catch (IOException ioe) {
}
byte [] data = bo.toByteArray();
CommandAPDU installForLoad = new CommandAPDU(CLA_GP, INSTALL, 0x02,
0x00, data, 0); -> LE should be set to 0
Install for load error
Yes, the spec tells that Le is explicitly set to 00 all the time. At the same time, the documentation of the CommandAPDU for this case tells that the command is sent as Case 3 if Ne is 0, which should
Does a card (which name?) not work for you without this patch?