bitwarden_crypto

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§