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 PrivateKeyInfo, _ settings As XtsSettings _ ) |
C# |
---|
public XtsStream( Stream baseStream, PrivateKeyInfo 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.Pkcs..::..PrivateKeyInfo
The 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. |