fn make_user_key(
rng: impl RngCore + CryptoRng,
master_key: &MasterKey,
) -> Result<(UserKey, EncString), CryptoError>
Expand description
Generate a new random user key and encrypt it with the master key.
WARNING: This function should only be used with a proper cryptographic random number generator. If you do not have a good reason for using this, use MasterKey::make_user_key instead.
This function is only split out from MasterKey::make_user_key, to make it unit testable.