EncryptedStore

Trait EncryptedStore 

Source
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§

Source

fn init_with_password(&mut self, password: &[u8]) -> Result<()>

Initiate the store with a master key

Source

fn rekey(&mut self, new_password: &[u8]) -> Result<()>

Re-encrypt all keys with a new master key

Source

fn is_unlocked(&self) -> bool

Check if the store is unlocked

Implementors§