Searched refs:apdu (Results 1 – 12 of 12) sorted by relevance
53 public static void execute(byte[] apdu) throws IllegalArgumentException { in execute() argument54 if (apdu.length < CMD_APDU_LENGTH_CASE1) { in execute()55 throw new IllegalArgumentException("Invalid length for command (" + apdu.length + ")."); in execute()57 checkCla(apdu[OFFSET_CLA]); in execute()58 checkIns(apdu[OFFSET_INS]); in execute()60 if (apdu.length == CMD_APDU_LENGTH_CASE1) { in execute()64 if (apdu.length == CMD_APDU_LENGTH_CASE2) { in execute()65 checkLe((int) 0x0FF & apdu[OFFSET_P3]); in execute()69 if (apdu[OFFSET_P3] != (byte) 0x00) { in execute()70 int lc = ((int) 0x0FF & apdu[OFFSET_P3]); in execute()[all …]
159 byte[] apdu = new byte[length]; in toBytes()162 apdu[index] = (byte) mCla; in toBytes()164 apdu[index] = (byte) mIns; in toBytes()166 apdu[index] = (byte) mP1; in toBytes()168 apdu[index] = (byte) mP2; in toBytes()171 apdu[index] = (byte) mLc; in toBytes()173 System.arraycopy(mData, 0, apdu, index, mData.length); in toBytes()177 apdu[index] += (byte) mLe; // LE in toBytes()180 return apdu; in toBytes()185 CommandApdu apdu = new CommandApdu(); in clone() local[all …]
50 public ApduFilter(byte[] apdu, byte[] mask) { in ApduFilter() argument51 if (apdu.length != 4) { in ApduFilter()57 mApdu = apdu; in ApduFilter()82 public void setApdu(byte[] apdu) { in setApdu() argument83 if (apdu.length != 4) { in setApdu()86 mApdu = apdu; in setApdu()
159 byte[] apdu = new byte[len]; in getEncoded()160 apdu[OFFSET_CLA] = mCla; in getEncoded()161 apdu[OFFSET_INS] = mIns; in getEncoded()162 apdu[OFFSET_P1] = mP1; in getEncoded()163 apdu[OFFSET_P2] = mP2; in getEncoded()171 apdu[off++] = 0; in getEncoded()172 apdu[off++] = (byte) (mLc >> 8); in getEncoded()173 apdu[off++] = (byte) (mLc & 0xff); in getEncoded()174 System.arraycopy(mCdata, 0, apdu, off, mLc); in getEncoded()177 apdu[off++] = (byte) mLc; in getEncoded()[all …]
73 CommandApdu apdu = (CommandApdu) GET_ALL_CMD.clone(); in readAllAccessRules() local74 ResponseApdu response = send(apdu); in readAllAccessRules()105 apdu = (CommandApdu) GET_NEXT_CMD.clone(); in readAllAccessRules()106 apdu.setLe(le); in readAllAccessRules()108 response = send(apdu); in readAllAccessRules()134 CommandApdu apdu = (CommandApdu) GET_REFRESH_TAG.clone(); in readRefreshTag() local135 ResponseApdu response = send(apdu); in readRefreshTag()
26 String apdu = source.readString();28 return new CommandApdu(apdu, reachable);39 public CommandApdu(String apdu, boolean reachable) { in CommandApdu() argument40 mApdu = apdu; in CommandApdu()
349 public static CommandApdu buildCommandApdu(String apdu, boolean reachable) { in buildCommandApdu() argument350 return new CommandApdu(apdu, reachable); in buildCommandApdu()355 String apdu = String.format("00A40400%02X%s", aid.length() / 2, aid); in buildSelectApdu() local356 return new CommandApdu(apdu, reachable); in buildSelectApdu()
79 byte[] apdu = new byte[] {0x01, 0x02}; in settersAndGetters()95 mMessage.setApdu(apdu); in settersAndGetters()111 assertThat(mMessage.getApdu()).isEqualTo(apdu); in settersAndGetters()150 byte[] apdu = new byte[] {0x01, 0x02}; in writeAndRead()163 mMessage.setApdu(apdu); in writeAndRead()185 assertThat(msgFromInputStream.getApdu()).isEqualTo(apdu); in writeAndRead()198 byte[] apdu = new byte[] {0x01, 0x02}; in send()216 mMessage.setApdu(apdu); in send()
145 CommandApdu apdu = CommandApdu.builder(0, 1, 2, 3) in testExtendedLe() local147 assertThat(apdu.getEncoded()).isEqualTo(sHex.decode("00010203000000")); in testExtendedLe()149 apdu = CommandApdu.builder(0, 1, 2, 3) in testExtendedLe()151 assertThat(apdu.getEncoded()).isEqualTo(sHex.decode("00010203001234")); in testExtendedLe()
98 for (CommandApdu apdu : mApdus) { in onTagDiscovered()100 sb.append(apdu.getApdu()).append("\n\n"); in onTagDiscovered()102 byte[] response = isoDep.transceive(HceUtils.hexStringToBytes(apdu.getApdu())); in onTagDiscovered()
279 public void setApdu(byte[] apdu) { in setApdu() argument280 this.mApdu = apdu; in setApdu()287 public void setApdu7816(byte[] apdu) { in setApdu7816() argument288 this.mApdu7816 = apdu; in setApdu7816()
1dictionary=main:lv,locale=lv,description=Latviešu,date=1393228136, ...