Class AesDataHeader
Represents the header as saved to the encrypted file.
Inheritance
System.Object
AesDataHeader
Namespace: Catalog.Helpers
Assembly: Catalog.dll
Syntax
public class AesDataHeader
Properties
IV
The IV for decrypting.
Declaration
public byte[] IV { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] |
Length
The length of the header.
Declaration
public int Length { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Padding
The amount of padding for the last block.
Declaration
public int Padding { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
ReadHeaderAsync(IRandomAccessStream)
Reads a header from the current position of the stream. After calling the position of the stream will be at the first byte following the header.
Declaration
public static async Task<AesDataHeader> ReadHeaderAsync(IRandomAccessStream stream)
Parameters
Type | Name | Description |
---|---|---|
Windows.Storage.Streams.IRandomAccessStream | stream | The stream to read from. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<AesDataHeader> | The header. |
WriteHeaderAsync(IRandomAccessStream)
Writes the header to a stream.
Declaration
public async Task WriteHeaderAsync(IRandomAccessStream stream)
Parameters
Type | Name | Description |
---|---|---|
Windows.Storage.Streams.IRandomAccessStream | stream | The stream to be written to. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |