Function olm_sys::olm_account_generate_one_time_keys
source · [−]pub unsafe extern "C" fn olm_account_generate_one_time_keys(
account: *mut OlmAccount,
number_of_keys: usize,
random: *mut c_void,
random_length: usize
) -> usize
Expand description
Generates a number of new one time keys. If the total number of keys stored by this account exceeds max_number_of_one_time_keys() then the old keys are discarded. Returns olm_error() on error. If the number of random bytes is too small then olm_account_last_error() will be “NOT_ENOUGH_RANDOM”.