KeyDefinitions Class
Namespace: Yubico.YubiKey.Cryptography Assembly: Yubico.YubiKey.dllProvides definitions for cryptographic keys, including their types, lengths, and other properties.
public static class KeyDefinitions
Fields
Name | Description |
---|---|
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. |
X25519 | Represents an X25519 key. |
Properties
Name | Description |
---|---|
AllDefinitions | 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). |
GetEcKeyDefinitions() | Gets all elliptic curve (EC) key definitions. |
GetRsaKeyDefinitions() | Gets all RSA key definitions. |