bitwarden_core::auth::tde

Function make_register_tde_keys

source
pub(super) fn make_register_tde_keys(
    client: &Client,
    email: String,
    org_public_key: String,
    remember_device: bool,
) -> Result<RegisterTdeKeyResponse, Error>
Expand description

This function generates a new user key and key pair, initializes the client’s crypto with the generated user key, and encrypts the user key with the organization public key for admin password reset. If remember_device is true, it also generates a device key.