Salmon
Loading...
Searching...
No Matches
Mku.Salmon.SalmonHeader Class Reference

Header embedded in the SalmonStream. Header contains nonce and other information for decrypting the stream. More...

Static Public Member Functions

static SalmonHeader ParseHeaderData (Stream stream)
 Parse the header data from the stream.
 

Properties

byte[] MagicBytes = new byte[SalmonGenerator.MAGIC_LENGTH] [get, set]
 Magic bytes.
 
byte Version [get, set]
 Format version from SalmonGenerator.VERSION.
 
int ChunkSize [get, set]
 Chunk size used for data integrity.
 
byte[] Nonce [get, set]
 Starting nonce for the CTR mode. This is the upper part of the Counter.
 
byte[] HeaderData [get, set]
 Binary data.
 

Detailed Description

Header embedded in the SalmonStream. Header contains nonce and other information for decrypting the stream.

Member Function Documentation

◆ ParseHeaderData()

static SalmonHeader Mku.Salmon.SalmonHeader.ParseHeaderData ( Stream stream)
static

Parse the header data from the stream.

Parameters
streamThe stream.
Returns
The header
Exceptions
IOExceptionThrown if error during IO

The documentation for this class was generated from the following file: