pub trait EncryptedStore: KeyStore {
// Required methods
fn init_with_password(&mut self, password: &[u8]) -> Result<()>;
fn rekey(&mut self, new_password: &[u8]) -> Result<()>;
fn is_unlocked(&self) -> bool;
}Expand description
Trait for encrypted storage backends
Provides password-based intialisation and re-keying capabilites for storage backends that support encryption at rest
Required Methods§
Sourcefn init_with_password(&mut self, password: &[u8]) -> Result<()>
fn init_with_password(&mut self, password: &[u8]) -> Result<()>
Initiate the store with a master key
Sourcefn rekey(&mut self, new_password: &[u8]) -> Result<()>
fn rekey(&mut self, new_password: &[u8]) -> Result<()>
Re-encrypt all keys with a new master key
Sourcefn is_unlocked(&self) -> bool
fn is_unlocked(&self) -> bool
Check if the store is unlocked