Home
last modified time | relevance | path

Searched refs:apdu (Results 101 – 125 of 579) sorted by relevance

12345678910>>...24

/dports/net/yazproxy/yazproxy-1.3.9/src/
H A Dt-server.cpp72 Z_APDU *apdu = 0; in handle() local
76 apdu = zget_APDU(odr, Z_APDU_initResponse); in handle()
78 ODR_MASK_SET(apdu->u.initResponse->options, Z_Options_search); in handle()
79 ODR_MASK_SET(apdu->u.initResponse->options, Z_Options_present); in handle()
85 apdu = zget_APDU(odr, Z_APDU_searchResponse); in handle()
90 apdu = zget_APDU(odr, Z_APDU_close); in handle()
94 if (apdu) in handle()
95 m_output = new GDU(apdu); in handle()
111 void recv_GDU(Z_GDU *apdu, int len);
169 void MyServer::recv_GDU(Z_GDU *apdu, int len) in recv_GDU() argument
[all …]
/dports/security/libfido2/libfido2-1.9.0/src/
H A Dnfc_linux.c49 memset(&apdu, 0, sizeof(apdu)); in tx_short_apdu()
51 apdu[1] = h->ins; in tx_short_apdu()
52 apdu[2] = h->p1; in tx_short_apdu()
53 apdu[3] = h->p2; in tx_short_apdu()
54 apdu[4] = payload_len; in tx_short_apdu()
76 explicit_bzero(apdu, sizeof(apdu)); in tx_short_apdu()
145 if (apdu != NULL) { in fido_nfc_tx()
208 uint8_t apdu[5]; in tx_get_response() local
210 memset(apdu, 0, sizeof(apdu)); in tx_get_response()
212 apdu[4] = count; in tx_get_response()
[all …]
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/device/fido/
H A Dvirtual_u2f_device.cc36 apdu::ApduResponse::Status status) { in ErrorStatus()
37 return apdu::ApduResponse(std::vector<uint8_t>(), status) in ErrorStatus()
70 auto parsed_command = apdu::ApduCommand::CreateFromMessage(command); in DeviceTransact()
84 auto response = apdu::ApduResponse(std::move(nonsense), in DeviceTransact()
130 return ErrorStatus(apdu::ApduResponse::Status::SW_WRONG_LENGTH); in DoRegister()
197 return apdu::ApduResponse(std::move(response), in DoRegister()
198 apdu::ApduResponse::Status::SW_NO_ERROR) in DoRegister()
210 return ErrorStatus(apdu::ApduResponse::Status::SW_WRONG_DATA); in DoSign()
218 return ErrorStatus(apdu::ApduResponse::Status::SW_WRONG_LENGTH); in DoSign()
229 return ErrorStatus(apdu::ApduResponse::Status::SW_WRONG_DATA); in DoSign()
[all …]
/dports/security/opensc/OpenSC-0.22.0/src/libopensc/
H A Diasecc-sm.c103 rv = sc_check_sw(card, rapdu->apdu.sw1, rapdu->apdu.sw2); in iasecc_sm_transmit_apdus()
182 apdu.data = sbuf; in iasecc_sm_external_authentication()
184 apdu.lc = offs; in iasecc_sm_external_authentication()
188 rv = sc_check_sw(card, apdu.sw1, apdu.sw2); in iasecc_sm_external_authentication()
252 apdu.data = sbuf; in iasecc_sm_se_mutual_authentication()
254 apdu.lc = offs; in iasecc_sm_se_mutual_authentication()
258 rv = sc_check_sw(card, apdu.sw1, apdu.sw2); in iasecc_sm_se_mutual_authentication()
352 struct sc_apdu *apdu = &rapdu->apdu; in iasecc_sm_cmd() local
356 apdu->ins, apdu->resplen); in iasecc_sm_cmd()
357 if (!apdu->ins) in iasecc_sm_cmd()
[all …]
H A Dcard-mcrd.c189 sc_apdu_t apdu; in mcrd_delete_ref_to_authkey() local
618 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in do_select()
623 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in do_select()
643 process_fcp(card, *file, apdu.resp + 4, apdu.resp[3]); in do_select()
645 process_fcp(card, *file, apdu.resp + 2, apdu.resp[1]); in do_select()
653 if (apdu.resp[1] <= apdu.resplen) in do_select()
654 process_fcp(card, *file, apdu.resp + 2, apdu.resp[1]); in do_select()
1028 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in mcrd_set_security_env()
1039 return sc_check_sw(card, apdu.sw1, apdu.sw2); in mcrd_set_security_env()
1077 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in mcrd_compute_signature()
[all …]
H A Dcard-cac.c302 apdu.le = 0; in cac_apdu_io()
308 apdu.flags, apdu.le, apdu.resplen, apdu.resp); in cac_apdu_io()
315 r, apdu.resplen, apdu.sw1, apdu.sw2); in cac_apdu_io()
321 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in cac_apdu_io()
1126 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in cac_select_file_by_type()
1140 apdu.p1 = 2; in cac_select_file_by_type()
1169 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in cac_select_file_by_type()
1170 if (apdu.sw1 == 0x6A && apdu.sw2 == 0x86) { in cac_select_file_by_type()
1174 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in cac_select_file_by_type()
1181 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in cac_select_file_by_type()
[all …]
H A Dcard-itacns.c242 sc_apdu_t apdu; in itacns_restore_security_env() local
258 apdu.resp = rbuf; in itacns_restore_security_env()
259 apdu.resplen = sizeof(rbuf); in itacns_restore_security_env()
260 apdu.le = 0; in itacns_restore_security_env()
265 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in itacns_restore_security_env()
284 sc_apdu_t apdu; in itacns_set_security_env() local
310 apdu.p2 = 0xB8; in itacns_set_security_env()
313 apdu.p2 = 0xB6; in itacns_set_security_env()
325 apdu.lc = apdu.datalen = 3; in itacns_set_security_env()
326 apdu.data = data; in itacns_set_security_env()
[all …]
H A Dcard.c59 memset(apdu, 0, sizeof(*apdu)); in sc_format_apdu()
79 apdu->lc = apdu->datalen; in sc_format_apdu_cse_lc_le()
81 apdu->le = apdu->resplen; in sc_format_apdu_cse_lc_le()
82 if (apdu->resplen && !apdu->datalen) in sc_format_apdu_cse_lc_le()
84 if (!apdu->resplen && apdu->datalen) in sc_format_apdu_cse_lc_le()
86 if (apdu->resplen && apdu->datalen) in sc_format_apdu_cse_lc_le()
91 apdu->lc = apdu->datalen; in sc_format_apdu_cse_lc_le()
93 apdu->le = apdu->resplen; in sc_format_apdu_cse_lc_le()
96 if (apdu->resplen && !apdu->datalen) in sc_format_apdu_cse_lc_le()
100 if (apdu->resplen && apdu->datalen) in sc_format_apdu_cse_lc_le()
[all …]
H A Dcard-openpgp.c1564 apdu.lc = 2; in pgp_get_pubkey()
1574 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in pgp_get_pubkey()
1732 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in pgp_get_data()
1790 apdu.datalen = apdu.lc = plen; in gnuk_write_certificate()
1798 apdu.datalen = apdu.lc = plen; in gnuk_write_certificate()
1856 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in pgp_put_data_plain()
2168 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in pgp_set_MSE()
2227 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in pgp_compute_signature()
2369 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in pgp_decipher()
2953 apdu.resp = calloc(apdu.resplen, 1); in pgp_gen_key()
[all …]
H A Dreader-openct.c316 rsize = rbuflen = apdu->resplen + 2; in openct_reader_transmit()
328 rbuf, &rsize, apdu->control); in openct_reader_transmit()
365 if (info->apdu == NULL) { in openct_reader_perform_verify()
370 buf[j++] = info->apdu->cla; in openct_reader_perform_verify()
371 buf[j++] = info->apdu->ins; in openct_reader_perform_verify()
372 buf[j++] = info->apdu->p1; in openct_reader_perform_verify()
373 buf[j++] = info->apdu->p2; in openct_reader_perform_verify()
375 if (info->apdu->lc) { in openct_reader_perform_verify()
376 size_t len = info->apdu->lc; in openct_reader_perform_verify()
407 info->apdu->sw1 = buf[0]; in openct_reader_perform_verify()
[all …]
/dports/net/google-cloud-sdk/google-cloud-sdk/lib/third_party/pyu2f/
H A Dhardware.py22 from pyu2f import apdu
61 response = self.InternalSendApdu(apdu.CommandApdu(
63 apdu.CMD_REGISTER,
108 response = self.InternalSendApdu(apdu.CommandApdu(
109 0, apdu.CMD_AUTH, control, 0x00, body))
126 response = self.InternalSendApdu(apdu.CommandApdu(
127 0, apdu.CMD_VERSION, 0x00, 0x00))
160 response = apdu.ResponseApdu(self.transport.SendMsgBytes(
168 response = apdu.ResponseApdu(self.transport.SendMsgBytes(
/dports/net/google-cloud-sdk/google-cloud-sdk/platform/bq/third_party/pyu2f/
H A Dhardware.py23 from pyu2f import apdu
62 response = self.InternalSendApdu(apdu.CommandApdu(
64 apdu.CMD_REGISTER,
109 response = self.InternalSendApdu(apdu.CommandApdu(
110 0, apdu.CMD_AUTH, control, 0x00, body))
127 response = self.InternalSendApdu(apdu.CommandApdu(
128 0, apdu.CMD_VERSION, 0x00, 0x00))
161 response = apdu.ResponseApdu(self.transport.SendMsgBytes(
169 response = apdu.ResponseApdu(self.transport.SendMsgBytes(
/dports/net/google-cloud-sdk/google-cloud-sdk/platform/gsutil/third_party/pyu2f/pyu2f/
H A Dhardware.py22 from pyu2f import apdu
61 response = self.InternalSendApdu(apdu.CommandApdu(
63 apdu.CMD_REGISTER,
108 response = self.InternalSendApdu(apdu.CommandApdu(
109 0, apdu.CMD_AUTH, control, 0x00, body))
126 response = self.InternalSendApdu(apdu.CommandApdu(
127 0, apdu.CMD_VERSION, 0x00, 0x00))
160 response = apdu.ResponseApdu(self.transport.SendMsgBytes(
168 response = apdu.ResponseApdu(self.transport.SendMsgBytes(
/dports/net/py-pyu2f/pyu2f-0.1.5/pyu2f/
H A Dhardware.py22 from pyu2f import apdu
61 response = self.InternalSendApdu(apdu.CommandApdu(
63 apdu.CMD_REGISTER,
108 response = self.InternalSendApdu(apdu.CommandApdu(
109 0, apdu.CMD_AUTH, control, 0x00, body))
126 response = self.InternalSendApdu(apdu.CommandApdu(
127 0, apdu.CMD_VERSION, 0x00, 0x00))
160 response = apdu.ResponseApdu(self.transport.SendMsgBytes(
168 response = apdu.ResponseApdu(self.transport.SendMsgBytes(
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/third_party/gsutil/third_party/pyu2f/pyu2f/
H A Dhardware.py22 from pyu2f import apdu
61 response = self.InternalSendApdu(apdu.CommandApdu(
63 apdu.CMD_REGISTER,
108 response = self.InternalSendApdu(apdu.CommandApdu(
109 0, apdu.CMD_AUTH, control, 0x00, body))
126 response = self.InternalSendApdu(apdu.CommandApdu(
127 0, apdu.CMD_VERSION, 0x00, 0x00))
160 response = apdu.ResponseApdu(self.transport.SendMsgBytes(
168 response = apdu.ResponseApdu(self.transport.SendMsgBytes(
/dports/deskutils/ausweisapp2/AusweisApp2-1.22.2/test/qt/card/base/
H A Dtest_ResponseApdu.cpp56 QFETCH(QByteArray, apdu); in testRetryCounter()
83 ResponseApdu apdu = ResponseApdu(statusCode); in testReturnCode() local
84 QCOMPARE(apdu.getReturnCode(), statusCode); in testReturnCode()
85 QCOMPARE(apdu.getBuffer(), bufferOut); in testReturnCode()
87 apdu = ResponseApdu(bufferIn); in testReturnCode()
88 QCOMPARE(apdu.getReturnCode(), statusCode); in testReturnCode()
89 QCOMPARE(apdu.getBuffer(), bufferIn); in testReturnCode()
113 ResponseApdu apdu = ResponseApdu(statCode); in testCardReturnCode() local
114 QCOMPARE(apdu.getCardReturnCode(), cardReturnCode); in testCardReturnCode()
155 ResponseApdu apdu = ResponseApdu(buffer); in testGetSW1() local
[all …]
/dports/net/yaz/yaz-5.31.1/client/
H A Dadmin.c48 Z_APDU *apdu = zget_APDU(out, Z_APDU_extendedServicesRequest ); in sendAdminES() local
125 send_apdu(apdu); in sendAdminES()
189 Z_APDU *apdu = 0; in cmd_adm_import() local
225 if (!apdu) in cmd_adm_import()
228 segment = apdu->u.segmentRequest; in cmd_adm_import()
256 send_apdu (apdu); in cmd_adm_import()
257 apdu = 0; in cmd_adm_import()
262 if (apdu) in cmd_adm_import()
263 send_apdu(apdu); in cmd_adm_import()
264 apdu = zget_APDU(out, Z_APDU_segmentRequest); in cmd_adm_import()
[all …]
/dports/net/yaz++/yazpp-1.6.1/include/yazpp/
H A Dz-assoc.h68 int encode_GDU(Z_GDU *apdu, char **buf, int *len);
70 int send_Z_PDU(Z_APDU *apdu, int *len);
71 int send_GDU(Z_GDU *apdu, int *len);
73 virtual void recv_GDU(Z_GDU *apdu, int len) = 0;
85 void get_otherInfoAPDU(Z_APDU *apdu, Z_OtherInformation ***oip);
90 Z_APDU *apdu,
97 Z_ReferenceId **get_referenceIdP(Z_APDU *apdu);
/dports/security/py-btchip-python/btchip-python-0.1.32/btchip/
H A DbtchipComm.py54 def exchange(self, apdu, timeout=20000): argument
73 def exchange(self, apdu, timeout=20000): argument
75 print("=> %s" % hexlify(apdu))
77 apdu = wrapCommandAPDU(0x0101, apdu, 64)
78 padSize = len(apdu) % 64
79 tmp = apdu
157 def exchange(self, apdu, timeout=20000): argument
159 print("=> %s" % hexlify(apdu))
188 def exchange(self, apdu, timeout=20000): argument
190 print("=> %s" % hexlify(apdu))
[all …]
/dports/net/yaz++/yazpp-1.6.1/zlint/
H A Dtest-search-01.cpp70 Z_APDU *apdu = z->create_Z_PDU(Z_APDU_initRequest); in init() local
71 Z_InitRequest *init = apdu->u.initRequest; in init()
80 int r = z->send_Z_PDU(apdu, &len); in init()
95 sr = apdu->u.searchRequest; in sendTest()
117 z->send_Z_PDU(apdu, &len); in sendTest()
130 Z_PresentRequest *pr = apdu->u.presentRequest; in sendTest()
139 z->send_Z_PDU(apdu, &len); in sendTest()
144 Z_APDU *apdu = zget_APDU(z->odr_encode(), Z_APDU_sortRequest); in sendTest() local
145 if (apdu && try_sort[m_sort_no]) in sendTest()
151 Z_SortRequest *sr = apdu->u.sortRequest; in sendTest()
[all …]
/dports/security/cardpeek/cardpeek-0.8.4/
H A Diso7816.c25 int iso7816_describe_apdu(apdu_descriptor_t *ad, const bytestring_t* apdu) in iso7816_describe_apdu() argument
27 unsigned apdu_len = bytestring_get_size(apdu); in iso7816_describe_apdu()
41 bytestring_get_element(&c,apdu,4); in iso7816_describe_apdu()
61 bytestring_get_element(&c,apdu,ad->lc+5); in iso7816_describe_apdu()
78 bytestring_get_element(&c,apdu,5); in iso7816_describe_apdu()
80 bytestring_get_element(&c,apdu,6); in iso7816_describe_apdu()
86 bytestring_get_element(&c,apdu,5); in iso7816_describe_apdu()
88 bytestring_get_element(&c,apdu,6); in iso7816_describe_apdu()
97 bytestring_get_element(&c,apdu,ad->lc+7); in iso7816_describe_apdu()
102 bytestring_get_element(&c,apdu,ad->lc+8); in iso7816_describe_apdu()
[all …]
/dports/net-p2p/go-ethereum/go-ethereum-1.10.14/vendor/github.com/status-im/keycard-go/vendor/github.com/ethereum/go-ethereum/accounts/usbwallet/
H A Dledger.go401 apdu := make([]byte, 2, 7+len(data))
403 binary.BigEndian.PutUint16(apdu, uint16(5+len(data)))
404 apdu = append(apdu, []byte{0xe0, byte(opcode), byte(p1), byte(p2), byte(len(data))}...)
405 apdu = append(apdu, data...)
412 for i := 0; len(apdu) > 0; i++ {
417 if len(apdu) > space {
418 chunk = append(chunk, apdu[:space]...)
419 apdu = apdu[space:]
421 chunk = append(chunk, apdu...)
422 apdu = nil
/dports/security/gnupg/gnupg-2.3.3/tools/
H A Dcard-yubikey.c229 unsigned char apdu[100]; in yk_enable_disable() local
236 apdu[apdulen++] = 0x00; in yk_enable_disable()
237 apdu[apdulen++] = 0x1c; /* Write Config instruction. */ in yk_enable_disable()
238 apdu[apdulen++] = 0x00; in yk_enable_disable()
239 apdu[apdulen++] = 0x00; in yk_enable_disable()
240 apdu[apdulen++] = 0x00; /* Lc will be fixed up later. */ in yk_enable_disable()
241 apdu[apdulen++] = 0x00; /* Length of data will also be fixed up later. */ in yk_enable_disable()
278 if (apdulen + 2 > sizeof apdu) in yk_enable_disable()
291 apdu[4] = apdulen - 6 + 1; in yk_enable_disable()
292 apdu[5] = apdulen - 6; in yk_enable_disable()
[all …]
/dports/security/opensc/OpenSC-0.22.0/src/tools/
H A Dgoid-tool.c72 sc_apdu_t apdu; in soc_info() local
118 apdu.cla = 0x80; in soc_info()
144 apdu.resp, apdu.resplen, NULL, NULL) != SC_SUCCESS) { in soc_info()
238 sc_apdu_t apdu; in soc_verify() local
244 sc_check_sw(card, apdu.sw1, apdu.sw2), in soc_verify()
255 sc_apdu_t apdu; in soc_reset() local
262 sc_check_sw(card, apdu.sw1, apdu.sw2), in soc_reset()
274 sc_apdu_t apdu; in soc_change() local
279 while (apdu.sw1 == 0x91 && apdu.sw2 == 0x00) { in soc_change()
295 sc_check_sw(card, apdu.sw1, apdu.sw2), in soc_change()
[all …]
/dports/security/gnupg1/gnupg-1.4.23/g10/
H A Dapdu.c1929 apdu[1] = command; in check_ccid_keypad()
1931 apdu, sizeof apdu, in check_ccid_keypad()
2913 unsigned char *apdu; in send_le() local
2982 apdu = apdu_buffer; in send_le()
3166 apdu[apdulen++] = 0; in send_le()
3167 apdu[apdulen++] = 0; in send_le()
3340 unsigned char *apdu; in apdu_send_direct() local
3357 apdu = apdu_buffer; in apdu_send_direct()
3365 class = apdulen? *apdu : 0; in apdu_send_direct()
3447 apdu[apdulen++] = 0; in apdu_send_direct()
[all …]

12345678910>>...24