SilcPGPPrivateKey

NAME

    typedef struct { ... } *SilcPGPPrivateKey;

DESCRIPTION

This structure defines the OpenPGP private key. This context can be retrieved from SilcPublicKey by calling silc_pkcs_private_key_get_pkcs for the PKCS type SILC_PKCS_OPENPGP.

SOURCE

typedef struct SilcPGPPrivateKeyStruct {
  SilcList packets;                /* Packets making this private key, contains
                                      main key, subkeys, signatures etc. */
  SilcDList subkeys;               /* Subkeys, each is SilcPGPPrivateKey */

  SilcPGPPublicKey public_key;     /* Public key */
  void *private_key;               /* Algorithm specific private key */

  SilcUInt32 s2k_count;            /* S2K iterate octet count */
  SilcUInt8 cipher;                /* Cipher, SilcPGPCipher */
  SilcUInt8 s2k_type;              /* S2K type, SilcPGPS2KType */
  SilcUInt8 s2k_hash;              /* Hash, SilcPGPHash */
} *SilcPGPPrivateKey;