diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2013-11-20 19:04:43 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2013-11-27 11:41:43 +0100 |
commit | 561a2dfe7433b322ccf608786c753c9071e150d4 (patch) | |
tree | b7f1e0e5ff5065a16613a447b35d7853d5fc7876 /lib/crypto-backend.h | |
parent | 91371f925be73cfb1ecb130efbe16ed17cd64f87 (diff) | |
download | gnutls-561a2dfe7433b322ccf608786c753c9071e150d4.tar.gz |
Separated pk_generate to pk_generate_params() and pk_generate_keys().
This allows using the pk_generate interface to get DH parameters
and DH keys.
Diffstat (limited to 'lib/crypto-backend.h')
-rw-r--r-- | lib/crypto-backend.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/crypto-backend.h b/lib/crypto-backend.h index f7bcd53fa5..6472d2ef37 100644 --- a/lib/crypto-backend.h +++ b/lib/crypto-backend.h @@ -181,6 +181,7 @@ typedef struct { bigint_t params[GNUTLS_MAX_PK_PARAMS]; unsigned int params_nr; /* the number of parameters */ unsigned int flags; + gnutls_pk_algorithm_t algo; } gnutls_pk_params_st; /** @@ -317,7 +318,9 @@ typedef struct gnutls_crypto_pk { /* sanity checks the public key parameters */ int (*verify_params) (gnutls_pk_algorithm_t, const gnutls_pk_params_st * pub); - int (*generate) (gnutls_pk_algorithm_t, unsigned int nbits, + int (*generate_keys) (gnutls_pk_algorithm_t, unsigned int nbits, + gnutls_pk_params_st *); + int (*generate_params) (gnutls_pk_algorithm_t, unsigned int nbits, gnutls_pk_params_st *); /* this function should convert params to ones suitable * for the above functions |