Crescendo SDK
Loading...
Searching...
No Matches
CrescendoDLL.PCSC.FIDODataStructures.COSEKey Class Reference

Represents a COSE (CBOR Object Signing and Encryption) key, as defined in FIDO CTAP2 Specification. This class is used to store cryptographic key information used in FIDO authentication. More...

Public Member Functions

  COSEKey (byte[] xCoordinate, byte[]? yCoordinate=null, int algorithm=-25, int curve=1, int keyType=2)
  Initializes a new instance of the COSEKey class.
 

Properties

int  Algorithm [get, set]
  Algorithm identifier - Corresponds to the COSE alg parameter (algorithm). Represents the cryptographic algorithm used with the key. For example, -25 for ES256 (ECDSA with SHA-256). See IANA COSE Algorithms registry.
 
int  Curve [get, set]
  Curve identifier - corresponds to the COSE crv parameter. Applies to both EC2 and OKP key types. For example, 1 for P-256, 6 for Ed25519, 7 for X25519. See IANA COSE Elliptic Curves registry.
 
int  KeyType [get, set]
  Key type - Corresponds to the COSE kty> parameter (key type). Common values: 1 for OKP (e.g. Ed25519), 2 for EC2 (e.g. P-256). See IANA COSE Key Types registry.
 
byte[]  XCoordinate [get, set]
  Byte array representing the X coordinate. Corresponds to the COSE x parameter.
 
byte?[]  YCoordinate [get, set]
  Byte array representing the Y coordinate. Corresponds to the COSE y parameter. null for OKP keys (e.g. Ed25519, kty=1) which carry only an X parameter.
 

Detailed Description

Represents a COSE (CBOR Object Signing and Encryption) key, as defined in FIDO CTAP2 Specification. This class is used to store cryptographic key information used in FIDO authentication.

Constructor & Destructor Documentation

◆ COSEKey()

Property Documentation

◆ Algorithm

◆ Curve

◆ KeyType

◆ XCoordinate

◆ YCoordinate