-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
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
Labels
No labels