public PGPDecrypt(string encryptedFilePath, string privKeyPath, string password, string outputPath, string pubKeyPath) { _encryptedFilePath = encryptedFilePath; _outputPath = outputPath; _password = password.ToCharArray(); _privKeyPath = privKeyPath; pgpKeys = new PgpEncryptionKeys(pubKeyPath, privKeyPath, password); }
private const int BufferSize = 0x10000; // should always be power of 2 /// <summary> /// Instantiate a new PgpEncrypt class with initialized PgpEncryptionKeys. /// </summary> /// <param name="encryptionKeys"></param> /// <exception cref="ArgumentNullException">encryptionKeys is null</exception> public PgpEncrypt(PgpEncryptionKeys encryptionKeys) { if (encryptionKeys == null) { throw new ArgumentNullException("encryptionKeys", "encryptionKeys is null."); } m_encryptionKeys = encryptionKeys; }