Show / Hide Table of Contents

ECPublicKey Class

Namespace: Yubico.YubiKey.Cryptography Assembly: Yubico.YubiKey.dll

Represents the parameters for an Elliptic Curve (EC) public key.

C#
public class ECPublicKey : PublicKey, IPublicKey, IKeyBase
Inheritance object PublicKey ECPublicKey
ECPublicKeyParameters
Implements
IPublicKey
IKeyBase

Remarks

This class encapsulates the parameters specific to EC public keys, ensuring that the key only contains necessary public key components.

Constructors

Name Description
ECPublicKey(ECDsa)

Initializes a new instance of the ECPublicKey class.

ECPublicKey(ECParameters)

Initializes a new instance of the ECPublicKey class. It is a wrapper for the System.Security.Cryptography.ECParameters class.

Properties

Name Description
KeyDefinition

Gets the key definition associated with this RSA private key.

KeyType

Gets the type of the cryptographic key.

Parameters

Gets the Elliptic Curve parameters associated with this instance.

PublicPoint

Gets the bytes representing the public key coordinates.

Methods

Name Description
CreateFromParameters(ECParameters)

Creates an instance of ECPublicKey from the given parameters.

CreateFromPkcs8(ReadOnlyMemory<byte>)

Creates an instance of IPublicKey from a DER-encoded public key.

CreateFromValue(ReadOnlyMemory<byte>, KeyType)

Creates an instance of ECPublicKey from the given publicPoint and keyType.

ExportSubjectPublicKeyInfo()

Exports the public-key portion of the current key in the X.509 SubjectPublicKeyInfo format.

Extension Methods

IPublicKeyExtensions.Cast<T>(IPublicKey)
KeyExtensions.EncodeAsPiv(IPublicKey)
In this article
Back to top Generated by DocFX