Lines Matching refs:skdebug
89 static void skdebug(const char *func, const char *fmt, ...)
93 skdebug(const char *func, const char *fmt, ...) in skdebug() function
135 skdebug(__func__, "fido_dev_info_new failed"); in pick_first_device()
139 skdebug(__func__, "fido_dev_info_manifest failed: %s", in pick_first_device()
144 skdebug(__func__, "fido_dev_info_manifest bad len %zu", olen); in pick_first_device()
149 skdebug(__func__, "fido_dev_info_path failed"); in pick_first_device()
166 skdebug(__func__, "fido_assert_new failed"); in try_device()
171 skdebug(__func__, "fido_assert_set_clientdata_hash: %s", in try_device()
176 skdebug(__func__, "fido_assert_set_rp: %s", fido_strerr(r)); in try_device()
181 skdebug(__func__, "fido_assert_allow_cred: %s", fido_strerr(r)); in try_device()
185 skdebug(__func__, "fido_assert_up: %s", fido_strerr(r)); in try_device()
189 skdebug(__func__, "fido_dev_get_assert: %s", fido_strerr(r)); in try_device()
212 skdebug(__func__, "fido_dev_new failed"); in find_device()
216 skdebug(__func__, "fido_dev_open failed"); in find_device()
224 skdebug(__func__, "fido_dev_info_new failed"); in find_device()
229 skdebug(__func__, "fido_dev_info_manifest: %s", fido_strerr(r)); in find_device()
233 skdebug(__func__, "found %zu device(s)", devlist_len); in find_device()
239 skdebug(__func__, "fido_dev_info_ptr %zu failed", i); in find_device()
243 skdebug(__func__, "fido_dev_info_path %zu failed", i); in find_device()
246 skdebug(__func__, "trying device %zu: %s", i, path); in find_device()
248 skdebug(__func__, "fido_dev_new failed"); in find_device()
252 skdebug(__func__, "fido_dev_open failed"); in find_device()
258 skdebug(__func__, "found key"); in find_device()
294 skdebug(__func__, "libcrypto setup failed"); in pack_public_key_ecdsa()
298 skdebug(__func__, "fido_cred_pubkey_ptr failed"); in pack_public_key_ecdsa()
302 skdebug(__func__, "bad fido_cred_pubkey_len %zu", in pack_public_key_ecdsa()
309 skdebug(__func__, "BN_bin2bn failed"); in pack_public_key_ecdsa()
313 skdebug(__func__, "EC_POINT_set_affine_coordinates_GFp failed"); in pack_public_key_ecdsa()
319 skdebug(__func__, "bad pubkey length %zu", in pack_public_key_ecdsa()
324 skdebug(__func__, "malloc pubkey failed"); in pack_public_key_ecdsa()
329 skdebug(__func__, "EC_POINT_point2oct failed"); in pack_public_key_ecdsa()
360 skdebug(__func__, "bad fido_cred_pubkey_len len %zu", len); in pack_public_key_ed25519()
364 skdebug(__func__, "fido_cred_pubkey_ptr failed"); in pack_public_key_ed25519()
369 skdebug(__func__, "malloc pubkey failed"); in pack_public_key_ed25519()
422 skdebug(__func__, "strdup device failed"); in check_enroll_options()
425 skdebug(__func__, "requested device %s", *devicep); in check_enroll_options()
429 skdebug(__func__, "user too long"); in check_enroll_options()
432 skdebug(__func__, "requested user %s", in check_enroll_options()
435 skdebug(__func__, "requested unsupported option %s", in check_enroll_options()
438 skdebug(__func__, "unknown required option"); in check_enroll_options()
466 skdebug(__func__, "enroll_response == NULL"); in sk_enroll()
485 skdebug(__func__, "unsupported key type %d", alg); in sk_enroll()
490 skdebug(__func__, "pick_first_device failed"); in sk_enroll()
493 skdebug(__func__, "using device %s", device); in sk_enroll()
495 skdebug(__func__, "fido_cred_new failed"); in sk_enroll()
499 skdebug(__func__, "fido_cred_set_type: %s", fido_strerr(r)); in sk_enroll()
504 skdebug(__func__, "fido_cred_set_clientdata_hash: %s", in sk_enroll()
510 skdebug(__func__, "fido_cred_set_rk: %s", fido_strerr(r)); in sk_enroll()
515 skdebug(__func__, "fido_cred_set_user: %s", fido_strerr(r)); in sk_enroll()
519 skdebug(__func__, "fido_cred_set_rp: %s", fido_strerr(r)); in sk_enroll()
523 skdebug(__func__, "fido_dev_new failed"); in sk_enroll()
527 skdebug(__func__, "fido_dev_open: %s", fido_strerr(r)); in sk_enroll()
531 skdebug(__func__, "fido_dev_make_cred: %s", fido_strerr(r)); in sk_enroll()
537 skdebug(__func__, "fido_cred_verify: %s", in sk_enroll()
542 skdebug(__func__, "self-attested credential"); in sk_enroll()
544 skdebug(__func__, "fido_cred_verify_self: %s", in sk_enroll()
550 skdebug(__func__, "calloc response failed"); in sk_enroll()
554 skdebug(__func__, "pack_public_key failed"); in sk_enroll()
560 skdebug(__func__, "calloc key handle failed"); in sk_enroll()
569 skdebug(__func__, "calloc signature failed"); in sk_enroll()
579 skdebug(__func__, "calloc attestation cert failed"); in sk_enroll()
620 skdebug(__func__, "d2i_ECDSA_SIG failed"); in pack_sig_ecdsa()
628 skdebug(__func__, "calloc signature failed"); in pack_sig_ecdsa()
656 skdebug(__func__, "bad length %zu", len); in pack_sig_ed25519()
661 skdebug(__func__, "calloc signature failed"); in pack_sig_ed25519()
701 skdebug(__func__, "strdup device failed"); in check_sign_load_resident_options()
704 skdebug(__func__, "requested device %s", *devicep); in check_sign_load_resident_options()
706 skdebug(__func__, "requested unsupported option %s", in check_sign_load_resident_options()
709 skdebug(__func__, "unknown required option"); in check_sign_load_resident_options()
757 skdebug(__func__, "sign_response == NULL"); in sk_sign()
765 skdebug(__func__, "hash message failed"); in sk_sign()
770 skdebug(__func__, "couldn't find device for key handle"); in sk_sign()
774 skdebug(__func__, "fido_assert_new failed"); in sk_sign()
779 skdebug(__func__, "fido_assert_set_clientdata_hash: %s", in sk_sign()
784 skdebug(__func__, "fido_assert_set_rp: %s", fido_strerr(r)); in sk_sign()
789 skdebug(__func__, "fido_assert_allow_cred: %s", fido_strerr(r)); in sk_sign()
795 skdebug(__func__, "fido_assert_set_up: %s", fido_strerr(r)); in sk_sign()
799 skdebug(__func__, "fido_dev_get_assert: %s", fido_strerr(r)); in sk_sign()
803 skdebug(__func__, "calloc response failed"); in sk_sign()
809 skdebug(__func__, "pack_sig failed"); in sk_sign()
847 skdebug(__func__, "fido_dev_new failed"); in read_rks()
851 skdebug(__func__, "fido_dev_open %s failed: %s", in read_rks()
857 skdebug(__func__, "alloc failed"); in read_rks()
863 skdebug(__func__, "device %s does not support " in read_rks()
868 skdebug(__func__, "get metadata for %s failed: %s", in read_rks()
873 skdebug(__func__, "existing %llu, remaining %llu", in read_rks()
877 skdebug(__func__, "alloc rp failed"); in read_rks()
881 skdebug(__func__, "get RPs for %s failed: %s", in read_rks()
886 skdebug(__func__, "Device %s has resident keys for %zu RPs", in read_rks()
891 skdebug(__func__, "rp %zu: name=\"%s\" id=\"%s\" hashlen=%zu", in read_rks()
901 skdebug(__func__, "alloc rk failed"); in read_rks()
906 skdebug(__func__, "get RKs for %s slot %zu failed: %s", in read_rks()
911 skdebug(__func__, "RP \"%s\" has %zu resident keys", in read_rks()
917 skdebug(__func__, "no RK in slot %zu", j); in read_rks()
920 skdebug(__func__, "Device %s RP \"%s\" slot %zu: " in read_rks()
930 skdebug(__func__, "alloc sk_resident_key"); in read_rks()
947 skdebug(__func__, "unsupported key type %d", in read_rks()
954 skdebug(__func__, "pack public key failed"); in read_rks()
960 skdebug(__func__, "alloc rksp"); in read_rks()
1001 skdebug(__func__, "trying %s", device); in sk_load_resident_keys()
1003 skdebug(__func__, "read_rks failed for %s", device); in sk_load_resident_keys()
1010 skdebug(__func__, "fido_dev_info_new failed"); in sk_load_resident_keys()
1015 skdebug(__func__, "fido_dev_info_manifest failed: %s", in sk_load_resident_keys()
1021 skdebug(__func__, "no dev info at %zu", i); in sk_load_resident_keys()
1024 skdebug(__func__, "trying %s", fido_dev_info_path(di)); in sk_load_resident_keys()
1027 skdebug(__func__, "read_rks failed for %s", in sk_load_resident_keys()