Show / Hide Table of Contents

PivEccPrivateKey Class

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

This class holds an ECC private key, which consists of a private value.

C#
public sealed class PivEccPrivateKey : PivPrivateKey, IPrivateKey, IKeyBase
Inheritance object PrivateKey PivPrivateKey PivEccPrivateKey
Implements
IPrivateKey
IKeyBase

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>, PivAlgorithm?)

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>, PivAlgorithm?)

Create a new instance of an ECC private key object based on the encoding.

Extension Methods

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