ECPublicKey Class
Namespace: Yubico.YubiKey.Cryptography Assembly: Yubico.YubiKey.dllRepresents the parameters for an Elliptic Curve (EC) public key.
public class ECPublicKey : PublicKey, 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 |
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
|
ExportSubjectPublicKeyInfo() | Exports the public-key portion of the current key in the X.509 SubjectPublicKeyInfo format. |