Initializes a new instance of the XtsStream class.
Namespace:
Rebex.Security
Assembly:
Rebex.Security (in Rebex.Security.dll)
Syntax
| Visual Basic |
|---|
Public Sub New ( _ baseStream As Stream, _ password As Byte() _ ) |
| C# |
|---|
public XtsStream( Stream baseStream, byte[] password ) |
Parameters
- baseStream
- Type: System.IO..::..Stream
The base stream that contains or will contain encrypted data in the Rebex XTS format.
- password
- Type: array<System..::..Byte>[]()[][]
The password that is used to generate the encryption key.
Exceptions
| Exception | Condition |
|---|---|
| System..::..NotSupportedException | baseStream is not readable or seekable. |
| System..::..ArgumentNullException | baseStream or password is null. |