Show / Hide Table of Contents

PivEccPublicKey Class

Namespace: Yubico.YubiKey.Piv Assembly: Yubico.YubiKey.dll

This class holds an ECC public key.

C#
public sealed class PivEccPublicKey : PivPublicKey
Inheritance object PivPublicKey PivEccPublicKey

Remarks

An ECC public key consists of a public point. To build an ECC key object from the public point, use this class's constructor.

Once you have the object built, you can get the encoded public key from either the PivEncodedPublicKey or YubiKeyEncodedPublicKey property.

If you have an encoded public key, and want to build an object, use the static factory Create method in the base class PivPublicKey.

The YubiKey supports only P256 and P384 ECC keys, which means that the point must be exactly 65 or 97 bytes long (the point must be of the form 04 || x-coordinate || y-coordinate).

You can build an object from either the encoded public key (using the PivPublicKey.Create static factory method), and then examine the public point, or you can build an object from the public point, then examine the encoding.

Constructors

Name Description
PivEccPublicKey(ReadOnlySpan<byte>, PivAlgorithm?)

Create a new instance of an ECC public key object based on the given point.

Properties

Name Description
PublicPoint

Contains the public point: 04 || x-coordinate || y-coordinate.

In this article
Back to top Generated by DocFX