Lines Matching refs:data_length
633 const uint8_t* data, size_t data_length) { in add_rng_entropy() argument
639 return km1_dev->add_rng_entropy(km1_dev, data, data_length); in add_rng_entropy()
642 request.random_data.Reinitialize(data, data_length); in add_rng_entropy()
652 const uint8_t* data, size_t data_length) { in add_rng_entropy() argument
660 return add_rng_entropy(&sk_dev->km1_device_, data, data_length); in add_rng_entropy()
959 request.SetKeyMaterial(key_data->data, key_data->data_length); in import_key()
1029 export_data->data_length = 0; in export_key()
1041 export_data->data_length = response.key_data_length; in export_key()
1042 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(export_data->data_length)); in export_key()
1045 memcpy(tmp, response.key_data, export_data->data_length); in export_key()
1087 if (attestation_challenge.data_length > kMaximumAttestationChallengeLength) { in attest_key()
1089 attestation_challenge.data_length, kMaximumAttestationChallengeLength); in attest_key()
1111 cert_chain->entries[i].data = reinterpret_cast<uint8_t*>(malloc(entry.data_length)); in attest_key()
1116 cert_chain->entries[i].data_length = entry.data_length; in attest_key()
1117 memcpy(const_cast<uint8_t*>(cert_chain->entries[i].data), entry.data, entry.data_length); in attest_key()
1317 output->data_length = 0; in update()
1323 request.input.Reinitialize(input->data, input->data_length); in update()
1341 output->data_length = response.output.available_read(); in update()
1342 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(output->data_length)); in update()
1345 memcpy(tmp, response.output.peek_read(), output->data_length); in update()
1396 output->data_length = 0; in finish()
1401 if (signature && signature->data_length > 0) in finish()
1402 request.signature.Reinitialize(signature->data, signature->data_length); in finish()
1417 output->data_length = response.output.available_read(); in finish()
1418 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(output->data_length)); in finish()
1421 memcpy(tmp, response.output.peek_read(), output->data_length); in finish()
1463 if (input && input->data && input->data_length) { in finish()
1466 accumulated_output.reserve(input->data_length); // Guess at output size in finish()
1469 while (mutable_input.data_length > 0) { in finish()
1480 accumulated_output.reserve(accumulated_output.size() + update_output.data_length); in finish()
1481 std::copy(update_output.data, update_output.data + update_output.data_length, in finish()
1489 mutable_input.data_length -= input_consumed; in finish()
1523 size_t finish_out_length = accumulated_output.size() + finish_output.data_length; in finish()
1527 std::copy(finish_output.data, finish_output.data + finish_output.data_length, in finish()
1531 finish_output.data_length = finish_out_length; in finish()
1537 if ((!out_params && finish_out_params.length) || (!output && finish_output.data_length)) { in finish()
1557 if (signature && signature->data_length > 0) in finish()
1558 request.signature.Reinitialize(signature->data, signature->data_length); in finish()
1559 if (input && input->data_length > 0) in finish()
1560 request.input.Reinitialize(input->data, input->data_length); in finish()
1575 output->data_length = response.output.available_read(); in finish()
1576 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(output->data_length)); in finish()
1579 memcpy(tmp, response.output.peek_read(), output->data_length); in finish()