Lines Matching refs:cdh
65 if (cred->cdh.ptr == NULL || cred->type == 0) { in fido_dev_make_cred_tx()
67 (void *)cred->cdh.ptr, cred->type); in fido_dev_make_cred_tx()
72 if ((argv[0] = fido_blob_encode(&cred->cdh)) == NULL || in fido_dev_make_cred_tx()
105 if ((r = cbor_add_uv_params(dev, cmd, &cred->cdh, pk, ecdh, in fido_dev_make_cred_tx()
344 if (cred->cdh.ptr == NULL || cred->authdata_cbor.ptr == NULL || in fido_cred_verify()
349 "fmt=%p id=%p, rp.id=%s", __func__, (void *)cred->cdh.ptr, in fido_cred_verify()
381 if (fido_get_signed_hash(cose_alg, &dgst, &cred->cdh, in fido_cred_verify()
389 sizeof(cred->authdata.rp_id_hash), &cred->cdh, in fido_cred_verify()
396 if (fido_get_signed_hash_tpm(&dgst, &cred->cdh, in fido_cred_verify()
433 if (cred->cdh.ptr == NULL || cred->authdata_cbor.ptr == NULL || in fido_cred_verify_self()
438 "fmt=%p id=%p, rp.id=%s", __func__, (void *)cred->cdh.ptr, in fido_cred_verify_self()
467 if (fido_get_signed_hash(cred->attcred.type, &dgst, &cred->cdh, in fido_cred_verify_self()
475 sizeof(cred->authdata.rp_id_hash), &cred->cdh, in fido_cred_verify_self()
556 fido_blob_reset(&cred->cdh); in fido_cred_reset_tx()
780 if (!fido_blob_is_empty(&cred->cdh) || in fido_cred_set_clientdata()
784 if (fido_sha256(&cred->cdh, data, data_len) < 0) { in fido_cred_set_clientdata()
797 fido_blob_set(&cred->cdh, hash, hash_len) < 0) in fido_cred_set_clientdata_hash()
1021 return (cred->cdh.ptr); in fido_cred_clientdata_hash_ptr()
1027 return (cred->cdh.len); in fido_cred_clientdata_hash_len()