support T=0 in tests
This commit is contained in:
parent
232db9b571
commit
d26b1120a0
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ public class WalletAppletTest {
|
|||
}
|
||||
}
|
||||
|
||||
Card apduCard = cardTerminal.connect("T=1");
|
||||
Card apduCard = cardTerminal.connect("*");
|
||||
apduChannel = apduCard.getBasicChannel();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue