CoseEdDsaPublicKey Class
Namespace: Yubico.YubiKey.Fido2.Cose Assembly: Yubico.YubiKey.dllA representation of an Elliptic Curve public key in COSE form.
public class CoseEdDsaPublicKey : CoseKey
Remarks
An ECC public key consists of a curve and public key data. In FIDO2, the curve is represented by the CoseAlgorithmIdentifier .
The FIDO2 standard also specifies an encoding of the public key information. It uses the representation defined in RFC8152: CBOR Object Signing and Encryption (COSE) standard. Supplementary information can be found in section 6.5.6 of the CTAP2.1 specification (under the heading `getPublicKey()`).
Properties
Name | Description |
---|---|
Curve | The Elliptic Curve that the key resides on. |
PublicKey | The public key data. |
Methods
Name | Description |
---|---|
CreateFromEncodedKey(ReadOnlyMemory<byte>) | Creates a new instance of CoseEdDsaPublicKey from the given encoded COSE key. |
CreateFromPublicKeyData(ReadOnlyMemory<byte>) | Construct a CoseEdDsaPublicKey based on public key data (x-coordinate of public key) |
Encode() | Return a new byte array that is the key data encoded following the FIDO2/CBOR standard. |