pub struct KeySpec {
pub algorithm: KeyAlgorithm,
pub label: String,
pub policy: KeyPolicy,
pub location_hint: Option<String>,
}Expand description
Full specification for key generation or import.
Replaces the (algorithm, label, slot_hint) triplet with a structured type
that can carry PKCS#11 policy attributes.
Fields§
§algorithm: KeyAlgorithmKey algorithm.
label: StringHuman-readable label.
policy: KeyPolicySecurity and usage policy.
location_hint: Option<String>Backend-specific location hint. PIV: “9c” maps to Signature slot. PKCS#11: slot index or partition label. Software: ignored.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeySpec
impl<'de> Deserialize<'de> for KeySpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KeySpec
impl RefUnwindSafe for KeySpec
impl Send for KeySpec
impl Sync for KeySpec
impl Unpin for KeySpec
impl UnsafeUnpin for KeySpec
impl UnwindSafe for KeySpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more