[][src]Function libthemis_sys::themis_secure_message_decrypt

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

@brief decrypt secure message to plaintext 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] encrypted_message encrypted message to decrypt @param [in] encrypted_message_length length of encrypted_message @param [out] message buffer for plaintext message. May be set to NULL to determine expected length of plaintext message @param [in, out] message_length length of message @return THEMIS_SUCCESS on success or an error code on failure @note If message is NULL or message_length is not enough to store the plaintext message then THEMIS_BUFFER_TOO_SMALL will be returned and message_length will contain the length of the buffer needed to store the encrypted message.