pub struct PrivateKeyRecord {Show 27 fields
pub key_class: u32,
pub print_name: String,
pub alias: Vec<u8>,
pub permanent: bool,
pub private: bool,
pub modifiable: bool,
pub label: [u8; 20],
pub application_tag: Vec<u8>,
pub key_creator: Vec<u8>,
pub key_type: u32,
pub key_size_in_bits: u32,
pub effective_key_size: u32,
pub start_date: Vec<u8>,
pub end_date: Vec<u8>,
pub sensitive: bool,
pub always_sensitive: bool,
pub extractable: bool,
pub never_extractable: bool,
pub encrypt: bool,
pub decrypt: bool,
pub derive: bool,
pub sign: bool,
pub verify: bool,
pub sign_recover: bool,
pub verify_recover: bool,
pub wrap: bool,
pub unwrap: bool,
}Expand description
The attribute set of a private-key record.
The usage flags are all set, which is what macOS writes for a key imported from a PKCS#12 bundle: the key may sign, decrypt, unwrap and derive.
Fields§
§key_class: u32§print_name: String§alias: Vec<u8>§permanent: bool§private: bool§modifiable: bool§label: [u8; 20]The public key hash, shared with the certificate’s PublicKeyHash.
application_tag: Vec<u8>§key_creator: Vec<u8>§key_type: u32§key_size_in_bits: u32§effective_key_size: u32§start_date: Vec<u8>§end_date: Vec<u8>§sensitive: bool§always_sensitive: bool§extractable: bool§never_extractable: bool§encrypt: bool§decrypt: bool§derive: bool§sign: bool§verify: bool§sign_recover: bool§verify_recover: bool§wrap: bool§unwrap: boolImplementations§
Trait Implementations§
Source§impl Clone for PrivateKeyRecord
impl Clone for PrivateKeyRecord
Source§fn clone(&self) -> PrivateKeyRecord
fn clone(&self) -> PrivateKeyRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PrivateKeyRecord
impl RefUnwindSafe for PrivateKeyRecord
impl Send for PrivateKeyRecord
impl Sync for PrivateKeyRecord
impl Unpin for PrivateKeyRecord
impl UnsafeUnpin for PrivateKeyRecord
impl UnwindSafe for PrivateKeyRecord
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