Function olm_sys::olm_pickle_pk_decryption
source · [−]pub unsafe extern "C" fn olm_pickle_pk_decryption(
decryption: *mut OlmPkDecryption,
key: *const c_void,
key_length: usize,
pickled: *mut c_void,
pickled_length: usize
) -> usize
Expand description
Stores decryption object as a base64 string. Encrypts the object using the supplied key. Returns the length of the pickled object on success. Returns olm_error() on failure. If the pickle output buffer is smaller than olm_pickle_pk_decryption_length() then olm_pk_decryption_last_error() will be “OUTPUT_BUFFER_TOO_SMALL”