silc_ssh_generate_key
SYNOPSIS
SilcBool silc_ssh_generate_key(const char *algorithm, int bits_len, SilcRng rng, const char *subject, SilcPublicKey *ret_public_key, SilcPrivateKey *ret_private_key);
DESCRIPTION
Generates new SSH2 key pair. The `algorithm' is either rsa or dsa. The `bits_len' specify the key length in bits. The `subject' is usually the email address of the user creating the key or some other similar subject name. Returns FALSE on error.
EXAMPLE
silc_ssh_generate_key("dsa", 1024, rng, "foo@example.com", &pubkey, &privkey);