bitwarden_crypto::keys::master_key

Function decrypt_user_key

Source
pub(super) fn decrypt_user_key(
    key: &SymmetricCryptoKey,
    user_key: EncString,
) -> Result<SymmetricCryptoKey, CryptoError>
Expand description

Helper function to decrypt a user key with a master or pin key.