bitwarden_crypto::keys::master_key

Function encrypt_user_key

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

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