Function olm_sys::olm_create_sas [−][src]
pub unsafe extern "C" fn olm_create_sas(
sas: *mut OlmSAS,
random: *mut c_void,
random_length: usize
) -> usize
Creates a new SAS object.
@param[in] sas the SAS object to create, initialized by olm_sas()
.
@param[in] random array of random bytes. The contents of the buffer may be
overwritten.
@param[in] random_length the number of random bytes provided. Must be at
least olm_create_sas_random_length()
.
@return olm_error()
on failure. If there weren’t enough random bytes then
olm_sas_last_error()
will be NOT_ENOUGH_RANDOM
.