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 PublicKeyInfo, _
	settings As XtsSettings _
)
C#
public XtsStream(
	Stream baseStream,
	PublicKeyInfo 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..::..PublicKeyInfo
The public key used to encrypt a randomly-generated password.
settings
Type: Rebex.Security..::..XtsSettings
XTS settings.

Exceptions

ExceptionCondition
System..::..NotSupportedExceptionbaseStream is not readable or seekable.
System..::..ArgumentNullExceptionbaseStream or key is null.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also