Table of Contents

Class KeyConfirmationContext

Namespace
Kdf108
Assembly
Kdf108.dll

The public inputs to key-confirmation MacData: who confirms, the identifiers, and the ephemeral data.

public sealed class KeyConfirmationContext
Inheritance
KeyConfirmationContext
Inherited Members

Constructors

KeyConfirmationContext(KeyConfirmationMode, Party, ReadOnlySpan<byte>, ReadOnlySpan<byte>, ReadOnlySpan<byte>, ReadOnlySpan<byte>, ReadOnlySpan<byte>)

Creates the context.

public KeyConfirmationContext(KeyConfirmationMode mode, Party provider, ReadOnlySpan<byte> partyUId, ReadOnlySpan<byte> partyVId, ReadOnlySpan<byte> partyUEphemeralData, ReadOnlySpan<byte> partyVEphemeralData, ReadOnlySpan<byte> text = default)

Parameters

mode KeyConfirmationMode

Unilateral or bilateral.

provider Party

The party computing this tag.

partyUId ReadOnlySpan<byte>

ID_U.

partyVId ReadOnlySpan<byte>

ID_V.

partyUEphemeralData ReadOnlySpan<byte>

U's ephemeral public key or nonce, or empty.

partyVEphemeralData ReadOnlySpan<byte>

V's ephemeral public key or nonce, or empty.

text ReadOnlySpan<byte>

Optional extra text appended to MacData.

Properties

Mode

Unilateral or bilateral.

public KeyConfirmationMode Mode { get; }

Property Value

KeyConfirmationMode

Provider

The party computing this tag.

public Party Provider { get; }

Property Value

Party

Methods

EncodeMacData()

MacData = message || ID_P || ID_R || EphemData_P || EphemData_R {|| Text}, where P is the provider and R the recipient (ยง5.9.1).

public byte[] EncodeMacData()

Returns

byte[]