PowerTCP Zip Compression for .NET
AesDecryptingStream Constructor




When reading, the encrypted data stream to be decrypted. When writing, the stream to be filled with decrypted data.
The encryption level expected. Only Encryption.Aes128Bit, Encryption.Aes192Bit or Encryption.Aes256Bit may be specifed.
The password to be used for decryption.
Creates a stream that will apply AES decryption to data passing through it.
Syntax
Public Function New( _
   ByVal innerStream As Stream, _
   ByVal encryption As Encryption, _
   ByVal password As String _
)
Dim innerStream As Stream
Dim encryption As Encryption
Dim password As String
 
Dim instance As New AesDecryptingStream(innerStream, encryption, password)
public AesDecryptingStream( 
   Stream innerStream,
   Encryption encryption,
   string password
)
public: AesDecryptingStream( 
   Stream* innerStream,
   Encryption encryption,
   string* password
)
public:
AesDecryptingStream( 
   Stream^ innerStream,
   Encryption encryption,
   String^ password
)

Parameters

innerStream
When reading, the encrypted data stream to be decrypted. When writing, the stream to be filled with decrypted data.
encryption
The encryption level expected. Only Encryption.Aes128Bit, Encryption.Aes192Bit or Encryption.Aes256Bit may be specifed.
password
The password to be used for decryption.
Remarks

AES decryption will be applied to all bytes passing through this stream.

Flush() must be used after the final Write() to check trailing authentication code.

See Also

Reference

AesDecryptingStream Class
AesDecryptingStream Members


PowerTCP Zip for .NET Documentation Version 2.1.1
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic