~ubuntu-branches/ubuntu/precise/gnutls28/precise

« back to all changes in this revision

Viewing changes to lib/gnutls_srp.c

  • Committer: Package Import Robot
  • Author(s): Andreas Metzler
  • Date: 2011-09-20 19:37:06 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20110920193706-a9phjijvddzg3nkl
Tags: 3.0.3-1
* New upstream version. (Includes a fix for #640639)
* Bump shlibs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
  size_t b_size, a_size;
173
173
  opaque *holder, hd[MAX_HASH_SIZE];
174
174
  size_t holder_size, hash_size, n_size;
175
 
  digest_hd_st td;
176
175
  int ret;
177
176
  bigint_t res;
178
177
 
197
196
  _gnutls_mpi_print (A, &holder[n_size - a_size], &a_size);
198
197
  _gnutls_mpi_print (B, &holder[n_size + n_size - b_size], &b_size);
199
198
 
200
 
  ret = _gnutls_hash_init (&td, GNUTLS_MAC_SHA1);
 
199
  ret = _gnutls_hash_fast (GNUTLS_MAC_SHA1, holder, holder_size, hd);
201
200
  if (ret < 0)
202
201
    {
203
202
      gnutls_free (holder);
204
203
      gnutls_assert ();
205
204
      return NULL;
206
205
    }
207
 
  _gnutls_hash (&td, holder, holder_size);
208
 
  _gnutls_hash_deinit (&td, hd);
209
206
 
210
207
  /* convert the bytes of hd to integer
211
208
   */