support T=0 in tests

This commit is contained in:
Michele Balistreri 2017-10-16 17:00:10 +03:00
parent 232db9b571
commit d26b1120a0
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ public class WalletAppletCommandSet {
}
public ResponseAPDU getStatus() throws CardException {
CommandAPDU getStatus = new CommandAPDU(0x80, WalletApplet.INS_GET_STATUS, 0, 0);
CommandAPDU getStatus = new CommandAPDU(0x80, WalletApplet.INS_GET_STATUS, 0, 0, 256);
return apduChannel.transmit(getStatus);
}
@ -167,7 +167,7 @@ public class WalletAppletCommandSet {
}
public ResponseAPDU generateMnemonic(int cs) throws CardException {
CommandAPDU generateMnemonic = new CommandAPDU(0x80, WalletApplet.INS_GENERATE_MNEMONIC, cs, 0);
CommandAPDU generateMnemonic = new CommandAPDU(0x80, WalletApplet.INS_GENERATE_MNEMONIC, cs, 0, 256);
return apduChannel.transmit(generateMnemonic);
}

View File

@ -69,7 +69,7 @@ public class WalletAppletTest {
}
}
Card apduCard = cardTerminal.connect("T=1");
Card apduCard = cardTerminal.connect("*");
apduChannel = apduCard.getBasicChannel();
}