//wrap encrypted stream into AESDecriptionStream wrapper internal static Stream DecryptStream(Stream encryptedStream, EncryptionInstructions encryptionInstructions) { AESDecryptionStream aesDecryptStream; aesDecryptStream = new AESDecryptionStream(encryptedStream, encryptionInstructions.EnvelopeKey, encryptionInstructions.InitializationVector); return(aesDecryptStream); }
//wrap encrypted stream into AESDecriptionStream wrapper internal static Stream DecryptStream(Stream encryptedStream, EncryptionInstructions encryptionInstructions) { AESDecryptionStream aesDecryptStream; aesDecryptStream = new AESDecryptionStream(encryptedStream, encryptionInstructions.EnvelopeKey, encryptionInstructions.InitializationVector); return aesDecryptStream; }