pub struct Container<'a> { /* private fields */ }Expand description
A parsed keychain container over borrowed bytes.
Implementations§
Source§impl<'a> Container<'a>
impl<'a> Container<'a>
Sourcepub fn parse(data: &'a [u8]) -> Result<Self, KeychainError>
pub fn parse(data: &'a [u8]) -> Result<Self, KeychainError>
Parse the header + schema and index every table by its CSSM type.
Sourcepub fn db_blob(&self) -> Result<DbBlob, KeychainError>
pub fn db_blob(&self) -> Result<DbBlob, KeychainError>
Locate and parse the DbBlob (salt / IV / wrapped DBKey).
Sourcepub fn symmetric_key_records(&self) -> Vec<KeyBlobRecord>
pub fn symmetric_key_records(&self) -> Vec<KeyBlobRecord>
Every wrapped per-record key in the symmetric-key table.
Records that are not ssgp-tagged are skipped (they carry no secret key).
Sourcepub fn generic_password_records(&self) -> Vec<GenericRecord>
pub fn generic_password_records(&self) -> Vec<GenericRecord>
Every generic-password record with its cleartext attributes and SSGP blob.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Container<'a>
impl<'a> RefUnwindSafe for Container<'a>
impl<'a> Send for Container<'a>
impl<'a> Sync for Container<'a>
impl<'a> Unpin for Container<'a>
impl<'a> UnsafeUnpin for Container<'a>
impl<'a> UnwindSafe for Container<'a>
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