Enum cryptoki::types::object::Attribute[][src]

pub enum Attribute {
    AllowedMechanisms(Vec<MechanismType>),
    Base(Vec<u8>),
    Class(ObjectClass),
    Copyable(Bbool),
    Decrypt(Bbool),
    Derive(Bbool),
    Encrypt(Bbool),
    Extractable(Bbool),
    Id(Vec<u8>),
    KeyType(KeyType),
    Label(Vec<u8>),
    Modifiable(Bbool),
    Modulus(Vec<u8>),
    ModulusBits(Ulong),
    Prime(Vec<u8>),
    Private(Bbool),
    PublicExponent(Vec<u8>),
    Sensitive(Bbool),
    Sign(Bbool),
    SignRecover(Bbool),
    Token(Bbool),
    Unwrap(Bbool),
    Value(Vec<u8>),
    ValueLen(Ulong),
    Verify(Bbool),
    VerifyRecover(Bbool),
    Wrap(Bbool),
}

Attribute value

Variants

AllowedMechanisms(Vec<MechanismType>)

List of mechanisms allowed to be used with the key

Base(Vec<u8>)

Base number value of a key

Type of an object

Copyable(Bbool)

Determines if an object can be copied

Decrypt(Bbool)

Determines if a key supports decryption

Derive(Bbool)

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

Encrypt(Bbool)

Determines if a key supports encryption

Extractable(Bbool)

Determines if a key is extractable and can be wrapped

Id(Vec<u8>)

Key identifier for key

KeyType(KeyType)

Type of a key

Label(Vec<u8>)

Description of the object

Modifiable(Bbool)

Determines if the object can be modified

Modulus(Vec<u8>)

Modulus value of a key

ModulusBits(Ulong)

Length in bits of the modulus of a key

Prime(Vec<u8>)

Prime number value of a key

Private(Bbool)

Determines if the object is private

PublicExponent(Vec<u8>)

Public exponent value of a key

Sensitive(Bbool)

Determines if the key is sensitive

Sign(Bbool)

Determines if a key supports signing

SignRecover(Bbool)

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

Token(Bbool)

Determines if the object is a token object

Unwrap(Bbool)

Determines if a key supports unwrapping

Value(Vec<u8>)

Value of the object

ValueLen(Ulong)

Length in bytes of the value

Verify(Bbool)

Determines if a key supports verifying

VerifyRecover(Bbool)

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

Wrap(Bbool)

Determines if a key supports wrapping

Implementations

impl Attribute[src]

pub fn attribute_type(&self) -> AttributeType[src]

Get the type of an attribute

Trait Implementations

impl Clone for Attribute[src]

impl Debug for Attribute[src]

impl TryFrom<_CK_ATTRIBUTE> for Attribute[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.