/dports/security/libfido2/libfido2-1.9.0/src/ |
H A D | iso7816.c | 12 iso7816_apdu_t *apdu; in iso7816_new() local 18 apdu->alloc_len = alloc_len; in iso7816_new() 20 apdu->payload_ptr = apdu->payload; in iso7816_new() 21 apdu->header.cla = cla; in iso7816_new() 22 apdu->header.ins = ins; in iso7816_new() 23 apdu->header.p1 = p1; in iso7816_new() 27 return apdu; in iso7816_new() 33 iso7816_apdu_t *apdu; in iso7816_free() local 37 freezero(apdu, apdu->alloc_len); in iso7816_free() 47 apdu->payload_ptr += cnt; in iso7816_add() [all …]
|
/dports/security/opensc/OpenSC-0.22.0/src/libopensc/ |
H A D | card-sc-hsm.c | 349 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in sc_hsm_soc_change() 356 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in sc_hsm_soc_change() 383 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in sc_hsm_soc_change() 419 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in sc_hsm_soc_unblock() 426 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in sc_hsm_soc_unblock() 703 data->apdu = &apdu; in sc_hsm_pin_cmd() 713 data->apdu = &apdu; in sc_hsm_pin_cmd() 1288 apdu.lc = apdu.datalen; in sc_hsm_initialize() 1343 apdu.lc = apdu.datalen; in sc_hsm_import_dkek_share() 1506 apdu.lc = apdu.datalen; in sc_hsm_init_pin() [all …]
|
H A D | card-cardos.c | 134 if (apdu.sw1 != 0x90 || apdu.sw2 != 0x00) in cardos_match_card() 306 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in cardos_init() 997 apdu.lc = apdu.datalen = 6; in cardos_set_security_env() 1003 apdu.lc = apdu.datalen = 9; in cardos_set_security_env() 1010 apdu.lc = apdu.datalen = 9; in cardos_set_security_env() 1015 apdu.lc = apdu.datalen = 9; in cardos_set_security_env() 1021 apdu.lc = apdu.datalen = 3; in cardos_set_security_env() 1347 memset(&apdu, 0, sizeof(apdu)); in cardos_put_data_oci() 1373 memset(&apdu, 0, sizeof(apdu)); in cardos_put_data_seci() 1409 memset(&apdu, 0, sizeof(apdu)); in cardos_generate_key() [all …]
|
H A D | card-rtecp.c | 342 if (apdu.sw1 == 0x63 && apdu.sw2 == 0) in rtecp_verify() 349 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in rtecp_verify() 365 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in rtecp_logout() 427 if (apdu.sw1 == 0x90 && apdu.sw2 == 0x00) in rtecp_cipher() 435 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in rtecp_cipher() 547 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in rtecp_change_reference_data() 564 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in rtecp_reset_retry_counter() 584 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in rtecp_reset_retry_counter() 623 if (apdu.sw1 == 0x6A && apdu.sw2 == 0x82) in rtecp_list_files() 626 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in rtecp_list_files() [all …]
|
H A D | ctbcs.c | 35 memset(apdu, 0, sizeof(*apdu)); in ctbcs_init_apdu() 36 apdu->cse = cse; in ctbcs_init_apdu() 37 apdu->cla = 0x20; in ctbcs_init_apdu() 38 apdu->ins = ins; in ctbcs_init_apdu() 39 apdu->p1 = p1; in ctbcs_init_apdu() 40 apdu->p2 = p2; in ctbcs_init_apdu() 108 apdu->lc = apdu->datalen = count; in ctbcs_build_perform_verification_apdu() 178 apdu->lc = apdu->datalen = count; in ctbcs_build_modify_verification_apdu() 228 switch (((unsigned int) apdu.sw1 << 8) | apdu.sw2) { in ctbcs_pin_cmd() 252 data->apdu->sw1 = apdu.sw1; in ctbcs_pin_cmd() [all …]
|
H A D | card-westcos.c | 199 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in westcos_match_card() 611 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in westcos_create_file() 634 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in westcos_delete_file() 655 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in westcos_list_files() 798 data->apdu = &apdu; in westcos_pin_cmd() 833 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in sc_get_atr() 928 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in westcos_card_ctl() 956 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in westcos_card_ctl() 966 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in westcos_card_ctl() 1075 apdu.datalen = apdu.lc; in westcos_set_security_env() [all …]
|
H A D | card-flex.c | 536 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in select_file_id() 638 if (apdu.sw1 == 0x6A && apdu.sw2 == 0x82) in cryptoflex_list_files() 640 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in cryptoflex_list_files() 675 if (apdu.sw1 == 0x6A && apdu.sw2 == 0x83) in cyberflex_list_files() 677 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in cyberflex_list_files() 922 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in flex_create_file() 1027 apdu.le = apdu.resplen > 256 ? 256 : apdu.resplen; in cryptoflex_compute_signature() 1031 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in cryptoflex_compute_signature() 1072 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in cyberflex_compute_signature() 1147 r = sc_check_sw(card, apdu.sw1, apdu.sw2); in flex_generate_key() [all …]
|
H A D | card-epass2003.c | 205 if ( ((0x69 == apdu->sw1) && (0x85 == apdu->sw2)) || ((0x69 == apdu->sw1) && (0x88 == apdu->sw2))) in sc_transmit_apdu_t() 438 apdu.lc = apdu.datalen = sizeof(g_random); in gen_init_key() 440 apdu.le = apdu.resplen = 28; in gen_init_key() 546 apdu.lc = apdu.datalen = 16; in verify_init_key() 629 memcpy(pad, apdu->data, apdu->lc); in construct_data_tlv() 2234 apdu.lc = apdu.datalen = 2 + data.len; in internal_write_rsa_key_factor() 2324 apdu.lc = apdu.datalen = 10 + dataLen; in install_secret_key() 2433 apdu.lc = apdu.datalen = 7; in epass2003_gen_key() 2449 apdu.lc = apdu.datalen = 2; in epass2003_gen_key() 2716 apdu.lc = apdu.datalen = 8; in external_key_auth() [all …]
|
H A D | gp.c | 51 struct sc_apdu apdu; in gp_select_aid() local 55 apdu.lc = aid->len; in gp_select_aid() 56 apdu.data = aid->value; in gp_select_aid() 57 apdu.datalen = aid->len; in gp_select_aid() 63 rv = sc_check_sw(card, apdu.sw1, apdu.sw2); in gp_select_aid() 67 return apdu.resplen; in gp_select_aid() 98 struct sc_apdu apdu; in gp_get_cplc_data() local 103 apdu.resp = receive_buf; in gp_get_cplc_data() 104 apdu.resplen = len; in gp_get_cplc_data() 105 apdu.le = len; in gp_get_cplc_data() [all …]
|
H A D | reader-tr03119.c | 654 memset(&apdu, 0, sizeof(apdu)); in escape_perform_verify() 676 apdu.lc = apdu.datalen; in escape_perform_verify() 685 if (apdu.sw1 != 0x90 && apdu.sw2 != 0x00) { in escape_perform_verify() 713 memset(&apdu, 0, sizeof(apdu)); in escape_perform_pace() 735 apdu.lc = apdu.datalen; in escape_perform_pace() 744 if (apdu.sw1 != 0x90 && apdu.sw2 != 0x00) { in escape_perform_pace() 935 memset(&apdu, 0, sizeof(apdu)); in sc_detect_escape_cmds() 946 && apdu.sw1 == 0x90 && apdu.sw2 == 0x00 in sc_detect_escape_cmds() 976 && apdu.sw1 == 0x90 && apdu.sw2 == 0x00) { in sc_detect_escape_cmds() 990 && apdu.sw1 == 0x90 && apdu.sw2 == 0x00) { in sc_detect_escape_cmds() [all …]
|
/dports/java/openjdk11/jdk11u-jdk-11.0.13-8-1/src/java.smartcardio/share/classes/javax/smartcardio/ |
H A D | ResponseAPDU.java | 51 private byte[] apdu; field in ResponseAPDU 66 apdu = apdu.clone(); in ResponseAPDU() 67 check(apdu); in ResponseAPDU() 68 this.apdu = apdu; in ResponseAPDU() 72 if (apdu.length < 2) { in check() 86 return apdu.length - 2; in getNr() 108 return apdu[apdu.length - 2] & 0xff; in getSW1() 117 return apdu[apdu.length - 1] & 0xff; in getSW2() 138 return apdu.clone(); in getBytes() 167 return Arrays.equals(this.apdu, other.apdu); in equals() [all …]
|
/dports/java/openjdk13/jdk13u-jdk-13.0.10-1-1/src/java.smartcardio/share/classes/javax/smartcardio/ |
H A D | ResponseAPDU.java | 51 private byte[] apdu; field in ResponseAPDU 66 apdu = apdu.clone(); in ResponseAPDU() 67 check(apdu); in ResponseAPDU() 68 this.apdu = apdu; in ResponseAPDU() 72 if (apdu.length < 2) { in check() 86 return apdu.length - 2; in getNr() 108 return apdu[apdu.length - 2] & 0xff; in getSW1() 117 return apdu[apdu.length - 1] & 0xff; in getSW2() 138 return apdu.clone(); in getBytes() 167 return Arrays.equals(this.apdu, other.apdu); in equals() [all …]
|
/dports/java/openjdk8/jdk8u-jdk8u312-b07.1/jdk/src/share/classes/javax/smartcardio/ |
H A D | ResponseAPDU.java | 51 private byte[] apdu; field in ResponseAPDU 66 apdu = apdu.clone(); in ResponseAPDU() 67 check(apdu); in ResponseAPDU() 68 this.apdu = apdu; in ResponseAPDU() 72 if (apdu.length < 2) { in check() 86 return apdu.length - 2; in getNr() 108 return apdu[apdu.length - 2] & 0xff; in getSW1() 117 return apdu[apdu.length - 1] & 0xff; in getSW2() 138 return apdu.clone(); in getBytes() 167 return Arrays.equals(this.apdu, other.apdu); in equals() [all …]
|
/dports/java/openjdk12/openjdk-jdk12u-jdk-12.0.2-10-4/src/java.smartcardio/share/classes/javax/smartcardio/ |
H A D | ResponseAPDU.java | 51 private byte[] apdu; field in ResponseAPDU 66 apdu = apdu.clone(); in ResponseAPDU() 67 check(apdu); in ResponseAPDU() 68 this.apdu = apdu; in ResponseAPDU() 72 if (apdu.length < 2) { in check() 86 return apdu.length - 2; in getNr() 108 return apdu[apdu.length - 2] & 0xff; in getSW1() 117 return apdu[apdu.length - 1] & 0xff; in getSW2() 138 return apdu.clone(); in getBytes() 167 return Arrays.equals(this.apdu, other.apdu); in equals() [all …]
|
/dports/java/openjdk16/jdk16u-jdk-16.0.2-7-1/src/java.smartcardio/share/classes/javax/smartcardio/ |
H A D | ResponseAPDU.java | 51 private byte[] apdu; field in ResponseAPDU 66 apdu = apdu.clone(); in ResponseAPDU() 67 check(apdu); in ResponseAPDU() 68 this.apdu = apdu; in ResponseAPDU() 72 if (apdu.length < 2) { in check() 86 return apdu.length - 2; in getNr() 108 return apdu[apdu.length - 2] & 0xff; in getSW1() 117 return apdu[apdu.length - 1] & 0xff; in getSW2() 138 return apdu.clone(); in getBytes() 167 return Arrays.equals(this.apdu, other.apdu); in equals() [all …]
|
/dports/java/openjdk17/jdk17u-jdk-17.0.1-12-1/src/java.smartcardio/share/classes/javax/smartcardio/ |
H A D | ResponseAPDU.java | 51 private byte[] apdu; field in ResponseAPDU 66 apdu = apdu.clone(); in ResponseAPDU() 67 check(apdu); in ResponseAPDU() 68 this.apdu = apdu; in ResponseAPDU() 72 if (apdu.length < 2) { in check() 86 return apdu.length - 2; in getNr() 108 return apdu[apdu.length - 2] & 0xff; in getSW1() 117 return apdu[apdu.length - 1] & 0xff; in getSW2() 138 return apdu.clone(); in getBytes() 167 return Arrays.equals(this.apdu, other.apdu); in equals() [all …]
|
/dports/java/openjdk11-jre/jdk11u-jdk-11.0.13-8-1/src/java.smartcardio/share/classes/javax/smartcardio/ |
H A D | ResponseAPDU.java | 51 private byte[] apdu; field in ResponseAPDU 66 apdu = apdu.clone(); in ResponseAPDU() 67 check(apdu); in ResponseAPDU() 68 this.apdu = apdu; in ResponseAPDU() 72 if (apdu.length < 2) { in check() 86 return apdu.length - 2; in getNr() 108 return apdu[apdu.length - 2] & 0xff; in getSW1() 117 return apdu[apdu.length - 1] & 0xff; in getSW2() 138 return apdu.clone(); in getBytes() 167 return Arrays.equals(this.apdu, other.apdu); in equals() [all …]
|
/dports/java/openjdk15/jdk15u-jdk-15.0.6-1-1/src/java.smartcardio/share/classes/javax/smartcardio/ |
H A D | ResponseAPDU.java | 51 private byte[] apdu; field in ResponseAPDU 66 apdu = apdu.clone(); in ResponseAPDU() 67 check(apdu); in ResponseAPDU() 68 this.apdu = apdu; in ResponseAPDU() 72 if (apdu.length < 2) { in check() 86 return apdu.length - 2; in getNr() 108 return apdu[apdu.length - 2] & 0xff; in getSW1() 117 return apdu[apdu.length - 1] & 0xff; in getSW2() 138 return apdu.clone(); in getBytes() 167 return Arrays.equals(this.apdu, other.apdu); in equals() [all …]
|
/dports/java/openjdk14/jdk14u-jdk-14.0.2-12-1/src/java.smartcardio/share/classes/javax/smartcardio/ |
H A D | ResponseAPDU.java | 51 private byte[] apdu; field in ResponseAPDU 66 apdu = apdu.clone(); in ResponseAPDU() 67 check(apdu); in ResponseAPDU() 68 this.apdu = apdu; in ResponseAPDU() 72 if (apdu.length < 2) { in check() 86 return apdu.length - 2; in getNr() 108 return apdu[apdu.length - 2] & 0xff; in getSW1() 117 return apdu[apdu.length - 1] & 0xff; in getSW2() 138 return apdu.clone(); in getBytes() 167 return Arrays.equals(this.apdu, other.apdu); in equals() [all …]
|
/dports/java/openjdk8-jre/jdk8u-jdk8u312-b07.1/jdk/src/share/classes/javax/smartcardio/ |
H A D | ResponseAPDU.java | 51 private byte[] apdu; field in ResponseAPDU 66 apdu = apdu.clone(); in ResponseAPDU() 67 check(apdu); in ResponseAPDU() 68 this.apdu = apdu; in ResponseAPDU() 72 if (apdu.length < 2) { in check() 86 return apdu.length - 2; in getNr() 108 return apdu[apdu.length - 2] & 0xff; in getSW1() 117 return apdu[apdu.length - 1] & 0xff; in getSW2() 138 return apdu.clone(); in getBytes() 167 return Arrays.equals(this.apdu, other.apdu); in equals() [all …]
|
/dports/net/yaz++/yazpp-1.6.1/src/ |
H A D | yaz-z-assoc.cpp | 124 Z_GDU *apdu = decode_GDU(buf, len); in recv_PDU() local 125 if (apdu) in recv_PDU() 127 recv_GDU(apdu, len); in recv_PDU() 139 if (apdu->which == Z_APDU_initRequest) in create_Z_PDU() 147 return apdu; in create_Z_PDU() 152 switch (apdu->which) in get_referenceIdP() 222 gdu->u.z3950 = apdu; in send_Z_PDU() 241 Z_GDU *apdu; in decode_GDU() local 281 return apdu; in decode_GDU() 367 switch (apdu->which) in get_otherInfoAPDU() [all …]
|
/dports/deskutils/ausweisapp2/AusweisApp2-1.22.2/test/qt/card/ |
H A D | test_GeneralAuthenticateResponse.cpp | 26 const GAEncryptedNonceResponse response(apdu); in parseGAEncryptedNonceResponse() 36 const GAEncryptedNonceResponse response(apdu); in parseGAEncryptedNonceResponse_invalidData() 46 const GAMapNonceResponse response(apdu); in parseGAMapNonceResponse() 56 const GAMapNonceResponse response(apdu); in parseGAMapNonceResponse_invalidData() 66 const GAPerformKeyAgreementResponse response(apdu); in parseGAPerformKeyAgreementResponse() 76 const GAPerformKeyAgreementResponse response(apdu); in parseGAPerformKeyAgreementResponse_invalid() 86 const GAMutualAuthenticationResponse response(apdu); in parseGAMutualAuthenticationResponse_withoutCARs() 99 const GAMutualAuthenticationResponse response(apdu); in testGAMutualAuthenticationResponse_oneCAR() 111 const GAMutualAuthenticationResponse response(apdu); in testGAMutualAuthenticationResponse_twoCARs() 134 const GAChipAuthenticationResponse response(apdu); in testGAChipAuthenticationResponse() [all …]
|
/dports/security/opensc/OpenSC-0.22.0/src/smm/ |
H A D | sm-card-iasecc.c | 86 rapdu->apdu.le = sz; in sm_iasecc_get_apdu_read_binary() 134 rapdu->apdu.lc = sz; in sm_iasecc_get_apdu_update_binary() 137 rapdu->apdu.le = 0x0E; in sm_iasecc_get_apdu_update_binary() 174 rapdu->apdu.p1 = 0x00; in sm_iasecc_get_apdu_create_file() 175 rapdu->apdu.p2 = 0x00; in sm_iasecc_get_apdu_create_file() 181 rapdu->apdu.le = 0x0E; in sm_iasecc_get_apdu_create_file() 214 rapdu->apdu.p1 = 0x00; in sm_iasecc_get_apdu_delete_file() 215 rapdu->apdu.p2 = 0x00; in sm_iasecc_get_apdu_delete_file() 218 rapdu->apdu.le = 0x0E; in sm_iasecc_get_apdu_delete_file() 248 rapdu->apdu.p1 = 0x00; in sm_iasecc_get_apdu_verify_pin() [all …]
|
H A D | sm-global-platform.c | 75 apdu = &new_rapdu->apdu; in sm_gp_initialize() 82 apdu->cla = 0x80; in sm_gp_initialize() 83 apdu->ins = 0x50; in sm_gp_initialize() 84 apdu->p1 = 0x0; in sm_gp_initialize() 85 apdu->p2 = 0x0; in sm_gp_initialize() 87 apdu->le = 0x1C; in sm_gp_initialize() 277 apdu = &new_rapdu->apdu; in sm_gp_external_authentication() 357 apdu->cse, apdu->cla, apdu->ins, apdu->datalen, apdu->data, in sm_gp_securize_apdu() 389 buff[2] = apdu->p1; in sm_gp_securize_apdu() 390 buff[3] = apdu->p2; in sm_gp_securize_apdu() [all …]
|
/dports/net-p2p/go-ethereum/go-ethereum-1.10.14/vendor/github.com/status-im/keycard-go/ |
H A D | commands.go | 35 return apdu.NewCommand( 45 return apdu.NewCommand( 55 return apdu.NewCommand( 65 return apdu.NewCommand( 75 return apdu.NewCommand( 85 return apdu.NewCommand( 95 return apdu.NewCommand( 105 return apdu.NewCommand( 139 return apdu.NewCommand( 165 return apdu.NewCommand( [all …]
|