Lines Matching refs:modes
406 keymaster_block_mode_t** modes, in get_supported_block_modes() argument
410 if (!modes || !modes_length) return KM_ERROR_OUTPUT_PARAMETER_NULL; in get_supported_block_modes()
414 return km1_dev->get_supported_block_modes(km1_dev, algorithm, purpose, modes, modes_length); in get_supported_block_modes()
430 *modes = reinterpret_cast<keymaster_block_mode_t*>(malloc(*modes_length * sizeof(**modes))); in get_supported_block_modes()
431 if (!*modes) return KM_ERROR_MEMORY_ALLOCATION_FAILED; in get_supported_block_modes()
432 std::copy(response.results, response.results + response.results_length, *modes); in get_supported_block_modes()
440 keymaster_padding_t** modes, in get_supported_padding_modes() argument
444 if (!modes || !modes_length) return KM_ERROR_OUTPUT_PARAMETER_NULL; in get_supported_padding_modes()
448 return km1_dev->get_supported_padding_modes(km1_dev, algorithm, purpose, modes, in get_supported_padding_modes()
464 *modes = reinterpret_cast<keymaster_padding_t*>(malloc(*modes_length * sizeof(**modes))); in get_supported_padding_modes()
465 if (!*modes) return KM_ERROR_MEMORY_ALLOCATION_FAILED; in get_supported_padding_modes()
466 std::copy(response.results, response.results + response.results_length, *modes); in get_supported_padding_modes()