CoseKey Class
Namespace: Yubico.YubiKey.Fido2.Cose Assembly: Yubico.YubiKey.dllA base class for all COSE key representations.
C#
public abstract class CoseKey : Object, ICborEncode
Inheritance
System.Object
CoseKey
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 Int32) | 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. |