Lines Matching refs:command
211 IFAPI_PCR * command = &context->cmd.pcr; in Fapi_Quote_Async() local
223 strdup_check(command->keyPath, keyPath, r, error_cleanup); in Fapi_Quote_Async()
225 command->pcrList = malloc(pcrListSize * sizeof(TPM2_HANDLE)); in Fapi_Quote_Async()
226 goto_if_null2(command->pcrList, "Out of memory", r, TSS2_FAPI_RC_MEMORY, in Fapi_Quote_Async()
228 memcpy(command->pcrList, pcrList, pcrListSize); in Fapi_Quote_Async()
230 command->pcrListSize = pcrListSize; in Fapi_Quote_Async()
231 command->tpm_quoted = NULL; in Fapi_Quote_Async()
233 FAPI_COPY_DIGEST(&command->qualifyingData.buffer[0], in Fapi_Quote_Async()
234 command->qualifyingData.size, qualifyingData, qualifyingDataSize); in Fapi_Quote_Async()
236 command->qualifyingData.size = 0; in Fapi_Quote_Async()
246 SAFE_FREE(command->keyPath); in Fapi_Quote_Async()
247 SAFE_FREE(command->pcrList); in Fapi_Quote_Async()
310 IFAPI_PCR * command = &context->cmd.pcr; in Fapi_Quote_Finish() local
314 command->pcr_selection = context->profiles.default_profile.pcr_selection; in Fapi_Quote_Finish()
316 r = ifapi_filter_pcr_selection_by_index(&command->pcr_selection, in Fapi_Quote_Finish()
317 command->pcrList, in Fapi_Quote_Finish()
318 command->pcrListSize); in Fapi_Quote_Finish()
331 r = ifapi_profiles_get(&context->profiles, command->keyPath, &profile); in Fapi_Quote_Finish()
339 r = ifapi_load_keys_async(context, command->keyPath); in Fapi_Quote_Finish()
346 &command->handle, in Fapi_Quote_Finish()
347 &command->key_object); in Fapi_Quote_Finish()
355 r = ifapi_authorize_object(context, command->key_object, &auth_session); in Fapi_Quote_Finish()
360 r = Esys_Quote_Async(context->esys, command->handle, in Fapi_Quote_Finish()
362 &command->qualifyingData, in Fapi_Quote_Finish()
363 &command->key_object->misc.key.signing_scheme, in Fapi_Quote_Finish()
364 &command->pcr_selection); in Fapi_Quote_Finish()
370 command->tpm_signature = NULL; in Fapi_Quote_Finish()
371 SAFE_FREE(command->tpm_signature); in Fapi_Quote_Finish()
372 r = Esys_Quote_Finish(context->esys, &command->tpm_quoted, in Fapi_Quote_Finish()
373 &command->tpm_signature); in Fapi_Quote_Finish()
378 r = Esys_FlushContext_Async(context->esys, command->handle); in Fapi_Quote_Finish()
388 sig_key_object = command->key_object; in Fapi_Quote_Finish()
391 command->tpm_signature, in Fapi_Quote_Finish()
393 SAFE_FREE(command->tpm_signature); in Fapi_Quote_Finish()
399 command->tpm_quoted, in Fapi_Quote_Finish()
416 command->pcrList, in Fapi_Quote_Finish()
417 command->pcrListSize); in Fapi_Quote_Finish()
441 SAFE_FREE(command->tpm_signature); in Fapi_Quote_Finish()
442 SAFE_FREE(command->tpm_quoted); in Fapi_Quote_Finish()
443 SAFE_FREE(command->keyPath); in Fapi_Quote_Finish()
444 SAFE_FREE(command->pcrList); in Fapi_Quote_Finish()
448 ifapi_cleanup_ifapi_object(command->key_object); in Fapi_Quote_Finish()