Show / Hide Table of Contents

KeyDefinitions Class

Namespace: Yubico.YubiKey.Cryptography Assembly: Yubico.YubiKey.dll

Provides definitions for cryptographic keys, including their types, lengths, and other properties.

C#
public static class KeyDefinitions
Inheritance object KeyDefinitions

Fields

Name Description
AES128

Represents an AES key with a length of 128 bits.

AES192

Represents an AES key with a length of 192 bits.

AES256

Represents an AES key with a length of 256 bits.

Ed25519

Represents an Ed25519 key.

P256

Represents an EC key with a length of 256 bits.

P384

Represents an EC key with a length of 384 bits.

P521

Represents an EC key with a length of 521 bits.

RSA1024

Represents an RSA key with a length of 1024 bits.

RSA2048

Represents an RSA key with a length of 2048 bits.

RSA3072

Represents an RSA key with a length of 3072 bits.

RSA4096

Represents an RSA key with a length of 4096 bits.

TripleDes

Represents a Triple DES key with a length of 192 bits.

X25519

Represents an X25519 key.

Properties

Name Description
All

Gets all key definitions.

Methods

Name Description
GetByCoseCurve(CoseEcCurve)

Gets a key definition by its curve type.

GetByKeyType(KeyType)

Gets a key definition by its type.

GetByOid(Oid)

Gets a key definition by its object identifier (OID).

GetByOid(string)

Gets a key definition by its object identifier (OID).

GetByRSALength(int)

Gets a key definition by its RSA key length.

GetEcKeyDefinitions()

Gets all elliptic curve (EC) key definitions.

GetKeyTypeByOid(Oid)
GetKeyTypeByOid(string)
GetRsaKeyDefinitions()

Gets all RSA key definitions.

In this article
Back to top Generated by DocFX