diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-09-08 17:55:29 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-09-08 17:55:29 +0200 |
commit | 8c1f6e123b1e6aa852c2a823008e3dbf5ef0dd6b (patch) | |
tree | 418a17a072672046cd32f44dd5a04e9f3f313ec7 /lib/gnutls_srp.c | |
parent | d0873ee0cb075836c874d44984bb80c7b0b9b602 (diff) | |
download | gnutls-8c1f6e123b1e6aa852c2a823008e3dbf5ef0dd6b.tar.gz |
converted quick data hashes to _gnutls_hash_fast and the hmac equivalent.
Diffstat (limited to 'lib/gnutls_srp.c')
-rw-r--r-- | lib/gnutls_srp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/gnutls_srp.c b/lib/gnutls_srp.c index 6df501a760..4509834f09 100644 --- a/lib/gnutls_srp.c +++ b/lib/gnutls_srp.c @@ -172,7 +172,6 @@ _gnutls_calc_srp_u (bigint_t A, bigint_t B, bigint_t n) size_t b_size, a_size; opaque *holder, hd[MAX_HASH_SIZE]; size_t holder_size, hash_size, n_size; - digest_hd_st td; int ret; bigint_t res; @@ -197,15 +196,13 @@ _gnutls_calc_srp_u (bigint_t A, bigint_t B, bigint_t n) _gnutls_mpi_print (A, &holder[n_size - a_size], &a_size); _gnutls_mpi_print (B, &holder[n_size + n_size - b_size], &b_size); - ret = _gnutls_hash_init (&td, GNUTLS_MAC_SHA1); + ret = _gnutls_hash_fast (GNUTLS_MAC_SHA1, holder, holder_size, hd); if (ret < 0) { gnutls_free (holder); gnutls_assert (); return NULL; } - _gnutls_hash (&td, holder, holder_size); - _gnutls_hash_deinit (&td, hd); /* convert the bytes of hd to integer */ |