Panopticon 25.1
Panopticon C Programming Guide

# decryptFile()

This function removes the encryption on a protected file, giving access to the original, unencrypted file.

## Syntax

    KVPanopticonError decryptFile(
       KVPanopticonContext* const context,
       const char* const inputFilePath,
       const char* const outputFilePath
    );

## Arguments

`context` | A pointer to `KVPanopticonContext`, initialized by calling init().
`inputFilePath` | A null-terminated C string that contains the path of the file to decrypt.
`outputFilePath` | A null-terminated C string that contains the path of the output file to create. If a file already exists at this location, Panopticon overwrites it.

## Returns

If the function was successful, it returns `KVP_Success`. Otherwise, it returns a KVPanopticonError value describing the problem.

## Discussion

- To decrypt a protected file, Panopticon must make an HTTP request.

- By default, Panopticon uses the system proxy when it makes HTTP requests. You can also specify the proxy manually in the `cryptographyservices.cfg`. See Configure the Proxy for RMS.

- This function returns an error if decryption is not supported for the `inputFile` you provide. You can obtain information about the level of support provided by using encryptionInfo().

Copyright 2020-2024 Open Text
Version 25.1 | Last updated January 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: File Content Extraction Panopticon 25.1

Topic Title: decryptFile()