/netbsd-src/external/bsd/libfido2/dist/src/ |
H A D | winhello.c | 85 fido_log_debug("%s: already loaded", __func__); in webauthn_load() 89 fido_log_debug("%s: LoadLibrary", __func__); in webauthn_load() 96 fido_log_debug("%s: WebAuthNGetApiVersionNumber", __func__); in webauthn_load() 101 fido_log_debug("%s: unsupported api %lu", __func__, (u_long)n); in webauthn_load() 104 fido_log_debug("%s: api version %lu", __func__, (u_long)n); in webauthn_load() 108 fido_log_debug("%s: WebAuthNGetErrorName", __func__); in webauthn_load() 114 fido_log_debug("%s: WebAuthNAuthenticatorGetAssertion", in webauthn_load() 121 fido_log_debug("%s: WebAuthNAuthenticatorMakeCredential", in webauthn_load() 128 fido_log_debug("%s: WebAuthNFreeAssertion", __func__); in webauthn_load() 134 fido_log_debug("%s: WebAuthNFreeCredentialAttestation", in webauthn_load() [all …]
|
H A D | u2f.c | 39 fido_log_debug("%s: ms=%u", __func__, ms); in delay_ms() 60 fido_log_debug("%s: fido_buf_read", __func__); in sig_get() 75 fido_log_debug("%s: invalid len %zu", __func__, *len); in x5c_get() 83 fido_log_debug("%s: d2i_X509", __func__); in x5c_get() 90 fido_log_debug("%s: fido_buf_read", __func__); in x5c_get() 117 fido_log_debug("%s: sha256", __func__); in authdata_fake() 126 fido_log_debug("%s: cbor_build_bytestring", __func__); in authdata_fake() 133 fido_log_debug("%s: cbor_serialize_alloc", __func__); in authdata_fake() 161 fido_log_debug("%s: iso7816", __func__); in send_dummy_register() 167 fido_log_debug("%s: malloc", __func__); in send_dummy_register() [all …]
|
H A D | largeblob.c | 72 fido_log_debug("%s: fido_blob_new", __func__); in largeblob_decrypt() 76 fido_log_debug("%s: largeblob_aad", __func__); in largeblob_decrypt() 81 fido_log_debug("%s: aes256_gcm_dec", __func__); in largeblob_decrypt() 102 fido_log_debug("%s: fido_get_random", __func__); in largeblob_get_nonce() 106 fido_log_debug("%s: fido_blob_set", __func__); in largeblob_get_nonce() 126 fido_log_debug("%s: fido_blob_new", __func__); in largeblob_seal() 130 fido_log_debug("%s: fido_compress", __func__); in largeblob_seal() 134 fido_log_debug("%s: largeblob_aad", __func__); in largeblob_seal() 138 fido_log_debug("%s: largeblob_get_nonce", __func__); in largeblob_seal() 143 fido_log_debug("%s: aes256_gcm_enc", __func__); in largeblob_seal() [all …]
|
H A D | cbor.c | 19 fido_log_debug("%s: invalid type: %d", __func__, item->type); in check_key_type() 39 fido_log_debug("%s: unsorted types", __func__); in ctap_check_cbor() 57 fido_log_debug("%s: invalid cbor", __func__); in ctap_check_cbor() 70 fido_log_debug("%s: cbor_map_handle", __func__); in cbor_map_iter() 78 fido_log_debug("%s: key=%p, value=%p for i=%zu", in cbor_map_iter() 83 fido_log_debug("%s: ctap_check_cbor", __func__); in cbor_map_iter() 87 fido_log_debug("%s: iterator < 0 on i=%zu", __func__, in cbor_map_iter() 104 fido_log_debug("%s: cbor_array_handle", __func__); in cbor_array_iter() 112 fido_log_debug("%s: iterator < 0 on i=%zu,%p", in cbor_array_iter() 129 fido_log_debug("%s: blob_len=%zu", __func__, blob_len); in cbor_parse_reply() [all …]
|
H A D | hid_win.c | 53 fido_log_debug("%s: HidD_GetPreparsedData", __func__); in is_fido() 58 fido_log_debug("%s: HidP_GetCaps", __func__); in is_fido() 79 fido_log_debug("%s: HidD_GetPreparsedData/%d", __func__, dir); in get_report_len() 84 fido_log_debug("%s: HidP_GetCaps/%d", __func__, dir); in get_report_len() 94 fido_log_debug("%s: report_len == 0", __func__); in get_report_len() 114 fido_log_debug("%s: HidD_GetAttributes", __func__); in get_id() 134 fido_log_debug("%s: HidD_GetManufacturerString", __func__); in get_manufacturer() 140 fido_log_debug("%s: WideCharToMultiByte", __func__); in get_manufacturer() 145 fido_log_debug("%s: malloc", __func__); in get_manufacturer() 151 fido_log_debug("%s: WideCharToMultiByte", __func__); in get_manufacturer() [all …]
|
H A D | hid_osx.c | 45 fido_log_debug("%s: IOHIDDeviceGetProperty", __func__); in get_int32() 51 fido_log_debug("%s: CFNumberGetType", __func__); in get_int32() 56 fido_log_debug("%s: CFNumberGetValue", __func__); in get_int32() 72 fido_log_debug("%s: IOHIDDeviceGetProperty", __func__); in get_utf8() 78 fido_log_debug("%s: CFStringGetCString", __func__); in get_utf8() 97 fido_log_debug("%s: get_int32/%d", __func__, dir); in get_report_len() 102 fido_log_debug("%s: report_len=%zu", __func__, *report_len); in get_report_len() 117 fido_log_debug("%s: get_int32 vendor", __func__); in get_id() 123 fido_log_debug("%s: get_int32 product", __func__); in get_id() 153 fido_log_debug("%s: strdup", __func__); in get_str() [all …]
|
H A D | nfc.c | 40 fido_log_debug("%s: write", __func__); in tx_short_apdu() 46 fido_log_debug("%s: read", __func__); in tx_short_apdu() 50 fido_log_debug("%s: unexpected sw", __func__); in tx_short_apdu() 68 fido_log_debug("%s: header", __func__); in nfc_do_tx() 72 fido_log_debug("%s: apdu_len %zu", __func__, apdu_len); in nfc_do_tx() 80 fido_log_debug("%s: chain", __func__); in nfc_do_tx() 88 fido_log_debug("%s: tx_short_apdu", __func__); in nfc_do_tx() 107 fido_log_debug("%s: iso7816", __func__); in fido_nfc_tx() 115 fido_log_debug("%s: iso7816", __func__); in fido_nfc_tx() 122 fido_log_debug("%s: cmd=%02x", __func__, cmd); in fido_nfc_tx() [all …]
|
H A D | credman.c | 30 fido_log_debug("%s: n > UINT8_MAX", __func__); in credman_grow_array() 40 fido_log_debug("%s: n=%zu, n_rx=%zu, n_alloc=%zu", __func__, n, in credman_grow_array() 72 fido_log_debug("%s: cbor encode", __func__); in credman_prepare_hmac() 79 fido_log_debug("%s: cbor encode", __func__); in credman_prepare_hmac() 89 fido_log_debug("%s: cbor encode", __func__); in credman_prepare_hmac() 94 fido_log_debug("%s: unknown cmd=0x%02x", __func__, cmd); in credman_prepare_hmac() 99 fido_log_debug("%s: cbor_flatten_vector", __func__); in credman_prepare_hmac() 103 fido_log_debug("%s: cbor_build_frame", __func__); in credman_prepare_hmac() 131 fido_log_debug("%s: fido_dev_is_fido2", __func__); in credman_tx() 138 fido_log_debug("%s: cbor encode", __func__); in credman_tx() [all …]
|
H A D | pin.c | 49 fido_log_debug("%s: SHA256", __func__); in pin_sha256_enc() 57 fido_log_debug("%s: aes256_cbc_enc", __func__); in pin_sha256_enc() 77 fido_log_debug("%s: invalid pin length", __func__); in pad64() 105 fido_log_debug("%s: pad64", __func__); in pin_pad64_enc() 115 fido_log_debug("%s: aes256_cbc_enc", __func__); in pin_pad64_enc() 144 fido_log_debug("%s: cmd 0x%02x", __func__, cmd); in encode_uv_permission() 163 fido_log_debug("%s: NULL pin", __func__); in ctap20_uv_token_tx() 170 fido_log_debug("%s: fido_blob_set", __func__); in ctap20_uv_token_tx() 176 fido_log_debug("%s: pin_sha256_enc", __func__); in ctap20_uv_token_tx() 184 fido_log_debug("%s: cbor encode", __func__); in ctap20_uv_token_tx() [all …]
|
H A D | bio.c | 34 fido_log_debug("%s: cbor_flatten_vector", __func__); in bio_prepare_hmac() 40 fido_log_debug("%s: cbor_serialize_alloc", __func__); in bio_prepare_hmac() 45 fido_log_debug("%s: malloc", __func__); in bio_prepare_hmac() 79 fido_log_debug("%s: cbor encode", __func__); in bio_tx() 87 fido_log_debug("%s: bio_prepare_hmac", __func__); in bio_tx() 95 fido_log_debug("%s: fido_do_ecdh", __func__); in bio_tx() 100 fido_log_debug("%s: cbor_add_uv_params", __func__); in bio_tx() 106 fido_log_debug("%s: encode pin", __func__); in bio_tx() 114 fido_log_debug("%s: fido_tx", __func__); in bio_tx() 156 fido_log_debug("%s: cbor type", __func__); in decode_template() [all …]
|
H A D | pcsc.c | 53 fido_log_debug("%s: SCardListReaders 0x%lx", __func__, (long)s); in list_readers() 58 fido_log_debug("%s: bogus len=%u", __func__, (unsigned)len); in list_readers() 62 fido_log_debug("%s: bogus buf", __func__); in list_readers() 85 fido_log_debug("%s: invalid path %s", __func__, path); in get_reader() 89 fido_log_debug("%s: list_readers", __func__); in get_reader() 99 fido_log_debug("%s: failed to find reader %s", __func__, path); in get_reader() 119 fido_log_debug("%s: unknown protocol %lu", __func__, in prepare_io_request() 141 fido_log_debug("%s: SCardConnect 0x%lx", __func__, (long)s); in copy_info() 145 fido_log_debug("%s: prepare_io_request", __func__); in copy_info() 150 fido_log_debug("%s: asprintf", __func__); in copy_info() [all …]
|
H A D | info.c | 18 fido_log_debug("%s: cbor_string_copy", __func__); in decode_string() 35 fido_log_debug("%s: cbor type", __func__); in decode_string_array() 44 fido_log_debug("%s: decode_string", __func__); in decode_string_array() 57 fido_log_debug("%s: cbor type", __func__); in decode_aaguid() 73 fido_log_debug("%s: cbor_decode_bool", __func__); in decode_option() 78 fido_log_debug("%s: cbor_string_copy", __func__); in decode_option() 98 fido_log_debug("%s: cbor type", __func__); in decode_options() 118 fido_log_debug("%s: cbor type", __func__); in decode_protocol() 137 fido_log_debug("%s: cbor type", __func__); in decode_protocols() 146 fido_log_debug("%s: decode_protocol", __func__); in decode_protocols() [all …]
|
H A D | aes256.c | 21 fido_log_debug("%s: invalid key len %zu", __func__, key->len); in aes256_cbc() 25 fido_log_debug("%s: invalid input len %zu", __func__, in->len); in aes256_cbc() 30 fido_log_debug("%s: calloc", __func__); in aes256_cbc() 35 fido_log_debug("%s: EVP_CIPHER_CTX_new", __func__); in aes256_cbc() 40 fido_log_debug("%s: EVP_Cipher", __func__); in aes256_cbc() 75 fido_log_debug("%s: invalid secret len %zu", __func__, in aes256_cbc_fips() 80 fido_log_debug("%s: invalid input len %zu", __func__, in->len); in aes256_cbc_fips() 85 fido_log_debug("%s: fido_get_random", __func__); in aes256_cbc_fips() 127 fido_log_debug("%s: invalid params %zu, %zu, %zu", __func__, in aes256_gcm() 132 fido_log_debug("%s: invalid input len %zu", __func__, in->len); in aes256_gcm() [all …]
|
H A D | eddsa.c | 24 fido_log_debug("%s: unimplemented", __func__); in EVP_PKEY_new_raw_public_key() 37 fido_log_debug("%s: unimplemented", __func__); in EVP_PKEY_get_raw_public_key() 54 fido_log_debug("%s: unimplemented", __func__); in EVP_DigestVerify() 66 fido_log_debug("%s: cbor type", __func__); in decode_coord() 98 fido_log_debug("%s: cbor type", __func__); in eddsa_pk_decode() 134 fido_log_debug("%s: eddsa_pk_to_EVP_PKEY", __func__); in eddsa_pk_from_ptr() 150 fido_log_debug("%s: EVP_PKEY_new_raw_public_key", __func__); in eddsa_pk_to_EVP_PKEY() 180 fido_log_debug("%s: EVP_PKEY_base_id", __func__); in eddsa_verify_sig() 186 fido_log_debug("%s: dgst->len=%zu, sig->len=%zu", __func__, in eddsa_verify_sig() 192 fido_log_debug("%s: EVP_MD_CTX_new", __func__); in eddsa_verify_sig() [all …]
|
H A D | dev.c | 77 fido_log_debug("%s: unknown protocol %u", __func__, in fido_dev_set_protocol_flags() 97 fido_log_debug("%s: handle=%p", __func__, dev->io_handle); in fido_dev_open_tx() 102 fido_log_debug("%s: NULL open/close", __func__); in fido_dev_open_tx() 107 fido_log_debug("%s: cid=0x%x", __func__, dev->cid); in fido_dev_open_tx() 112 fido_log_debug("%s: fido_get_random", __func__); in fido_dev_open_tx() 117 fido_log_debug("%s: dev->io.open", __func__); in fido_dev_open_tx() 135 fido_log_debug("%s: invalid rx_len %zu", __func__, dev->rx_len); in fido_dev_open_tx() 142 fido_log_debug("%s: invalid tx_len %zu", __func__, dev->tx_len); in fido_dev_open_tx() 149 fido_log_debug("%s: fido_tx", __func__); in fido_dev_open_tx() 171 fido_log_debug("%s: fido_rx", __func__); in fido_dev_open_rx() [all …]
|
H A D | ecdh.c | 47 fido_log_debug("%s: invalid param", __func__); in hkdf_sha256() 53 fido_log_debug("%s: init", __func__); in hkdf_sha256() 61 fido_log_debug("%s: EVP_PKEY_CTX", __func__); in hkdf_sha256() 65 fido_log_debug("%s: EVP_PKEY_derive", __func__); in hkdf_sha256() 92 fido_log_debug("%s: SHA256", __func__); in kdf() 103 fido_log_debug("%s: hkdf", __func__); in kdf() 108 fido_log_debug("%s: unknown pin protocol %u", __func__, prot); in kdf() 131 fido_log_debug("%s: es256_to_EVP_PKEY", __func__); in do_ecdh() 137 fido_log_debug("%s: EVP_PKEY_derive_init", __func__); in do_ecdh() 143 fido_log_debug("%s: EVP_PKEY_derive", __func__); in do_ecdh() [all …]
|
H A D | rs256.c | 76 fido_log_debug("%s: cbor type", __func__); in decode_bignum() 110 fido_log_debug("%s: cbor type", __func__); in rs256_pk_decode() 146 fido_log_debug("%s: rs256_pk_to_EVP_PKEY", __func__); in rs256_pk_from_ptr() 169 fido_log_debug("%s: BN_bin2bn", __func__); in rs256_pk_to_EVP_PKEY() 174 fido_log_debug("%s: RSA_set0_key", __func__); in rs256_pk_to_EVP_PKEY() 183 fido_log_debug("%s: invalid key length", __func__); in rs256_pk_to_EVP_PKEY() 189 fido_log_debug("%s: EVP_PKEY_assign_RSA", __func__); in rs256_pk_to_EVP_PKEY() 220 fido_log_debug("%s: invalid key length", __func__); in rs256_pk_from_RSA() 227 fido_log_debug("%s: RSA_get0_key", __func__); in rs256_pk_from_RSA() 233 fido_log_debug("%s: invalid key", __func__); in rs256_pk_from_RSA() [all …]
|
H A D | netlink.c | 349 fido_log_debug("%s: %zd != %zu", __func__, r, nlmsg_len(m)); in nlmsg_tx() 363 fido_log_debug("%s: len", __func__); in nlmsg_rx() 367 fido_log_debug("%s: fido_hid_unix_wait", __func__); in nlmsg_rx() 389 fido_log_debug("%s: parser", __func__); in nlmsg_iter() 407 fido_log_debug("%s: parser", __func__); in nla_iter() 424 fido_log_debug("%s: nlmsg", __func__); in nl_parse_reply() 434 fido_log_debug("%s: skipping", __func__); in nl_parse_reply() 439 fido_log_debug("%s: nlmsg_iter", __func__); in nl_parse_reply() 468 fido_log_debug("%s: group", __func__); in parse_mcastgrp() 474 fido_log_debug("%s: ignoring nla 0x%x", __func__, nla_type(a)); in parse_mcastgrp() [all …]
|
H A D | assert.c | 25 fido_log_debug("%s: cbor_type", __func__); in adjust_assert_count() 30 fido_log_debug("%s: cbor_decode_uint64", __func__); in adjust_assert_count() 36 fido_log_debug("%s: stmt_len=%zu, stmt_cnt=%zu, n=%zu", in adjust_assert_count() 42 fido_log_debug("%s: fido_assert_set_count", __func__); in adjust_assert_count() 58 fido_log_debug("%s: cbor type", __func__); in parse_assert_reply() 75 fido_log_debug("%s: cbor type", __func__); in parse_assert_reply() 95 fido_log_debug("%s: rp_id=%p, cdh.ptr=%p", __func__, in fido_dev_get_assert_tx() 103 fido_log_debug("%s: cbor encode", __func__); in fido_dev_get_assert_tx() 112 fido_log_debug("%s: cbor_encode_pubkey_list", __func__); in fido_dev_get_assert_tx() 121 fido_log_debug("%s: cbor_encode_assert_ext", __func__); in fido_dev_get_assert_tx() [all …]
|
H A D | compress.c | 24 fido_log_debug("%s: in->len=%zu, origsiz=%zu", __func__, in rfc1950_inflate() 35 fido_log_debug("%s: uncompress: %d, olen=%lu, out->len=%zu", in rfc1950_inflate() 57 fido_log_debug("%s: in->len=%zu, origsiz=%zu", __func__, in rfc1951_inflate() 62 fido_log_debug("%s: inflateInit2: %d", __func__, z); in rfc1951_inflate() 77 fido_log_debug("%s: inflate: %d", __func__, z); in rfc1951_inflate() 82 fido_log_debug("%s: %u != 0", __func__, zs.avail_out); in rfc1951_inflate() 90 fido_log_debug("%s: inflateEnd: %d", __func__, z); in rfc1951_inflate() 111 fido_log_debug("%s: in->len=%zu", __func__, in->len); in rfc1951_deflate() 116 fido_log_debug("%s: deflateInit2: %d", __func__, z); in rfc1951_deflate() 132 fido_log_debug("%s: inflate: %d", __func__, z); in rfc1951_deflate() [all …]
|
H A D | config.c | 28 fido_log_debug("%s: cbor_serialize", __func__); in config_prepare_hmac() 33 fido_log_debug("%s: malloc", __func__); in config_prepare_hmac() 59 fido_log_debug("%s: cbor encode", __func__); in config_tx() 66 fido_log_debug("%s: cbor_flatten_vector", __func__); in config_tx() 74 fido_log_debug("%s: config_prepare_hmac", __func__); in config_tx() 78 fido_log_debug("%s: fido_do_ecdh", __func__); in config_tx() 83 fido_log_debug("%s: cbor_add_uv_params", __func__); in config_tx() 91 fido_log_debug("%s: fido_tx", __func__); in config_tx() 161 fido_log_debug("%s: cbor_encode_uint8", __func__); in config_pin_minlen_tx() 166 fido_log_debug("%s: cbor_encode_str_array", __func__); in config_pin_minlen_tx() [all …]
|
H A D | hid_openbsd.c | 47 fido_log_debug("%s: %s: bus = 0x%02x, addr = 0x%02x", __func__, path, in copy_info() 49 fido_log_debug("%s: %s: vendor = \"%s\", product = \"%s\"", __func__, in copy_info() 51 fido_log_debug("%s: %s: productNo = 0x%04x, vendorNo = 0x%04x, " in copy_info() 133 fido_log_debug("%s: send ping %d", __func__, i); in terrible_ping_kludge() 136 fido_log_debug("%s: wait reply", __func__); in terrible_ping_kludge() 144 fido_log_debug("%s: timed out", __func__); in terrible_ping_kludge() 158 fido_log_debug("%s: no response", __func__); in terrible_ping_kludge() 173 fido_log_debug("%s: inlen = %zu outlen = %zu", __func__, in fido_hid_open() 218 fido_log_debug("%s: invalid len: got %zu, want %zu", __func__, in fido_hid_read() 224 fido_log_debug("%s: fd not ready", __func__); in fido_hid_read() [all …]
|
H A D | cred.c | 25 fido_log_debug("%s: cbor type", __func__); in parse_makecred_reply() 34 fido_log_debug("%s: fido_blob_decode", __func__); in parse_makecred_reply() 45 fido_log_debug("%s: cbor type", __func__); in parse_makecred_reply() 66 fido_log_debug("%s: cdh=%p, type=%d", __func__, in fido_dev_make_cred_tx() 76 fido_log_debug("%s: cbor encode", __func__); in fido_dev_make_cred_tx() 84 fido_log_debug("%s: cbor_encode_pubkey_list", __func__); in fido_dev_make_cred_tx() 93 fido_log_debug("%s: cbor_encode_cred_ext", __func__); in fido_dev_make_cred_tx() 102 fido_log_debug("%s: fido_do_ecdh", __func__); in fido_dev_make_cred_tx() 107 fido_log_debug("%s: cbor_add_uv_params", __func__); in fido_dev_make_cred_tx() 116 fido_log_debug("%s: cbor_encode_cred_opt", __func__); in fido_dev_make_cred_tx() [all …]
|
H A D | es256.c | 29 fido_log_debug("%s: cbor type", __func__); in decode_coord() 63 fido_log_debug("%s: cbor type", __func__); in es256_pk_decode() 194 fido_log_debug("%s: es256_pk_to_EVP_PKEY", __func__); in es256_pk_from_ptr() 236 fido_log_debug("%s: EVP_PKEY_paramgen", __func__); in es256_sk_create() 242 fido_log_debug("%s: EVP_PKEY_keygen", __func__); in es256_sk_create() 250 fido_log_debug("%s: EC_KEY_get0_private_key", __func__); in es256_sk_create() 291 fido_log_debug("%s: BN_bin2bn", __func__); in es256_pk_to_EVP_PKEY() 297 fido_log_debug("%s: EC_KEY init", __func__); in es256_pk_to_EVP_PKEY() 304 fido_log_debug("%s: EC_KEY_set_public_key", __func__); in es256_pk_to_EVP_PKEY() 310 fido_log_debug("%s: EVP_PKEY_assign_EC_KEY", __func__); in es256_pk_to_EVP_PKEY() [all …]
|
H A D | es384.c | 27 fido_log_debug("%s: cbor type", __func__); in decode_coord() 61 fido_log_debug("%s: cbor type", __func__); in es384_pk_decode() 101 fido_log_debug("%s: es384_pk_to_EVP_PKEY", __func__); in es384_pk_from_ptr() 134 fido_log_debug("%s: BN_bin2bn", __func__); in es384_pk_to_EVP_PKEY() 140 fido_log_debug("%s: EC_KEY init", __func__); in es384_pk_to_EVP_PKEY() 147 fido_log_debug("%s: EC_KEY_set_public_key", __func__); in es384_pk_to_EVP_PKEY() 153 fido_log_debug("%s: EVP_PKEY_assign_EC_KEY", __func__); in es384_pk_to_EVP_PKEY() 205 fido_log_debug("%s: EC_POINT_is_on_curve", __func__); in es384_pk_from_EC_KEY() 213 fido_log_debug("%s: EC_POINT_get_affine_coordinates_GFp", in es384_pk_from_EC_KEY() 223 fido_log_debug("%s: BN_bn2bin", __func__); in es384_pk_from_EC_KEY() [all …]
|