Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

XtsStream Class

Namespace: Rebex.Security
Assembly: Rebex.Security.dll (version 7.0.9119)

Implements XTS-AES, a standard algorithm for protection of stored data defined by IEEE P1619.

Syntax
public class XtsStream : Stream, IAsyncDisposable, IDisposable
Inheritance
Object
MarshalByRefObject
Stream
XtsStream
Implements
IAsyncDisposable
IDisposable
Inherited Members
Stream.BeginRead(Byte[], Int32, Int32, AsyncCallback, Object)
Stream.BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object)
Stream.CanTimeout
Stream.Close()
Stream.CopyTo(Stream)
Stream.CopyTo(Stream, Int32)
Stream.CopyToAsync(Stream)
Stream.CopyToAsync(Stream, Int32)
Stream.CopyToAsync(Stream, Int32, CancellationToken)
Stream.CopyToAsync(Stream, CancellationToken)
Stream.CreateWaitHandle()
Stream.Dispose()
Stream.DisposeAsync()
Stream.EndRead(IAsyncResult)
Stream.EndWrite(IAsyncResult)
Stream.FlushAsync()
Stream.FlushAsync(CancellationToken)
Stream.Null
Stream.ObjectInvariant()
Stream.Read(Span<Byte>)
Stream.ReadAsync(Byte[], Int32, Int32)
Stream.ReadAsync(Byte[], Int32, Int32, CancellationToken)
Stream.ReadAsync(Memory<Byte>, CancellationToken)
Stream.ReadAtLeast(Span<Byte>, Int32, Boolean)
Stream.ReadAtLeastAsync(Memory<Byte>, Int32, Boolean, CancellationToken)
Stream.ReadByte()
Stream.ReadExactly(Byte[], Int32, Int32)
Stream.ReadExactly(Span<Byte>)
Stream.ReadExactlyAsync(Byte[], Int32, Int32, CancellationToken)
Stream.ReadExactlyAsync(Memory<Byte>, CancellationToken)
Stream.ReadTimeout
Stream.Synchronized(Stream)
Stream.ValidateBufferArguments(Byte[], Int32, Int32)
Stream.ValidateCopyToArguments(Stream, Int32)
Stream.Write(ReadOnlySpan<Byte>)
Stream.WriteAsync(Byte[], Int32, Int32)
Stream.WriteAsync(Byte[], Int32, Int32, CancellationToken)
Stream.WriteAsync(ReadOnlyMemory<Byte>, CancellationToken)
Stream.WriteByte(Byte)
Stream.WriteTimeout
MarshalByRefObject.GetLifetimeService()
MarshalByRefObject.InitializeLifetimeService()
MarshalByRefObject.MemberwiseClone(Boolean)
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()

Constructors

Name Description
XtsStream(Stream, AsymmetricKeyAlgorithm, XtsSettings)

Initializes a new instance of the XtsStream class.

XtsStream(Stream, AsymmetricKeyAlgorithm, Int32)

Initializes a new instance of the XtsStream class.

XtsStream(Stream, PrivateKeyInfo, XtsSettings)

Initializes a new instance of the XtsStream class.

XtsStream(Stream, PrivateKeyInfo, Int32)

Initializes a new instance of the XtsStream class.

XtsStream(Stream, PublicKeyInfo, XtsSettings)

Initializes a new instance of the XtsStream class.

XtsStream(Stream, PublicKeyInfo, Int32)

Initializes a new instance of the XtsStream class.

XtsStream(Stream, Byte[])

Initializes a new instance of the XtsStream class.

XtsStream(Stream, Byte[], XtsSettings)

Initializes a new instance of the XtsStream class.

XtsStream(Stream, Byte[], Int32)

Initializes a new instance of the XtsStream class.

XtsStream(Stream, String)

Initializes a new instance of the XtsStream class.

XtsStream(Stream, String, XtsSettings)

Initializes a new instance of the XtsStream class.

XtsStream(Stream, String, Int32)

Initializes a new instance of the XtsStream class.

XtsStream(String, AsymmetricKeyAlgorithm, XtsSettings)

Initializes a new instance of the XtsStream class.

XtsStream(String, Byte[])

Initializes a new instance of the XtsStream class.

XtsStream(String, Byte[], XtsSettings)

Initializes a new instance of the XtsStream class.

XtsStream(String, String)

Initializes a new instance of the XtsStream class.

XtsStream(String, String, XtsSettings)

Initializes a new instance of the XtsStream class.

Fields

Name Description
DefaultBlockSize

Default block size (64 KB).

Properties

Name Description
BlockSize

Gets a size of one XTS block in bytes

CanRead

Gets a value indicating whether the stream supports reading.

CanSeek

Gets a value indicating whether the stream supports seeking.

CanWrite

Gets a value indicating whether the stream supports writing.

Length

Gets the length in bytes of the stream.

Position

Gets or sets the position within the stream.

Methods

Name Description
Dispose(Boolean)

Releases resources used by this stream.

Flush()

Clears all buffers for this stream and causes any buffered data to be written to the underlying device.

Read(Byte[], Int32, Int32)

Reads a sequence of bytes from the stream and advances the position within the stream by the number of bytes read.

Seek(Int64, SeekOrigin)

Sets the position within the stream.

SetLength(Int64)

Sets the length of the stream.

Write(Byte[], Int32, Int32)

Writes a sequence of bytes to the stream and advances the current position within this stream by the number of bytes written.

In This Article
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies