Show / Hide Table of Contents

RSAPrivateKey Class

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

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 RSA cryptographic parameters required for the private key operations.

Methods

Name Description
Clear()

Securely clears the RSA private key by zeroing out all parameters.

CreateFromParameters(RSAParameters)

Creates a new instance of RSAPrivateKey from the given parameters.

CreateFromPkcs8(ReadOnlyMemory<byte>)

Creates a new instance of RSAPrivateKey from a DER-encoded PKCS#8 private key.

ExportPkcs8PrivateKey()

Exports the RSA private key in PKCS#8 DER encoded format.

Extension Methods

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