[][src]Function libthemis_sys::themis_secure_message_sign

pub unsafe extern "C" fn themis_secure_message_sign(
    private_key: *const u8,
    private_key_length: usize,
    message: *const u8,
    message_length: usize,
    signed_message: *mut u8,
    signed_message_length: *mut usize
) -> themis_status_t

@brief securely sign a message @param [in] private_key private key @param [in] private_key_length length of private_key @param [in] message message to sign @param [in] message_length length of message @param [out] signed_message buffer for signed message. May be set to NULL to determine expected length of signed message @param [in, out] signed_message_length length of signed_message @return THEMIS_SUCCESS on success or an error code on failure @note If signed_message is NULL or signed_message_length is not enough to store the signed message then THEMIS_BUFFER_TOO_SMALL will be returned and signed_message_length will contain the length of the buffer needed to store the signed message.