silc_pkcs_silc_generate_key
SYNOPSIS
SilcBool silc_pkcs_silc_generate_key(const char *algorithm, SilcUInt32 bits_key_len, const char *identifier, SilcRng rng, SilcPublicKey *ret_public_key, SilcPrivateKey *ret_private_key)
DESCRIPTION
Generate a new SILC key pair of the algorithm type `algorithm' with the key length in bits of `bits_key_len'. Returns FALSE if key generation failed.
EXAMPLE
// Generate RSA key pair with 2048 bit key length silc_pkcs_silc_generate_key("rsa", 2048, ident_string, rng, &public_key, &private_key);