Enum cryptoki::object::AttributeType
source · #[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
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
impl Clone for AttributeType
source§fn clone(&self) -> AttributeType
fn clone(&self) -> AttributeType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AttributeType
impl Debug for AttributeType
source§impl Display for AttributeType
impl Display for AttributeType
source§impl From<AttributeType> for CK_ATTRIBUTE_TYPE
impl From<AttributeType> for CK_ATTRIBUTE_TYPE
source§fn from(attribute_type: AttributeType) -> Self
fn from(attribute_type: AttributeType) -> Self
source§impl Hash for AttributeType
impl Hash for AttributeType
source§impl Ord for AttributeType
impl Ord for AttributeType
source§fn cmp(&self, other: &AttributeType) -> Ordering
fn cmp(&self, other: &AttributeType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for AttributeType
impl PartialEq for AttributeType
source§fn eq(&self, other: &AttributeType) -> bool
fn eq(&self, other: &AttributeType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AttributeType
impl PartialOrd for AttributeType
source§fn partial_cmp(&self, other: &AttributeType) -> Option<Ordering>
fn partial_cmp(&self, other: &AttributeType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more