Initializes a new instance of the XtsStream class.
Assembly: Rebex.Security (in Rebex.Security.dll)
Public Sub New ( _ baseStream As , _ key As PrivateKeyInfo, _ blockSize As _ )
public XtsStream( baseStream, PrivateKeyInfo key, blockSize )
The base stream that contains or will contain encrypted data in the Rebex XTS format.
- Type: Rebex.Security.Cryptography.Pkcs..::..PrivateKeyInfo
The private key used to encrypt or decrypt a randomly-generated password.
The XTS algorithm block size in bytes. Must be multiple of 16. Default value is 65536, maximum number is 1048576. Use smaller buffer if you read very small parts of a stream from different places, or use larger buffer if you do sequential reads of large blocks. Setting this value might negatively impact the performance.
|baseStream is not readable or seekable.|
|baseStream or key is null.|
|blockSize is negative, zero or not multiple of 16.|