bitwarden_crypto::keys::key_encryptable

Trait KeyDecryptable

Source
pub trait KeyDecryptable<Key: CryptoKey, Output> {
    // Required method
    fn decrypt_with_key(&self, key: &Key) -> Result<Output, CryptoError>;
}

Required Methods§

Source

fn decrypt_with_key(&self, key: &Key) -> Result<Output, CryptoError>

Implementations on Foreign Types§

Source§

impl<T: KeyDecryptable<Key, Output> + Send + Sync, Key: CryptoKey + Send + Sync, Output: Send + Sync> KeyDecryptable<Key, Vec<Output>> for Vec<T>

Source§

fn decrypt_with_key(&self, key: &Key) -> Result<Vec<Output>, CryptoError>

Source§

impl<T: KeyDecryptable<Key, Output> + Send + Sync, Key: CryptoKey + Send + Sync, Output: Send + Sync, Id: Hash + Eq + Copy + Send + Sync> KeyDecryptable<Key, HashMap<Id, Output>> for HashMap<Id, T>

Source§

fn decrypt_with_key( &self, key: &Key, ) -> Result<HashMap<Id, Output>, CryptoError>

Source§

impl<T: KeyDecryptable<Key, Output>, Key: CryptoKey, Output> KeyDecryptable<Key, Option<Output>> for Option<T>

Source§

impl<T: KeyDecryptable<Key, Output>, Key: CryptoKey, Output> KeyDecryptable<Key, Output> for Box<T>

Source§

fn decrypt_with_key(&self, key: &Key) -> Result<Output, CryptoError>

Implementors§