Lines Matching refs:formats_length
541 keymaster_key_format_t** formats, size_t* formats_length) {
545 if (!formats || !formats_length)
550 return km1_dev->get_supported_import_formats(km1_dev, algorithm, formats, formats_length);
562 *formats_length = response.results_length;
564 reinterpret_cast<keymaster_key_format_t*>(malloc(*formats_length * sizeof(**formats)));
574 keymaster_key_format_t** formats, size_t* formats_length) {
578 if (!formats || !formats_length)
583 return km1_dev->get_supported_export_formats(km1_dev, algorithm, formats, formats_length);
595 *formats_length = response.results_length;
597 reinterpret_cast<keymaster_key_format_t*>(malloc(*formats_length * sizeof(**formats)));
600 std::copy(response.results, response.results + *formats_length, *formats);