Lines Matching refs:formats
551 keymaster_key_format_t** formats, size_t* formats_length) { in get_supported_import_formats() argument
555 if (!formats || !formats_length) in get_supported_import_formats()
560 return km1_dev->get_supported_import_formats(km1_dev, algorithm, formats, formats_length); in get_supported_import_formats()
573 *formats = in get_supported_import_formats()
574 reinterpret_cast<keymaster_key_format_t*>(malloc(*formats_length * sizeof(**formats))); in get_supported_import_formats()
575 if (!*formats) in get_supported_import_formats()
577 std::copy(response.results, response.results + response.results_length, *formats); in get_supported_import_formats()
584 keymaster_key_format_t** formats, size_t* formats_length) { in get_supported_export_formats() argument
588 if (!formats || !formats_length) in get_supported_export_formats()
593 return km1_dev->get_supported_export_formats(km1_dev, algorithm, formats, formats_length); in get_supported_export_formats()
606 *formats = in get_supported_export_formats()
607 reinterpret_cast<keymaster_key_format_t*>(malloc(*formats_length * sizeof(**formats))); in get_supported_export_formats()
608 if (!*formats) in get_supported_export_formats()
610 std::copy(response.results, response.results + *formats_length, *formats); in get_supported_export_formats()