Show / Hide Table of Contents

PrivateKey Class

Namespace: Yubico.YubiKey.Cryptography Assembly: Yubico.YubiKey.dll
C#
public abstract class PrivateKey : IPrivateKey, IKeyBase
Inheritance object PrivateKey
Curve25519PrivateKey
ECPrivateKey
RSAPrivateKey
PivPrivateKey
Implements
IPrivateKey
IKeyBase

Properties

Name Description
KeyType

Gets the type of the cryptographic key.

Methods

Name Description
Clear()

Clears the buffers containing private key data.

Dispose()

Clears the private key data and disposes the object

ExportPkcs8PrivateKey()

Exports the current key in the PKCS#8 PrivateKeyInfo format.

ThrowIfDisposed()

Extension Methods

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