public static string IpcfDecryptFileStream( Stream inputStream, string inputFilePath, DecryptFlags flags, bool suppressUI, bool offline, bool hasUserConsent, Form parentWindow, ref Stream outputStream, WaitHandle cancelCurrentOperation = null) { SafeIpcPromptContext ipcContext = SafeNativeMethods.CreateIpcPromptContext(suppressUI, offline, hasUserConsent, IpcWindow.Create(parentWindow).Handle, cancelCurrentOperation); return(IpcfDecryptFileStream( inputStream, inputFilePath, flags, ref outputStream, ipcContext)); }
public static string IpcfEncryptFileStream( Stream inputStream, string inputFilePath, SafeInformationProtectionLicenseHandle licenseHandle, EncryptFlags flags, bool suppressUI, bool offline, bool hasUserConsent, Form parentWindow, SymmetricKeyCredential symmKey, ref Stream outputStream, WaitHandle cancelCurrentOperation = null) { SafeIpcPromptContext ipcContext = SafeNativeMethods.CreateIpcPromptContext( suppressUI, offline, hasUserConsent, IpcWindow.Create(parentWindow).Handle, symmKey, cancelCurrentOperation); return(IpcfEncryptFileStream( inputStream, inputFilePath, licenseHandle, flags, ref outputStream, ipcContext)); }
public static string IpcfDecryptFileStream( Stream inputStream, string inputFilePath, DecryptFlags flags, bool suppressUI, bool offline, bool hasUserConsent, Form parentWindow, ref Stream outputStream) { return(IpcfDecryptFileStream( inputStream, inputFilePath, flags, suppressUI, offline, hasUserConsent, IpcWindow.Create(parentWindow).Handle, ref outputStream)); }
public static string IpcfDecryptFile( string inputFile, DecryptFlags flags, bool suppressUI, bool offline, bool hasUserConsent, Form parentWindow, SymmetricKeyCredential symmKey, string outputDirectory = null) { return(IpcfDecryptFile( inputFile, flags, suppressUI, offline, hasUserConsent, IpcWindow.Create(parentWindow).Handle, symmKey, outputDirectory)); }
public static string IpcfEncryptFileStream( Stream inputStream, string inputFilePath, SafeInformationProtectionLicenseHandle licenseHandle, EncryptFlags flags, bool suppressUI, bool offline, bool hasUserConsent, Form parentWindow, SymmetricKeyCredential symmKey, ref Stream outputStream) { return(IpcfEncryptFileStream( inputStream, inputFilePath, licenseHandle, flags, suppressUI, offline, hasUserConsent, IpcWindow.Create(parentWindow).Handle, symmKey, ref outputStream)); }
public static string IpcfEncryptFile( string inputFile, string templateId, EncryptFlags flags, bool suppressUI, bool offline, bool hasUserConsent, Form parentWindow, SymmetricKeyCredential symmKey = null, string outputDirectory = null, WaitHandle cancelCurrentOperation = null) { return(IpcfEncryptFile( inputFile, templateId, flags, suppressUI, offline, hasUserConsent, IpcWindow.Create(parentWindow).Handle, symmKey, outputDirectory, cancelCurrentOperation)); }