Exemplo n.º 1
0
        //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);
        }
Exemplo n.º 2
0
 //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;
 }