PivEccPrivateKey Class
Namespace: Yubico.YubiKey.Piv Assembly: Yubico.YubiKey.dllThis class holds an ECC private key, which consists of a private value.
C#
public sealed class PivEccPrivateKey : PivPrivateKey
Remarks
With a YubiKey, the private value must be the same size as a coordinate of a point on the curve. So for ECC P-256, each coordinate is 32 bytes (256 bits), so the private value will be 32 bytes.
Constructors
Name | Description |
---|---|
PivEccPrivateKey(ReadOnlySpan<Byte>) | Create a new instance of an ECC private key object based on the given private value. |
Properties
Name | Description |
---|---|
PrivateValue |
Methods
Name | Description |
---|---|
Clear() | Call on the object to clear (overwrite) any sensitive data it is holding. |
CreateEccPrivateKey(ReadOnlyMemory<Byte>) | Create a new instance of an ECC private key object based on the encoding. |