Home
last modified time | relevance | path

Searched refs:apdu (Results 1 – 4 of 4) sorted by relevance

/freebsd-14.2/contrib/libfido2/src/
H A Diso7816.c13 iso7816_apdu_t *apdu; in iso7816_new() local
19 apdu->alloc_len = alloc_len; in iso7816_new()
21 apdu->payload_ptr = apdu->payload; in iso7816_new()
22 apdu->header.cla = cla; in iso7816_new()
23 apdu->header.ins = ins; in iso7816_new()
24 apdu->header.p1 = p1; in iso7816_new()
28 return apdu; in iso7816_new()
34 iso7816_apdu_t *apdu; in iso7816_free() local
38 freezero(apdu, apdu->alloc_len); in iso7816_free()
48 apdu->payload_ptr += cnt; in iso7816_add()
[all …]
H A Dnfc.c30 memset(&apdu, 0, sizeof(apdu)); in tx_short_apdu()
32 apdu[1] = h->ins; in tx_short_apdu()
33 apdu[2] = h->p1; in tx_short_apdu()
34 apdu[3] = h->p2; in tx_short_apdu()
35 apdu[4] = payload_len; in tx_short_apdu()
57 explicit_bzero(apdu, sizeof(apdu)); in tx_short_apdu()
126 if (apdu != NULL) { in fido_nfc_tx()
189 uint8_t apdu[5]; in tx_get_response() local
191 memset(apdu, 0, sizeof(apdu)); in tx_get_response()
193 apdu[4] = count; in tx_get_response()
[all …]
H A Du2f.c147 iso7816_apdu_t *apdu = NULL; in send_dummy_register() local
193 iso7816_free(&apdu); in send_dummy_register()
203 iso7816_apdu_t *apdu = NULL; in key_lookup() local
247 iso7816_len(apdu), ms) < 0) { in key_lookup()
273 iso7816_free(&apdu); in key_lookup()
316 iso7816_apdu_t *apdu = NULL; in do_auth() local
388 iso7816_free(&apdu); in do_auth()
667 iso7816_apdu_t *apdu = NULL; in u2f_register() local
752 iso7816_free(&apdu); in u2f_register()
864 iso7816_apdu_t *apdu = NULL; in u2f_get_touch_begin() local
[all …]
/freebsd-14.2/contrib/libfido2/fuzz/
H A Dfuzz_pcsc.c187 test_tx(const char *path, const struct blob *apdu, uint8_t cmd, u_char *rx_buf, in test_tx() argument
202 if (apdu) { in test_tx()
203 tx_ptr = apdu->body; in test_tx()
204 tx_len = apdu->len; in test_tx()