[][src]Function libthemis_sys::themis_secure_message_unwrap

pub unsafe extern "C" fn themis_secure_message_unwrap(
    private_key: *const u8,
    private_key_length: usize,
    public_key: *const u8,
    public_key_length: usize,
    wrapped_message: *const u8,
    wrapped_message_length: usize,
    message: *mut u8,
    message_length: *mut usize
) -> themis_status_t

@brief unwrap secure message to plain message @param [in] private_key private key @param [in] private_key_length length of private_key @param [in] public_key peer public key @param [in] public_key_length length of public_key @param [in] wrapped_message wrapped message to unwrap @param [in] wrapped_message_length length of wrapped_message @param [out] message buffer for plain message store. May be set to NULL for plain message length determination @param [in, out] message_length length of message @return THEMIS_SUCCESS on success or THEMIS_FAIL on failure @note If message==NULL or message_length is not enought for plain message storage then THEMIS_BUFFER_TOO_SMALL will return and message_length will store length of buffer needed for plain message store