Table of Contents

Class Oids

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

Contains OIDs for cryptographic algorithms used in key operations.

public static class Oids
Inheritance
object
Oids

Fields

AES128Cbc

Represents the OID for AES-128 in CBC mode

public const string AES128Cbc = "2.16.840.1.101.3.4.1.2"

Field Value

string

AES192Cbc

Represents the OID for AES-192 in CBC mode

public const string AES192Cbc = "2.16.840.1.101.3.4.1.22"

Field Value

string

AES256Cbc

Represents the OID for AES-256 in CBC mode

public const string AES256Cbc = "2.16.840.1.101.3.4.1.42"

Field Value

string

ECDSA

Represents the general Elliptic Curve public key algorithm OID (ANSI X9.62)

public const string ECDSA = "1.2.840.10045.2.1"

Field Value

string

ECP256

Represents the OID for NIST P-256 curve (also known as secp256r1)

public const string ECP256 = "1.2.840.10045.3.1.7"

Field Value

string

ECP384

Represents the OID for NIST P-384 curve (also known as secp384r1)

public const string ECP384 = "1.3.132.0.34"

Field Value

string

ECP521

Represents the OID for NIST P-521 curve (also known as secp521r1)

public const string ECP521 = "1.3.132.0.35"

Field Value

string

Ed25519

Represents the OID for Ed25519 (Edwards25519) used for signatures

public const string Ed25519 = "1.3.101.112"

Field Value

string

RSA

RSA Encryption algorithm OID (PKCS#1)

public const string RSA = "1.2.840.113549.1.1.1"

Field Value

string

TripleDESCbc

Represents the OID for Triple DES in CBC mode

public const string TripleDESCbc = "1.2.840.113549.3.7"

Field Value

string

X25519

Represents the OID for X25519 (Curve25519) used for key exchange

public const string X25519 = "1.3.101.110"

Field Value

string

Methods

GetOidsByKeyType(KeyType)

Gets the algorithm and curve OIDs for a specific key type

public static (string AlgorithmOid, string? Curveoid) GetOidsByKeyType(KeyType keyType)

Parameters

keyType KeyType

Returns

(string AlgorithmOid, string Curveoid)

IsCurve25519Algorithm(string?)

public static bool IsCurve25519Algorithm(string? algorithmOid)

Parameters

algorithmOid string

Returns

bool

IsECDsaCurve(string?)

public static bool IsECDsaCurve(string? curveOid)

Parameters

curveOid string

Returns

bool