Show / Hide Table of Contents

U2fBuffer Class

Namespace: Yubico.YubiKey.U2f Assembly: Yubico.YubiKey.dll

This is a base class for those classes that need to collect and encode data into a single buffer, either as data in a command or data to verify. This will hold the buffer along with the Application ID Hash and Client Data Hash. Subclasses can add more data to be placed into the buffer.

C#
public abstract class U2fBuffer
Inheritance object U2fBuffer
U2fBufferCommand
U2fSignedData

Remarks

Only the SDK will ever need to create subclasses, there is no reason for any other application to do so.

Constructors

Name Description
U2fBuffer(int, int, int)

Initialize the object to the given values.

Fields

Name Description
AppIdHashLength
ClientDataHashLength
CoordinateLength
CounterLength
KeyHandleLength
PublicKeyLength
PublicKeyTag

Properties

Name Description
ApplicationId

Set the ApplicationIdHash. It must be 32 bytes long.

ClientDataHash

Set and get the ClientDataHash or "challenge". It must be 32 bytes long.

Methods

Name Description
SetBufferData(ReadOnlyMemory<byte>, int, int, string)

Copy the buffer data into the _buffer beginning at the given offset. Throw an exception if the input length is not correct.

In this article
Back to top Generated by DocFX