PivAlgorithm Class

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

The cryptographic algorithms supported by the PIV Application on the YubiKey.

C#
public sealed class PivAlgorithm : Enum
Inheritance System.Object PivAlgorithm

Fields

Name Description
Aes128

Indicates that the algorithm is AES-128 (Slot 9B). The key size is 128 bits (16 bytes).

Aes192

Indicates that the algorithm is AES-192 (Slot 9B). The key size is 192 bits (24 bytes).

Aes256

Indicates that the algorithm is AES-256 (Slot 9B). The key size is 256 bits (32 bytes).

EccP256

Indicates that the algorithm is ECC and the parameters are P-256, specified in FIPS 186-4 (moving to NIST SP 800-186).

EccP384

Indicates that the algorithm is ECC and the parameters are P-384, specified in FIPS 186-4 (moving to NIST SP 800-186).

None

No algorithm (generally indicates a slot is empty).

Pin

Indicates that the slot contains a PIN or PUK (slots 80 and 81). While not a cryptographic algorithm, it is used in the PIV Metadata.

Rsa1024

Indicates that the algorithm is RSA and the key size (modulus size) is 1024 bits.

Rsa2048

Indicates that the algorithm is RSA and the key size (modulus size) is 2048 bits.

TripleDes

Indicates that the algorithm is Triple-DES (Slot 9B). The key size is 192 bits (24 bytes).

value__

Extension Methods

PivAlgorithmExtensions.IsValidAlgorithmForGenerate(PivAlgorithm)
PivAlgorithmExtensions.KeySizeBits(PivAlgorithm)
PivAlgorithmExtensions.IsRsa(PivAlgorithm)
PivAlgorithmExtensions.IsEcc(PivAlgorithm)
Generated by DocFX