bitwarden_crypto::keys::master_key

Function make_user_key

source
fn make_user_key(
    rng: impl RngCore,
    master_key: &MasterKey,
) -> Result<(UserKey, EncString), CryptoError>
Expand description

Generate a new random user key and encrypt it with the master key.