bitwarden_wasm_internal::sshFunction generate_ssh_key
Source pub fn generate_ssh_key(
key_algorithm: KeyAlgorithm,
) -> Result<SshKey, KeyGenerationError>
Expand description
Generate a new SSH key pair
§Arguments
key_algorithm
- The algorithm to use for the key pair
§Returns
Ok(SshKey)
if the key was successfully generated
Err(KeyGenerationError)
if the key could not be generated