Lines Matching refs:data_length
625 const uint8_t* data, size_t data_length) { in add_rng_entropy() argument
631 return km1_dev->add_rng_entropy(km1_dev, data, data_length); in add_rng_entropy()
634 request.random_data.Reinitialize(data, data_length); in add_rng_entropy()
644 const uint8_t* data, size_t data_length) { in add_rng_entropy() argument
652 return add_rng_entropy(&sk_dev->km1_device_, data, data_length); in add_rng_entropy()
937 request.SetKeyMaterial(key_data->data, key_data->data_length); in import_key()
1007 export_data->data_length = 0; in export_key()
1019 export_data->data_length = response.key_data_length; in export_key()
1020 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(export_data->data_length)); in export_key()
1023 memcpy(tmp, response.key_data, export_data->data_length); in export_key()
1066 if (attestation_challenge.data_length > kMaximumAttestationChallengeLength) { in attest_key()
1068 attestation_challenge.data_length, kMaximumAttestationChallengeLength); in attest_key()
1090 cert_chain->entries[i].data = reinterpret_cast<uint8_t*>(malloc(entry.data_length)); in attest_key()
1095 cert_chain->entries[i].data_length = entry.data_length; in attest_key()
1096 memcpy(const_cast<uint8_t*>(cert_chain->entries[i].data), entry.data, entry.data_length); in attest_key()
1279 output->data_length = 0; in update()
1285 request.input.Reinitialize(input->data, input->data_length); in update()
1303 output->data_length = response.output.available_read(); in update()
1304 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(output->data_length)); in update()
1307 memcpy(tmp, response.output.peek_read(), output->data_length); in update()
1355 output->data_length = 0; in finish()
1360 if (signature && signature->data_length > 0) in finish()
1361 request.signature.Reinitialize(signature->data, signature->data_length); in finish()
1376 output->data_length = response.output.available_read(); in finish()
1377 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(output->data_length)); in finish()
1380 memcpy(tmp, response.output.peek_read(), output->data_length); in finish()