diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2013-11-19 13:32:48 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2013-11-27 11:41:43 +0100 |
commit | 0be38cfe07cbbbd902814c61a2e41ed44c758bb8 (patch) | |
tree | f829e35769802f7e6220e1deb9f25a8618d25ff1 /lib/crypto-backend.h | |
parent | 4293b9ae12d07c863f882c5c0915eeccc76ed1d2 (diff) | |
download | gnutls-0be38cfe07cbbbd902814c61a2e41ed44c758bb8.tar.gz |
Added _gnutls_mpi_random_modp() and _gnutls_mpi_modm() to replace _gnutls_mpi_mod().
Diffstat (limited to 'lib/crypto-backend.h')
-rw-r--r-- | lib/crypto-backend.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/crypto-backend.h b/lib/crypto-backend.h index ef3cd0ad76..f7bcd53fa5 100644 --- a/lib/crypto-backend.h +++ b/lib/crypto-backend.h @@ -118,12 +118,12 @@ typedef struct gnutls_crypto_bigint { int (*bigint_cmp) (const bigint_t m1, const bigint_t m2); /* as bigint_cmp */ int (*bigint_cmp_ui) (const bigint_t m1, unsigned long m2); - /* ret = a % b */ - bigint_t(*bigint_mod) (const bigint_t a, const bigint_t b); + /* r = a % b */ + bigint_t (*bigint_modm) (bigint_t r, const bigint_t a, const bigint_t b); /* a = b -> ret == a */ - bigint_t(*bigint_set) (bigint_t a, const bigint_t b); + bigint_t (*bigint_set) (bigint_t a, const bigint_t b); /* a = b -> ret == a */ - bigint_t(*bigint_set_ui) (bigint_t a, unsigned long b); + bigint_t (*bigint_set_ui) (bigint_t a, unsigned long b); unsigned int (*bigint_get_nbits) (const bigint_t a); /* w = b ^ e mod m */ bigint_t(*bigint_powm) (bigint_t w, const bigint_t b, |