pub trait MasterKeySource: Send + Sync {
// Required methods
fn load_or_create(&self) -> Result<Zeroizing<Vec<u8>>>;
fn name(&self) -> &'static str;
}Expand description
Where the vault’s master key is kept.
Required Methods§
Sourcefn load_or_create(&self) -> Result<Zeroizing<Vec<u8>>>
fn load_or_create(&self) -> Result<Zeroizing<Vec<u8>>>
The key, created (random, 32 bytes) the first time.
fn name(&self) -> &'static str
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl MasterKeySource for FileMasterKey
impl MasterKeySource for KeychainMasterKey
Available on crate feature
vault-keychain only.