Table of Contents

Class KeyTypeExtensions

Namespace
Yubico.YubiKey.Cryptography
Assembly
Yubico.YubiKey.dll
public static class KeyTypeExtensions
Inheritance
object
KeyTypeExtensions

Methods

GetAlgorithmOid(KeyType)

public static string GetAlgorithmOid(this KeyType keyType)

Parameters

keyType KeyType

Returns

string

GetCurveOid(KeyType)

public static string? GetCurveOid(this KeyType keyType)

Parameters

keyType KeyType

Returns

string

GetKeyDefinition(KeyType)

public static KeyDefinition GetKeyDefinition(this KeyType keyType)

Parameters

keyType KeyType

Returns

KeyDefinition

GetKeySizeBits(KeyType)

public static int GetKeySizeBits(this KeyType keyType)

Parameters

keyType KeyType

Returns

int

GetKeySizeBytes(KeyType)

public static int GetKeySizeBytes(this KeyType keyType)

Parameters

keyType KeyType

Returns

int

IsAsymmetric(KeyType)

public static bool IsAsymmetric(this KeyType keyType)

Parameters

keyType KeyType

Returns

bool

IsCoseKey(KeyType)

public static bool IsCoseKey(this KeyType keyType)

Parameters

keyType KeyType

Returns

bool

IsCurve25519(KeyType)

public static bool IsCurve25519(this KeyType keyType)

Parameters

keyType KeyType

Returns

bool

IsECDsa(KeyType)

public static bool IsECDsa(this KeyType keyType)

Parameters

keyType KeyType

Returns

bool

IsEllipticCurve(KeyType)

public static bool IsEllipticCurve(this KeyType keyType)

Parameters

keyType KeyType

Returns

bool

IsRSA(KeyType)

public static bool IsRSA(this KeyType keyType)

Parameters

keyType KeyType

Returns

bool

IsSymmetric(KeyType)

public static bool IsSymmetric(this KeyType keyType)

Parameters

keyType KeyType

Returns

bool