Home
last modified time | relevance | path

Searched refs:apdu (Results 51 – 75 of 579) sorted by relevance

12345678910>>...24

/dports/security/opensc/OpenSC-0.22.0/src/libopensc/
H A Dcard-gemsafeV1.c134 apdu.data = aid; in gp_select_applet()
142 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in gp_select_applet()
425 return sc_check_sw(card, apdu.sw1, apdu.sw2); in gemsafe_restore_security_env()
489 apdu.data = sbuf; in gemsafe_compute_signature()
495 if (apdu.sw1 == 0x90 && apdu.sw2 == 0x00) { in gemsafe_compute_signature()
509 if(apdu.sw1 != 0x90 || apdu.sw2 != 0x00) in gemsafe_compute_signature()
512 len = apdu.resplen > outlen ? outlen : apdu.resplen; in gemsafe_compute_signature()
533 apdu.cla |= 0x80; in gemsafe_decipher()
534 apdu.resp = rbuf; in gemsafe_decipher()
543 if (apdu.sw1 == 0x90 && apdu.sw2 == 0x00) { in gemsafe_decipher()
[all …]
H A Dcard-cac1.c74 sc_apdu_t apdu; in cac_cac1_get_certificate() local
84 apdu.le = len; in cac_cac1_get_certificate()
95 if (apdu.sw1 != 0x63 || apdu.sw2 < 1) { in cac_cac1_get_certificate()
97 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in cac_cac1_get_certificate()
280 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in cac_select_file_by_type()
294 apdu.p1 = 2; in cac_select_file_by_type()
299 apdu.p1 = 4; in cac_select_file_by_type()
317 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in cac_select_file_by_type()
318 if (apdu.sw1 == 0x6A && apdu.sw2 == 0x86) { in cac_select_file_by_type()
322 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in cac_select_file_by_type()
[all …]
H A Dcard-miocos.c206 sc_apdu_t apdu; in miocos_create_file() local
221 if (apdu.sw1 == 0x6A && apdu.sw2 == 0x89) in miocos_create_file()
223 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in miocos_create_file()
321 sc_apdu_t apdu; in miocos_get_acl() local
335 return sc_check_sw(card, apdu.sw1, apdu.sw2); in miocos_get_acl()
396 sc_apdu_t apdu; in miocos_list_files() local
406 return sc_check_sw(card, apdu.sw1, apdu.sw2); in miocos_list_files()
413 sc_apdu_t apdu; in miocos_delete_file() local
428 return sc_check_sw(card, apdu.sw1, apdu.sw2); in miocos_delete_file()
434 sc_apdu_t apdu; in miocos_create_ac() local
[all …]
H A Dcard-oberthur.c587 rv = sc_check_sw(card, apdu.sw1, apdu.sw2); in auth_list_files()
644 if (apdu.sw1==0x6A && apdu.sw2==0x82) { in auth_delete_file()
682 rv = sc_check_sw(card, apdu.sw1, apdu.sw2); in auth_delete_file()
964 rv = sc_check_sw(card, apdu.sw1, apdu.sw2); in auth_create_file()
1075 rv = sc_check_sw(card, apdu.sw1, apdu.sw2); in auth_set_security_env()
1124 rv = sc_check_sw(card, apdu.sw1, apdu.sw2); in auth_compute_signature()
1134 memcpy(out, apdu.resp, apdu.resplen); in auth_compute_signature()
1503 memcpy(out, apdu.resp, apdu.resplen); in auth_read_component()
1587 pin_cmd.apdu = &apdu; in auth_pin_verify_pinpad()
1708 pin_cmd.apdu = &apdu; in auth_pin_change_pinpad()
[all …]
H A Dcard-setcos.c124 apdu.le = 5; in setcos_match_card()
126 if (i == 0 && apdu.sw1 == 0x90 && apdu.sw2 == 0x00 && apdu.resplen == 5) { in setcos_match_card()
647 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in setcos_set_security_env2()
660 return sc_check_sw(card, apdu.sw1, apdu.sw2); in setcos_set_security_env2()
958 return sc_check_sw(card, apdu.sw1, apdu.sw2); in setcos_list_files()
989 memset(&apdu, 0, sizeof(apdu)); in setcos_putdata()
1002 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in setcos_putdata()
1016 memset(&apdu, 0, sizeof(apdu)); in setcos_getdata()
1033 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in setcos_getdata()
1089 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in setcos_generate_store_key()
[all …]
H A Dcard-jpki.c146 sc_apdu_t apdu; in jpki_select_file() local
167 apdu.p1 = 2; in jpki_select_file()
170 apdu.p1 = 4; in jpki_select_file()
175 apdu.p2 = 0x0C; in jpki_select_file()
182 rc = sc_check_sw(card, apdu.sw1, apdu.sw2); in jpki_select_file()
214 sc_apdu_t apdu; in jpki_pin_cmd() local
251 rc = sc_check_sw(card, apdu.sw1, apdu.sw2); in jpki_pin_cmd()
327 sc_apdu_t apdu; in jpki_compute_signature() local
333 apdu.cla = 0x80; in jpki_compute_signature()
339 apdu.le = 0; in jpki_compute_signature()
[all …]
H A Dcard-belpic.c169 sc_apdu_t apdu; in get_carddata() local
190 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in get_carddata()
250 sc_apdu_t apdu; in belpic_select_file() local
266 apdu.le = 0; in belpic_select_file()
272 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in belpic_select_file()
337 sc_apdu_t apdu; in belpic_set_security_env() local
348 apdu.p1 = 0x41; in belpic_set_security_env()
349 apdu.p2 = 0xB6; in belpic_set_security_env()
365 apdu.lc = 5; in belpic_set_security_env()
371 apdu.le = 0; in belpic_set_security_env()
[all …]
H A Dcard-authentic.c369 rv = sc_check_sw(card, apdu.sw1, apdu.sw2); in authentic_get_cplc()
400 rv = sc_check_sw(card, apdu.sw1, apdu.sw2); in authentic_select_aid()
406 memcpy(out, apdu.resp, apdu.resplen); in authentic_select_aid()
638 rv = sc_check_sw(card, apdu.sw1, apdu.sw2); in authentic_select_mf()
822 rv = sc_check_sw(card, apdu.sw1, apdu.sw2); in authentic_select_file()
868 rv = sc_check_sw(card, apdu.sw1, apdu.sw2); in authentic_read_binary()
913 rv = sc_check_sw(card, apdu.sw1, apdu.sw2); in authentic_write_binary()
956 rv = sc_check_sw(card, apdu.sw1, apdu.sw2); in authentic_update_binary()
1139 rv = sc_check_sw(card, apdu.sw1, apdu.sw2); in authentic_create_file()
1273 rv = sc_check_sw(card, apdu.sw1, apdu.sw2); in authentic_chv_verify()
[all …]
H A Dcard-isoApplet.c130 rv = sc_check_sw(card, apdu.sw1, apdu.sw2); in isoApplet_select_applet()
585 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in isoApplet_ctl_generate_key()
624 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in isoApplet_ctl_generate_key()
625 if(apdu.sw1 == 0x6A && apdu.sw2 == 0x81) in isoApplet_ctl_generate_key()
821 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in isoApplet_put_data_prkey_rsa()
822 if(apdu.sw1 == 0x6A && apdu.sw2 == 0x81) in isoApplet_put_data_prkey_rsa()
830 if(apdu.sw1 == 0x69 && apdu.sw2 == 0x00) in isoApplet_put_data_prkey_rsa()
944 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in isoApplet_put_data_prkey_ec()
945 if(apdu.sw1 == 0x6D && apdu.sw2 == 0x00) in isoApplet_put_data_prkey_ec()
1022 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in isoApplet_ctl_import_key()
[all …]
H A Dcard-jcop.c659 apdu.le = 0; in jcop_set_security_env()
680 apdu.lc = r; in jcop_set_security_env()
690 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in jcop_set_security_env()
739 if (apdu.sw1 == 0x90 && apdu.sw2 == 0x00) { in jcop_compute_signature()
790 if (apdu.sw1 == 0x90 && apdu.sw2 == 0x00) { in jcop_decipher()
801 sc_apdu_t apdu; in jcop_generate_key() local
840 apdu.lc = r; in jcop_generate_key()
850 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in jcop_generate_key()
859 apdu.le = 256; in jcop_generate_key()
860 apdu.resp=rbuf; in jcop_generate_key()
[all …]
H A Dcard-edo.c144 struct sc_apdu apdu; in edo_select_mf() local
147 LOG_TEST_RET(card->ctx, sc_check_sw(card, apdu.sw1, apdu.sw2), "SW check failed"); in edo_select_mf()
148 buff->len = apdu.resplen; in edo_select_mf()
155 struct sc_apdu apdu; in edo_select_df() local
158 LOG_TEST_RET(card->ctx, sc_check_sw(card, apdu.sw1, apdu.sw2), "SW check failed"); in edo_select_df()
159 buff->len = apdu.resplen; in edo_select_df()
166 struct sc_apdu apdu; in edo_select_ef() local
170 buff->len = apdu.resplen; in edo_select_ef()
177 struct sc_apdu apdu; in edo_select_name() local
181 buff->len = apdu.resplen; in edo_select_name()
[all …]
H A Dcard-gids.c243 apdu.lc = 04; in gids_get_DO()
248 apdu.le = 256; in gids_get_DO()
286 apdu.lc = apdu.datalen; in gids_put_DO()
814 apdu.lc = r; in gids_set_security_env()
828 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in gids_set_security_env()
841 return sc_check_sw(card, apdu.sw1, apdu.sw2); in gids_set_security_env()
885 if (apdu.sw1 == 0x90 && apdu.sw2 == 0x00) in gids_decipher()
1274 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in gids_perform_create_keyfile()
1283 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in gids_perform_create_keyfile()
1450 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in gids_generate_key()
[all …]
H A Dcard-iasecc.c303 rv = sc_check_sw(card, apdu.sw1, apdu.sw2); in iasecc_select_mf()
366 rv = sc_check_sw(card, apdu.sw1, apdu.sw2); in iasecc_select_aid()
371 memcpy(out, apdu.resp, apdu.resplen); in iasecc_select_aid()
750 rv = sc_check_sw(card, apdu.sw1, apdu.sw2); in iasecc_read_binary()
888 if (apdu->resplen < apdu->datalen + 16) in iasecc_emulate_fcp()
1459 rv = sc_check_sw(card, apdu.sw1, apdu.sw2); in iasecc_create_file()
1569 rv = sc_check_sw(card, apdu.sw1, apdu.sw2); in iasecc_delete_file()
1736 apdu.lc = apdu.datalen; in iasecc_se_get_info()
1923 rv = sc_check_sw(card, apdu.sw1, apdu.sw2); in iasecc_set_security_env()
3360 memcpy(out, apdu.resp, apdu.resplen); in iasecc_compute_signature_dst()
[all …]
H A Dcard-masktech.c175 sc_apdu_t apdu; in masktech_decipher() local
186 apdu.resp = rbuf; in masktech_decipher()
189 apdu.le = 65536; in masktech_decipher()
191 apdu.data = crgram; in masktech_decipher()
192 apdu.lc = crgram_len; in masktech_decipher()
193 apdu.datalen = crgram_len; in masktech_decipher()
197 if (apdu.sw1 == 0x90 && apdu.sw2 == 0x00) { in masktech_decipher()
198 size_t len = apdu.resplen > outlen ? outlen : apdu.resplen; in masktech_decipher()
307 struct sc_apdu apdu; in masktech_get_serialnr() local
318 apdu.resp = apdu_resp; in masktech_get_serialnr()
[all …]
H A Dcard-idprime.c248 apdu.resp = rbuf; in idprime_init()
250 apdu.le = rbuflen; in idprime_init()
716 apdu.resp = rbuf; in idprime_compute_signature()
720 apdu.data = sbuf; in idprime_compute_signature()
736 apdu.resp = out; in idprime_compute_signature()
738 apdu.le = outlen; in idprime_compute_signature()
745 apdu.data = NULL; in idprime_compute_signature()
747 apdu.lc = 0; in idprime_compute_signature()
751 if (apdu.sw1 == 0x90 && apdu.sw2 == 0x00) in idprime_compute_signature()
754 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in idprime_compute_signature()
[all …]
H A Dcard-dnie.c660 if (apdu.sw1 != 0x90 || apdu.sw2 != 0x00) in dnie_get_serialnr()
804 if (!apdu) in dnie_sm_get_wrapped_apdu()
822 free(apdu); in dnie_sm_get_wrapped_apdu()
1032 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in dnie_fill_cache()
1174 sc_check_sw(card, apdu.sw1, apdu.sw2)); in dnie_compose_and_send_apdu()
1178 res = sc_check_sw(card, apdu.sw1, apdu.sw2); in dnie_compose_and_send_apdu()
1182 if ((apdu.resplen < 2) || (apdu.resp[0] == 0x00)) { in dnie_compose_and_send_apdu()
1518 result = sc_check_sw(card, apdu.sw1, apdu.sw2); in dnie_set_security_env()
1583 result = sc_check_sw(card, apdu.sw1, apdu.sw2); in dnie_decipher()
1586 len = apdu.resplen > outlen ? outlen : apdu.resplen; in dnie_decipher()
[all …]
/dports/security/opensc/OpenSC-0.22.0/src/sm/
H A Dsm-iso.c271 p[2] = apdu->p1; in format_head()
272 p[3] = apdu->p2; in format_head()
354 r = format_data(card, ctx, 0, apdu->data, apdu->datalen, in sm_encrypt()
357 r = format_data(card, ctx, 1, apdu->data, apdu->datalen, in sm_encrypt()
380 r = format_data(card, ctx, 0, apdu->data, apdu->datalen, in sm_encrypt()
383 r = format_data(card, ctx, 1, apdu->data, apdu->datalen, in sm_encrypt()
411 r = format_data(card, ctx, 0, apdu->data, apdu->datalen, in sm_encrypt()
414 r = format_data(card, ctx, 1, apdu->data, apdu->datalen, in sm_encrypt()
581 if (apdu->resplen < (size_t) r || (r && !apdu->resp)) { in sm_decrypt()
611 apdu->sw1, apdu->sw2); in sm_decrypt()
[all …]
/dports/net/yaz++/yazpp-1.6.1/src/
H A Dyaz-ir-assoc.cpp145 if (apdu->which == Z_GDU_Z3950) in recv_GDU()
146 recv_Z_PDU(apdu->u.z3950, len); in recv_GDU()
152 m_lastReceived = apdu->which; in recv_Z_PDU()
153 switch (apdu->which) in recv_Z_PDU()
224 return send_Z_PDU(apdu, 0); in send_searchRequest()
270 return send_Z_PDU(apdu, 0); in send_presentRequest()
324 send_Z_PDU(apdu, 0); in recv_searchRequest()
330 send_Z_PDU(apdu, 0); in recv_presentRequest()
336 send_Z_PDU(apdu, 0); in recv_initRequest()
394 return send_Z_PDU(apdu, 0); in send_initRequest()
[all …]
/dports/security/yubico-piv-tool/yubico-piv-tool-2.2.0/lib/
H A Dykpiv.c317 memset(apdu.raw, 0, sizeof(apdu)); in _ykpiv_select_application()
733 memset(apdu.raw, 0, sizeof(apdu)); in _ykpiv_transfer_data()
775 memset(apdu.raw, 0, sizeof(apdu)); in _ykpiv_transfer_data()
1001 memset(apdu.raw, 0, sizeof(apdu)); in ykpiv_set_mgmkey2()
1224 memset(apdu.raw, 0, sizeof(apdu)); in _ykpiv_get_version()
1468 memset(apdu.raw, 0, sizeof(apdu)); in _ykpiv_verify()
1481 yc_memzero(&apdu, sizeof(apdu)); in _ykpiv_verify()
2056 memset(apdu.raw, 0, sizeof(apdu)); in ykpiv_auth_getchallenge()
2096 memset(apdu.raw, 0, sizeof(apdu)); in ykpiv_auth_verifyresponse()
2117 yc_memzero(&apdu, sizeof(apdu)); in ykpiv_auth_verifyresponse()
[all …]
/dports/net-p2p/go-ethereum/go-ethereum-1.10.14/vendor/github.com/status-im/keycard-go/globalplatform/
H A Dcommands.go50 func NewCommandSelect(aid []byte) *apdu.Command {
51 c := apdu.NewCommand(
68 c := apdu.NewCommand(
90 return apdu.NewCommand(
100 func NewCommandGetResponse(length uint8) *apdu.Command {
101 c := apdu.NewCommand(
115 func NewCommandDelete(aid []byte) *apdu.Command {
119 return apdu.NewCommand(
137 return apdu.NewCommand(
170 return apdu.NewCommand(
[all …]
/dports/net/yaz/yaz-5.31.1/src/
H A Dotherinfo.c20 switch (apdu->which) in yaz_oi_APDU()
23 *oip = &apdu->u.initRequest->otherInfo; in yaz_oi_APDU()
26 *oip = &apdu->u.searchRequest->otherInfo; in yaz_oi_APDU()
29 *oip = &apdu->u.presentRequest->otherInfo; in yaz_oi_APDU()
32 *oip = &apdu->u.sortRequest->otherInfo; in yaz_oi_APDU()
35 *oip = &apdu->u.scanRequest->otherInfo; in yaz_oi_APDU()
44 *oip = &apdu->u.initResponse->otherInfo; in yaz_oi_APDU()
47 *oip = &apdu->u.searchResponse->otherInfo; in yaz_oi_APDU()
50 *oip = &apdu->u.presentResponse->otherInfo; in yaz_oi_APDU()
53 *oip = &apdu->u.sortResponse->otherInfo; in yaz_oi_APDU()
[all …]
/dports/net/wireshark-lite/wireshark-3.6.1/epan/dissectors/asn1/acse/
H A Dacse.cnf11 ACSE-apdu
37 RLRE-apdu/_untag/reason rLRE_reason
38 RLRQ-apdu/_untag/reason rLRQ_reason
61 #.FN_BODY AARQ-apdu/_untag/aSO-context-name
66 #.FN_BODY AARE-apdu/_untag/aSO-context-name
71 #.FN_BODY ACRQ-apdu/_untag/aSO-context-name
115 #.FN_BODY AARQ-apdu
120 #.FN_BODY AARE-apdu
125 #.FN_BODY RLRQ-apdu
141 #.FN_BODY RLRE-apdu
[all …]
/dports/net/tshark-lite/wireshark-3.6.1/epan/dissectors/asn1/acse/
H A Dacse.cnf11 ACSE-apdu
37 RLRE-apdu/_untag/reason rLRE_reason
38 RLRQ-apdu/_untag/reason rLRQ_reason
61 #.FN_BODY AARQ-apdu/_untag/aSO-context-name
66 #.FN_BODY AARE-apdu/_untag/aSO-context-name
71 #.FN_BODY ACRQ-apdu/_untag/aSO-context-name
115 #.FN_BODY AARQ-apdu
120 #.FN_BODY AARE-apdu
125 #.FN_BODY RLRQ-apdu
141 #.FN_BODY RLRE-apdu
[all …]
/dports/net/wireshark/wireshark-3.6.1/epan/dissectors/asn1/acse/
H A Dacse.cnf11 ACSE-apdu
37 RLRE-apdu/_untag/reason rLRE_reason
38 RLRQ-apdu/_untag/reason rLRQ_reason
61 #.FN_BODY AARQ-apdu/_untag/aSO-context-name
66 #.FN_BODY AARE-apdu/_untag/aSO-context-name
71 #.FN_BODY ACRQ-apdu/_untag/aSO-context-name
115 #.FN_BODY AARQ-apdu
120 #.FN_BODY AARE-apdu
125 #.FN_BODY RLRQ-apdu
141 #.FN_BODY RLRE-apdu
[all …]
/dports/net/tshark/wireshark-3.6.1/epan/dissectors/asn1/acse/
H A Dacse.cnf11 ACSE-apdu
37 RLRE-apdu/_untag/reason rLRE_reason
38 RLRQ-apdu/_untag/reason rLRQ_reason
61 #.FN_BODY AARQ-apdu/_untag/aSO-context-name
66 #.FN_BODY AARE-apdu/_untag/aSO-context-name
71 #.FN_BODY ACRQ-apdu/_untag/aSO-context-name
115 #.FN_BODY AARQ-apdu
120 #.FN_BODY AARE-apdu
125 #.FN_BODY RLRQ-apdu
141 #.FN_BODY RLRE-apdu
[all …]

12345678910>>...24