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
modeKeyConfirmationModeUnilateral or bilateral.
providerPartyThe party computing this tag.
partyUIdReadOnlySpan<byte>ID_U.
partyVIdReadOnlySpan<byte>ID_V.
partyUEphemeralDataReadOnlySpan<byte>U's ephemeral public key or nonce, or empty.
partyVEphemeralDataReadOnlySpan<byte>V's ephemeral public key or nonce, or empty.
textReadOnlySpan<byte>Optional extra text appended to MacData.
Properties
Mode
Unilateral or bilateral.
public KeyConfirmationMode Mode { get; }
Property Value
Provider
The party computing this tag.
public Party Provider { get; }
Property Value
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[]