[][src]Struct parsec_interface::operations::psa_key_attributes::UsageFlags

pub struct UsageFlags {
    pub export: bool,
    pub copy: bool,
    pub cache: bool,
    pub encrypt: bool,
    pub decrypt: bool,
    pub sign_message: bool,
    pub verify_message: bool,
    pub sign_hash: bool,
    pub verify_hash: bool,
    pub derive: bool,
}

Definition of the usage flags. They encode what kind of operations are permitted on the key.

Fields

export: bool

Permission to export the key.

copy: bool

Permission to copy the key.

cache: bool

Permission for the implementation to cache the key.

encrypt: bool

Permission to encrypt a message with the key.

decrypt: bool

Permission to decrypt a message with the key.

sign_message: bool

Permission to sign a message with the key.

verify_message: bool

Permission to verify a message signature with the key.

sign_hash: bool

Permission to sign a message hash with the key.

verify_hash: bool

Permission to verify a message hash with the key.

derive: bool

Permission to derive other keys from this key.

Trait Implementations

impl Clone for UsageFlags[src]

impl Copy for UsageFlags[src]

impl Debug for UsageFlags[src]

impl Default for UsageFlags[src]

impl<'de> Deserialize<'de> for UsageFlags[src]

impl PartialEq<UsageFlags> for UsageFlags[src]

impl Serialize for UsageFlags[src]

impl StructuralPartialEq for UsageFlags[src]

impl Zeroize for UsageFlags[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.