Function olm_sys::olm_sas_generate_bytes [−][src]
pub unsafe extern "C" fn olm_sas_generate_bytes(
sas: *mut OlmSAS,
info: *const c_void,
info_length: usize,
output: *mut c_void,
output_length: usize
) -> usize
Generate bytes to use for the short authentication string.
@param[in] sas the SAS object.
@param[in] info extra information to mix in when generating the bytes, as
per the Matrix spec.
@param[in] info_length the length of the info
parameter.
@param[out] output the output buffer.
@param[in] output_length the size of the output buffer. For hex-based SAS
as in the Matrix spec, this will be 5.
@return olm_error()
on failure. If their key wasn’t set then
olm_sas_last_error()
will be SAS_THEIR_KEY_NOT_SET
.