SilcPGPKeyType

NAME

    typedef enum { ... } SilcPGPKeyType;

DESCRIPTION

PGP key generation types. These types define what kind of PGP key is created with silc_pgp_generate_key.

SILC_PGP_RSA

      Generates RSA key that can be used for both signatures and encryption.
      This is default.  If key type is not specified, this is used as
      default key type.

SILC_PGP_DSA_SIG

      Generates signature only DSA key.  The key cannot be used for
      encryption.

SILC_PGP_ECDSA_SIG

      Generates signature only ECDSA key.  The key cannot be used for
      encryption.

SILC_PGP_DSA_SIG_ELGAMAL_ENC

      Generates key with DSA for signatures and Elgamal for encryption.

SILC_PGP_DSA_SIG_RSA_ENC

      Generates key with DSA for signatures and RSA for encryption.

SOURCE

typedef enum {
  SILC_PGP_RSA                     = 0,  /* Generate RSA key */
  SILC_PGP_DSA_SIG                 = 1,  /* Generate signature only DSA key */
  SILC_PGP_ECDSA_SIG               = 2,  /* Generate signature only ECDSA key */
  SILC_PGP_DSA_SIG_ELGAMAL_ENC     = 3,  /* Generate DSA and Elgamal key */
  SILC_PGP_DSA_SIG_RSA_ENC         = 4,  /* Generate DSA and RSA key */
} SilcPGPKeyType;