Skip to main content

KeyUsageRequest

Struct KeyUsageRequest 

Source
pub struct KeyUsageRequest {
Show 14 fields pub encrypt: Option<bool>, pub decrypt: Option<bool>, pub sign: Option<bool>, pub verify: Option<bool>, pub sign_recover: Option<bool>, pub verify_recover: Option<bool>, pub wrap: Option<bool>, pub unwrap: Option<bool>, pub derive: Option<bool>, pub encapsulate: Option<bool>, pub decapsulate: Option<bool>, pub trusted: Option<bool>, pub wrap_with_trusted: Option<bool>, pub always_authenticate: Option<bool>,
}
Expand description

Each Some(value) emits that exact native boolean; None explicitly omits it. The module decides whether the attribute applies to the requested key class. No readback or permission guarantee follows from a creation request.

Fields§

§encrypt: Option<bool>

Native CKA_ENCRYPT request.

§decrypt: Option<bool>

Native CKA_DECRYPT request.

§sign: Option<bool>

Native CKA_SIGN request.

§verify: Option<bool>

Native CKA_VERIFY request.

§sign_recover: Option<bool>

Native CKA_SIGN_RECOVER request.

§verify_recover: Option<bool>

Native CKA_VERIFY_RECOVER request.

§wrap: Option<bool>

Native CKA_WRAP request.

§unwrap: Option<bool>

Native CKA_UNWRAP request.

§derive: Option<bool>

Native CKA_DERIVE request.

§encapsulate: Option<bool>

Native CKA_ENCAPSULATE request.

§decapsulate: Option<bool>

Native CKA_DECAPSULATE request.

§trusted: Option<bool>

Native CKA_TRUSTED request.

§wrap_with_trusted: Option<bool>

Native CKA_WRAP_WITH_TRUSTED request.

§always_authenticate: Option<bool>

Native CKA_ALWAYS_AUTHENTICATE request.

Implementations§

Source§

impl KeyUsageRequest

Source

pub const fn omitted() -> Self

Explicitly omit all native usage attributes. This is not a library default.

Trait Implementations§

Source§

impl Clone for KeyUsageRequest

Source§

fn clone(&self) -> KeyUsageRequest

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for KeyUsageRequest

Source§

impl Debug for KeyUsageRequest

Source§

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

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

impl Eq for KeyUsageRequest

Source§

impl PartialEq for KeyUsageRequest

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for KeyUsageRequest

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.