#[non_exhaustive]
pub enum AttributeType {
Show 59 variants AcIssuer, AllowedMechanisms, AlwaysAuthenticate, AlwaysSensitive, Application, AttrTypes, Base, CertificateType, CheckValue, Class, Coefficient, Copyable, Decrypt, Derive, Destroyable, EcParams, EcPoint, Encrypt, EndDate, Exponent1, Exponent2, Extractable, HashOfIssuerPublicKey, HashOfSubjectPublicKey, Id, Issuer, KeyGenMechanism, KeyType, Label, Local, Modifiable, Modulus, ModulusBits, NeverExtractable, ObjectId, Owner, Prime, Prime1, Prime2, Private, PrivateExponent, PublicExponent, PublicKeyInfo, Sensitive, SerialNumber, Sign, SignRecover, StartDate, Subject, Token, Trusted, Unwrap, Url, Value, ValueLen, Verify, VerifyRecover, Wrap, WrapWithTrusted,
}
Expand description

Type of an attribute

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

AcIssuer

DER-encoding of the attribute certificate’s issuer

§

AllowedMechanisms

List of mechanisms allowed to be used with the key

§

AlwaysAuthenticate

Indicates that the user has to supply the PIN for each use with the key

§

AlwaysSensitive

Indicates if the key has always had the Sensitive attribute set to true

§

Application

Description of the application that manages the object

§

AttrTypes

BER-encoding of a sequence of object identifier values

§

Base

Base number value of a key

§

CertificateType

Type of certificate

§

CheckValue

Checksum

§

Class

Type of an object

§

Coefficient

The CRT coefficient iqmp of an RSA private key

§

Copyable

Determines if an object can be copied

§

Decrypt

Determines if a key supports decryption

§

Derive

Determines if it is possible to derive other keys from the key

§

Destroyable

Determines if it is possible to destroy an object

§

EcParams

Parameters defining an elliptic curve

§

EcPoint

DER-encoded Elliptic Curve point

§

Encrypt

Determines if a key supports encryption

§

EndDate

The end date for the object

§

Exponent1

The private exponent dmp1 of an RSA private key

§

Exponent2

The private exponent dmq1 of an RSA private key

§

Extractable

Determines if a key is extractable and can be wrapped

§

HashOfIssuerPublicKey

Hash of issuer public key

§

HashOfSubjectPublicKey

Hash of subject public key

§

Id

Key identifier for key

§

Issuer

DER-encoding of the certificate issuer name

§

KeyGenMechanism

Identifier of the mechanism used to generate the key material

§

KeyType

Type of a key

§

Label

Description of the object

§

Local

Indicates if the key was generated locally or copied from a locally created object

§

Modifiable

Determines if the object can be modified

§

Modulus

Modulus value of a key

§

ModulusBits

Length in bits of the modulus of a key

§

NeverExtractable

Indicates if the key has never had the Extractable attribute set to true

§

ObjectId

Object ID

§

Owner

DER encoding of the attribute certificate’s subject field

§

Prime

Prime number value of a key

§

Prime1

The prime p of an RSA private key

§

Prime2

The prime q of an RSA private key

§

Private

Determines if the object is private

§

PrivateExponent

Private exponent d

§

PublicExponent

Public exponent value of a key

§

PublicKeyInfo

DER-encoding of the SubjectPublicKeyInfo

§

Sensitive

Determines if the key is sensitive

§

SerialNumber

DER encoding of the certificate serial number

§

Sign

Determines if a key supports signing

§

SignRecover

Determines if a key supports signing where the data can be recovered from the signature

§

StartDate

The start date of the object

§

Subject

DER-encoding of certificate subject name

§

Token

Determines if the object is a token object

§

Trusted

Determines if the object is trusted

§

Unwrap

Determines if a key supports unwrapping

§

Url

Gives the URL where the complete certificate can be obtained

§

Value

Value of the object

§

ValueLen

Length in bytes of the value

§

Verify

Determines if a key supports verifying

§

VerifyRecover

Determines if a key supports verifying where the data can be recovered from the signature

§

Wrap

Determines if a key supports wrapping

§

WrapWithTrusted

Indicates that the key can only be wrapped with a wrapping key that has the Trusted attribute

Trait Implementations§

source§

impl Clone for AttributeType

source§

fn clone(&self) -> AttributeType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AttributeType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for AttributeType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<AttributeType> for CK_ATTRIBUTE_TYPE

source§

fn from(attribute_type: AttributeType) -> Self

Converts to this type from the input type.
source§

impl Hash for AttributeType

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for AttributeType

source§

fn cmp(&self, other: &AttributeType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for AttributeType

source§

fn eq(&self, other: &AttributeType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for AttributeType

source§

fn partial_cmp(&self, other: &AttributeType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl TryFrom<u64> for AttributeType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(attribute_type: CK_ATTRIBUTE_TYPE) -> Result<Self>

Performs the conversion.
source§

impl Copy for AttributeType

source§

impl Eq for AttributeType

source§

impl StructuralPartialEq for AttributeType

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.