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