Show / Hide Table of Contents

LargeBlobEntry Class

Namespace: Yubico.YubiKey.Fido2 Assembly: Yubico.YubiKey.dll

Contains the data from one entry in the Large Blob Array. See also the user's manual entry on large blobs.

C#
public class LargeBlobEntry
Inheritance object LargeBlobEntry

Remarks

The SerializedLargeBlobArray class contains a List of LargeBlobEntry, this class. When you get a Large Blob Array from a YubiKey (GetSerializedLargeBlobArray()), you get a LargeBlobArray object. You then have access to each of the individual entries in the Large Blob Array through that list of LargeBlobEntry. If you want to add a new LargeBlobEntry to the Array's List, call the AddEntry(ReadOnlyMemory<byte>, ReadOnlyMemory<byte>) method.

This class contains only properties and a TryDecrypt(ReadOnlyMemory<byte>, out Memory<byte>) method. You will not build an individual entry yourself, only the LargeBlobArray class can do that. But you will be able to see the data of the entry.

Properties

Name Description
Ciphertext

The encrypted data. This is either the retrieved encrypted data when getting a Large Blob Array, or the provided data encrypted using the specified LargeBlobKey when creating a new entry to store. The last 16 bytes make up the GCM authentication tag.

Nonce

The nonce used to perform the AES-GCD operation. This is either the retrieved nonce when getting a Large Blob Array, or the generated nonce used when creating a new entry to store.

OriginalDataLength

The length, in bytes, of the unencrypted, uncompressed data. This is either the retrieved origSize in the Large Blob Map when getting a Large Blob Array, or the length, in bytes, of the provided data when creating a new entry to store.

Methods

Name Description
TryDecrypt(ReadOnlyMemory<byte>, out Memory<byte>)

Try to decrypt the data using the given key. If the key is correct, this will set the return true and return the plaintext in the out argument (decrypted and decompressed).

In this article
Back to top Generated by DocFX