pub struct Argon2Keyring { /* private fields */ }Expand description
Headless fallback (spec §10.2): derive the master key from a passphrase with
Argon2id. Deterministic given the same passphrase and salt, so the same
vault unlocks across runs without an OS keyring. There is nothing to
store — set_master_key is unsupported.
Implementations§
Source§impl Argon2Keyring
impl Argon2Keyring
Trait Implementations§
Source§impl Keyring for Argon2Keyring
impl Keyring for Argon2Keyring
Source§fn get_master_key(&self) -> Result<MasterKey, CoreError>
fn get_master_key(&self) -> Result<MasterKey, CoreError>
Fetch the master key, materializing it (e.g. reading the OS keyring or
deriving from a passphrase).
Source§fn set_master_key(&self, _key: &MasterKey) -> Result<(), CoreError>
fn set_master_key(&self, _key: &MasterKey) -> Result<(), CoreError>
Persist the master key (e.g. write it to the OS keyring). Backends that
derive the key (see
Argon2Keyring) have nothing to store and return
an error.Auto Trait Implementations§
impl Freeze for Argon2Keyring
impl RefUnwindSafe for Argon2Keyring
impl Send for Argon2Keyring
impl Sync for Argon2Keyring
impl Unpin for Argon2Keyring
impl UnsafeUnpin for Argon2Keyring
impl UnwindSafe for Argon2Keyring
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