Make boolean true 0xFF, not 0x01

This commit is contained in:
Nick Johnson 2018-01-17 15:29:16 +00:00
parent b68e7a55ea
commit 07c1f9cc42

View File

@ -331,10 +331,10 @@ public class WalletApplet extends Applet {
apduBuffer[off++] = puk.getTriesRemaining();
apduBuffer[off++] = TLV_BOOL;
apduBuffer[off++] = 1;
apduBuffer[off++] = privateKey.isInitialized() ? (byte) 0x01 : (byte) 0x00;
apduBuffer[off++] = privateKey.isInitialized() ? (byte) 0xFF : (byte) 0x00;
apduBuffer[off++] = TLV_BOOL;
apduBuffer[off++] = 1;
apduBuffer[off++] = SECP256k1.hasECPointMultiplication() ? (byte) 0x01 : (byte) 0x00;
apduBuffer[off++] = SECP256k1.hasECPointMultiplication() ? (byte) 0xFF : (byte) 0x00;
return (short) (off - SecureChannel.SC_OUT_OFFSET);
}