Show / Hide Table of Contents

PivAlgorithmExtensions Class

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

Extension methods for working with the PivAlgorithm enum.

C#
public static class PivAlgorithmExtensions
Inheritance object PivAlgorithmExtensions

Methods

Name Description
GetKeyType(PivAlgorithm)

Converts a PivAlgorithm to its corresponding KeyType.

GetPivAlgorithm(KeyType)

Converts a KeyType to its corresponding PivAlgorithm.

GetPivKeyDefinition(KeyDefinition)

Gets the PivAlgorithmDefinition for a given KeyDefinition.

GetPivKeyDefinition(PivAlgorithm)

Gets the PivAlgorithmDefinition for a given PivAlgorithm.

IsEcc(PivAlgorithm)

Determines if the given algorithm is ECC.

IsRsa(PivAlgorithm)

Determines if the given algorithm is RSA.

IsValidAlgorithmForGenerate(PivAlgorithm)

Determines if the given algorithm is one that can be used to generate a key pair.

KeySizeBits(PivAlgorithm)

The size of a key, in bits, of the given algorithm.

In this article
Back to top Generated by DocFX