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, _ key As AsymmetricKeyAlgorithm, _ settings As XtsSettings _ ) |
| C# |
|---|
public XtsStream( Stream baseStream, AsymmetricKeyAlgorithm key, XtsSettings settings ) |
Parameters
- baseStream
- Type: System.IO..::..Stream
The base stream that contains or will contain encrypted data in the Rebex XTS format.
- key
- Type: Rebex.Security.Cryptography..::..AsymmetricKeyAlgorithm
The public or private key used to encrypt or decrypt a randomly-generated password.
- settings
- Type: Rebex.Security..::..XtsSettings
XTS settings.
Exceptions
| Exception | Condition |
|---|---|
| System..::..NotSupportedException | baseStream is not readable or seekable. |
| System..::..ArgumentNullException | baseStream or key is null. |