Lines Matching refs:data_length

584                                                        const uint8_t* data, size_t data_length) {  in add_rng_entropy()  argument
588 if (km1_dev) return km1_dev->add_rng_entropy(km1_dev, data, data_length); in add_rng_entropy()
592 request.random_data.Reinitialize(data, data_length); in add_rng_entropy()
601 const uint8_t* data, size_t data_length) { in add_rng_entropy() argument
607 return add_rng_entropy(&sk_dev->km1_device_, data, data_length); in add_rng_entropy()
886 request.key_data = KeymasterKeyBlob(key_data->data, key_data->data_length); in import_key()
949 export_data->data_length = 0; in export_key()
961 export_data->data_length = response.key_data_length; in export_key()
962 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(export_data->data_length)); in export_key()
964 memcpy(tmp, response.key_data, export_data->data_length); in export_key()
1004 if (attestation_challenge.data_length > kMaximumAttestationChallengeLength) { in attest_key()
1006 attestation_challenge.data_length, kMaximumAttestationChallengeLength); in attest_key()
1026 cert_chain->entries[i].data = reinterpret_cast<uint8_t*>(malloc(entry.data_length)); in attest_key()
1031 cert_chain->entries[i].data_length = entry.data_length; in attest_key()
1032 memcpy(const_cast<uint8_t*>(cert_chain->entries[i].data), entry.data, entry.data_length); in attest_key()
1216 output->data_length = 0; in update()
1222 if (input) request.input.Reinitialize(input->data, input->data_length); in update()
1238 output->data_length = response.output.available_read(); in update()
1239 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(output->data_length)); in update()
1241 memcpy(tmp, response.output.peek_read(), output->data_length); in update()
1289 output->data_length = 0; in finish()
1295 if (signature && signature->data_length > 0) in finish()
1296 request.signature.Reinitialize(signature->data, signature->data_length); in finish()
1310 output->data_length = response.output.available_read(); in finish()
1311 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(output->data_length)); in finish()
1313 memcpy(tmp, response.output.peek_read(), output->data_length); in finish()
1351 if (input && input->data && input->data_length) { in finish()
1354 accumulated_output.reserve(input->data_length); // Guess at output size in finish()
1357 while (mutable_input.data_length > 0) { in finish()
1368 accumulated_output.reserve(accumulated_output.size() + update_output.data_length); in finish()
1369 std::copy(update_output.data, update_output.data + update_output.data_length, in finish()
1377 mutable_input.data_length -= input_consumed; in finish()
1411 size_t finish_out_length = accumulated_output.size() + finish_output.data_length; in finish()
1415 std::copy(finish_output.data, finish_output.data + finish_output.data_length, in finish()
1419 finish_output.data_length = finish_out_length; in finish()
1425 if ((!out_params && finish_out_params.length) || (!output && finish_output.data_length)) { in finish()
1441 if (signature && signature->data_length > 0) in finish()
1442 request.signature.Reinitialize(signature->data, signature->data_length); in finish()
1443 if (input && input->data_length > 0) in finish()
1444 request.input.Reinitialize(input->data, input->data_length); in finish()
1458 output->data_length = response.output.available_read(); in finish()
1459 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(output->data_length)); in finish()
1461 memcpy(tmp, response.output.peek_read(), output->data_length); in finish()