Salmon
Loading...
Searching...
No Matches
Mku.Sequence.NonceSequence Class Reference

Represents a nonce sequence for a specific drive and device. More...

Public Types

enum  Status { New , Active , Revoked }
 Sequencer status. More...
 

Public Member Functions

 NonceSequence (string driveId, string authId, byte[] nextNonce, byte[] maxNonce, Status status)
 Instantiate a nonce sequence for a drive with the provided authorization id.
 

Properties

string DriveId [get, set]
 The drive ID.
 
string AuthId [get, set]
 The authorization id of the device for the specific drive.
 
byte[] NextNonce [get, set]
 Then next available nonce.
 
byte[] MaxNonce [get, set]
 The maximum nonce.
 
Status SequenceStatus [get, set]
 The current status of the sequence.
 

Detailed Description

Represents a nonce sequence for a specific drive and device.

Member Enumeration Documentation

◆ Status

Sequencer status.

See: New

See: Active

See: Revoked

Enumerator
New 

Newly created sequence.

Active 

Currently active sequence used to provide nonces for data encryption ie: file contents and filenames.

Revoked 

Revoked sequence. This cannot be reused you need to re-authorize the device.

Constructor & Destructor Documentation

◆ NonceSequence()

Mku.Sequence.NonceSequence.NonceSequence ( string driveId,
string authId,
byte[] nextNonce,
byte[] maxNonce,
Status status )

Instantiate a nonce sequence for a drive with the provided authorization id.

Parameters
driveIdThe drive ID.
authIdThe authorization id for this device and drive.
nextNonceThe next available nonce to be used.
maxNonceThe maximum nonce.
statusThe status of the sequencer.

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