Skip to main content

PqcKeySpec

Struct PqcKeySpec 

Source
pub struct PqcKeySpec {
    pub public_usages: KeyUsageRequest,
    pub private_usages: KeyUsageRequest,
    pub private_visibility: ObjectVisibility,
    pub public_admission: ObjectAdmission,
    pub private_admission: ObjectAdmission,
    pub algorithm: PqcAlgorithm,
    pub id: Vec<u8>,
    pub label: String,
    pub persistent: bool,
}
Expand description

Native PQC generation selector. Private bytes are never supplied or returned.

Fields§

§public_usages: KeyUsageRequest

Exact native public-key usage requests, independent of observations.

§private_usages: KeyUsageRequest

Exact native private-key usage requests, independent of observations.

§private_visibility: ObjectVisibility

Exact CKA_PRIVATE request for the private native object.

§public_admission: ObjectAdmission

Independent observations for the public object, when produced.

§private_admission: ObjectAdmission

Independent observations for the private object, when produced.

§algorithm: PqcAlgorithm

Exact standardized parameter set.

§id: Vec<u8>

Native CKA_ID bytes; destination observations are selected independently.

§label: String

UTF-8 native label; no library-defined presentation policy.

§persistent: bool

Token objects require an authorized read/write session. Session objects remain attached to the creating session and are not portable handles.

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> Same for T

Source§

type Output = T

Should always be Self
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.