Lines Matching refs:modes
444 keymaster_block_mode_t** modes, in get_supported_block_modes() argument
449 if (!modes || !modes_length) in get_supported_block_modes()
454 return km1_dev->get_supported_block_modes(km1_dev, algorithm, purpose, modes, modes_length); in get_supported_block_modes()
469 *modes = reinterpret_cast<keymaster_block_mode_t*>(malloc(*modes_length * sizeof(**modes))); in get_supported_block_modes()
470 if (!*modes) in get_supported_block_modes()
472 std::copy(response.results, response.results + response.results_length, *modes); in get_supported_block_modes()
480 keymaster_padding_t** modes, in get_supported_padding_modes() argument
485 if (!modes || !modes_length) in get_supported_padding_modes()
490 return km1_dev->get_supported_padding_modes(km1_dev, algorithm, purpose, modes, in get_supported_padding_modes()
505 *modes = reinterpret_cast<keymaster_padding_t*>(malloc(*modes_length * sizeof(**modes))); in get_supported_padding_modes()
506 if (!*modes) in get_supported_padding_modes()
508 std::copy(response.results, response.results + response.results_length, *modes); in get_supported_padding_modes()