Show / Hide Table of Contents

SerializedLargeBlobArray Constructor

SerializedLargeBlobArray(ReadOnlyMemory<byte>)

Build a new instance of SerializedLargeBlobArray based on the given CBOR encoding.

C#
public SerializedLargeBlobArray(ReadOnlyMemory<byte> cborEncoding)

Parameters

Type Name Description
ReadOnlyMemory<byte> cborEncoding

The serialized large blob array, encoded following the CTAP 2.1 and CBOR (RFC 8949) standards. That is, the expected encoding is either

 80
   80 76 be 8b 52 8d 00 75 f7 aa e9 8d 6f a5 7a 6d 3c
for the initial array (the 80 is an array with zero elements)
or
 8x
   A3 --entry map--
    . . .
   A3 --entry map--
 --digest value--
where x is the number of entries and there are x
   A3 --entry map--
and the digest value is 16 bytes.

Exceptions

Type Condition
Ctap2DataException

The cborEncoding is not a valid CBOR encoding, or it is not a correct encoding for FIDO2 large blob data.

Remarks

The encoding must follow the definition of serialized large blob array in section 6.10 of the CTAP 2.1 standard.

In this article
Back to top Generated by DocFX