Show / Hide Table of Contents

KeyDefinition Class

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

Represents the definition of a cryptographic key, including its type, length, and other properties.

C#
public class KeyDefinition
Inheritance object KeyDefinition

Properties

Name Description
AlgorithmOid

Gets or sets the object identifier (OID) of the key.

CoseKeyDefinition

Gets or sets the COSE key definition associated with this key.

CurveOid

Gets or sets the curve OID for elliptic curve keys.

IsAsymmetric

Indicates whether the key is a asymmetric key.

IsEllipticCurve

Indicates whether the key is an elliptic curve (EC) key.

IsRSA

Indicates whether the key is an RSA key.

IsSymmetric

Indicates whether the key is a symmetric key.

KeyType

Gets or sets the type of the key.

LengthInBits

Gets or sets the length of the key in bits.

LengthInBytes

Gets or sets the length of the key in bytes.

Name

Gets the name of the key, which is the string representation of the key type.

Methods

Name Description
Equals(object?)
GetHashCode()
ToString()

Extension Methods

PivAlgorithmExtensions.GetPivKeyDefinition(KeyDefinition)
In this article
Back to top Generated by DocFX