Show / Hide Table of Contents

CoseKey Class

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

A base class for all COSE key representations.

C#
public abstract class CoseKey
Inheritance object CoseKey
CoseEcPublicKey
CoseEdDsaPublicKey

Constructors

Name Description
CoseKey()

Constructs a CoseKey instance.

Fields

Name Description
TagAlgorithm

The CBOR tag (key of key/value pair) for the COSE key algorithm.

TagKeyType

The CBOR tag (key of key/value pair) for the COSE key type.

Properties

Name Description
Algorithm

The key's algorithm.

Type

The key's type (or family). E.g. "EC2" for elliptic curve with an X,Y point.

Methods

Name Description
Create(ReadOnlyMemory<byte>, out int)

Creates the correct COSE key representation based on the CBOR data provided.

Encode()

Return a new byte array that is the key data encoded following the FIDO2/CBOR standard.

In this article
Back to top Generated by DocFX