Lines Matching refs:response
43 /* Gets the size field of a TPM request or response. */
64 uint8_t* response, int max_length) {
77 response, &response_length);
79 /* Communication with TPM failed, so response is garbage */
84 /* Otherwise, use the result code from the response */
85 result = TpmReturnCode(response);
88 * (and possibly expected length from the response header). See
92 VBDEBUG(("TPM: response: %x%x %x%x%x%x %x%x%x%x\n",
93 response[0], response[1],
94 response[2], response[3], response[4], response[5],
95 response[6], response[7], response[8], response[9]));
105 /* Sends a TPM command and gets a response. Returns 0 if success or the TPM
108 uint32_t TlclSendReceive(const uint8_t* request, uint8_t* response,
110 uint32_t result = TlclSendReceiveNoRetry(request, response, max_length);
123 result = TlclSendReceiveNoRetry(request, response, max_length);
131 result = TlclSendReceiveNoRetry(request, response, max_length);
141 uint8_t response[TPM_LARGE_ENOUGH_COMMAND_SIZE];
142 return TlclSendReceive(command, response, sizeof(response));
176 uint8_t response[TPM_LARGE_ENOUGH_COMMAND_SIZE];
180 response, sizeof(response));
195 uint8_t response[TPM_LARGE_ENOUGH_COMMAND_SIZE];
208 return TlclSendReceive(cmd.buffer, response, sizeof(response));
213 uint8_t response[TPM_LARGE_ENOUGH_COMMAND_SIZE];
222 result = TlclSendReceive(cmd.buffer, response, sizeof(response));
224 uint8_t* nv_read_cursor = response + kTpmResponseHeaderLength;
235 uint8_t response[TPM_LARGE_ENOUGH_COMMAND_SIZE];
245 result = TlclSendReceive(cmd.buffer, response, sizeof(response));
247 uint8_t* pcr_read_cursor = response + kTpmResponseHeaderLength;
280 uint8_t response[TPM_LARGE_ENOUGH_COMMAND_SIZE];
281 return TlclSendReceive(tpm_ppassert_cmd.buffer, response, sizeof(response));
295 uint8_t response[TPM_LARGE_ENOUGH_COMMAND_SIZE + TPM_PUBEK_SIZE];
298 response, sizeof(response));
326 uint8_t response[TPM_LARGE_ENOUGH_COMMAND_SIZE];
329 TlclSendReceive(tpm_getflags_cmd.buffer, response, sizeof(response));
332 FromTpmUint32(response + kTpmResponseHeaderLength, &size);
337 response + kTpmResponseHeaderLength + sizeof(size),
343 uint8_t response[TPM_LARGE_ENOUGH_COMMAND_SIZE];
346 TlclSendReceive(tpm_getstclearflags_cmd.buffer, response, sizeof(response));
349 FromTpmUint32(response + kTpmResponseHeaderLength, &size);
355 response + kTpmResponseHeaderLength + sizeof(size),
387 uint8_t response[kTpmResponseHeaderLength + kPcrDigestLength];
394 result = TlclSendReceive(cmd.buffer, response, sizeof(response));
398 Memcpy(out_digest, response + kTpmResponseHeaderLength, kPcrDigestLength);
404 uint8_t response[TPM_LARGE_ENOUGH_COMMAND_SIZE];
411 result = TlclSendReceive(cmd.buffer, response, sizeof(response));
415 nvdata = response + kTpmResponseHeaderLength + sizeof(size);
421 uint8_t response[TPM_LARGE_ENOUGH_COMMAND_SIZE];
424 TlclSendReceive(tpm_getownership_cmd.buffer, response, sizeof(response));
427 FromTpmUint32(response + kTpmResponseHeaderLength, &size);
432 response + kTpmResponseHeaderLength + sizeof(size),
439 uint8_t response[TPM_LARGE_ENOUGH_COMMAND_SIZE];
445 /* There must be room in the response buffer for the bytes. */
451 result = TlclSendReceive(cmd.buffer, response, sizeof(response));
454 FromTpmUint32(response + kTpmResponseHeaderLength, size);
460 get_random_cursor = response + kTpmResponseHeaderLength