Types and Values
struct gnutls_privkey_st
struct gnutls_privkey_st {
gnutls_privkey_type_t type;
gnutls_pk_algorithm_t pk_algorithm;
union {
gnutls_x509_privkey_t x509;
#ifdef ENABLE_PKCS11
gnutls_pkcs11_privkey_t pkcs11;
#endif
struct {
gnutls_privkey_sign_func sign_func; /* raw like TLS 1.x */
gnutls_privkey_sign_data_func sign_data_func;
gnutls_privkey_sign_hash_func sign_hash_func;
gnutls_privkey_decrypt_func decrypt_func;
gnutls_privkey_decrypt_func2 decrypt_func2;
gnutls_privkey_deinit_func deinit_func;
gnutls_privkey_info_func info_func;
gnutls_privkey_pk_params_func pk_params_func;
void *userdata;
unsigned bits;
} ext;
} key;
unsigned int flags;
struct pin_info_st pin;
};
struct gnutls_pubkey_st
struct gnutls_pubkey_st {
unsigned int bits; /* an indication of the security parameter */
/* the size of params depends on the public
* key algorithm
* RSA: [0] is modulus
* [1] is public exponent
* DSA: [0] is p
* [1] is q
* [2] is g
* [3] is public key
*/
gnutls_pk_params_st params;
unsigned int key_usage; /* bits from GNUTLS_KEY_* */
struct pin_info_st pin;
};