Skip to content

Decryption logic AzureIP_test.Iprotect  #35

@mohanse

Description

@mohanse

For EU tenant to perform adhoc decryption using symmetric key , the following code throws exception as the symmetric key cred is null

93 string decryptedFilePath = SafeFileApiNativeMethods.IpcfDecryptFile(filePath.Trim(), SafeFileApiNativeMethods.DecryptFlags.IPCF_DF_FLAG_DEFAULT, false, false, false, IntPtr.Zero, null, null, null);

But the following fixes the issues as it passes symmetric key cred:
string decryptedFilePath = SafeFileApiNativeMethods.IpcfDecryptFile(filePath.Trim(), SafeFileApiNativeMethods.DecryptFlags.IPCF_DF_FLAG_OPEN_AS_RMS_AWARE, true, false, true, IntPtr.Zero, symmetricKeyCred,null);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions