/[pkg-openssl]/openssl/trunk/rand/md_rand.c
ViewVC logotype

Diff of /openssl/trunk/rand/md_rand.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 140 by kroeckx, Tue May 2 16:25:19 2006 UTC revision 141 by kroeckx, Tue May 2 16:34:53 2006 UTC
# Line 271  static void ssleay_rand_add(const void * Line 271  static void ssleay_rand_add(const void *
271                  else                  else
272                          MD_Update(&m,&(state[st_idx]),j);                          MD_Update(&m,&(state[st_idx]),j);
273    
274    /*
275     * Don't add uninitialised data.
276                  MD_Update(&m,buf,j);                  MD_Update(&m,buf,j);
277    */
278                  MD_Update(&m,(unsigned char *)&(md_c[0]),sizeof(md_c));                  MD_Update(&m,(unsigned char *)&(md_c[0]),sizeof(md_c));
279                  MD_Final(&m,local_md);                  MD_Final(&m,local_md);
280                  md_c[1]++;                  md_c[1]++;
# Line 465  static int ssleay_rand_bytes(unsigned ch Line 468  static int ssleay_rand_bytes(unsigned ch
468                  MD_Update(&m,local_md,MD_DIGEST_LENGTH);                  MD_Update(&m,local_md,MD_DIGEST_LENGTH);
469                  MD_Update(&m,(unsigned char *)&(md_c[0]),sizeof(md_c));                  MD_Update(&m,(unsigned char *)&(md_c[0]),sizeof(md_c));
470  #ifndef PURIFY  #ifndef PURIFY
471    /*
472     * Don't add uninitialised data.
473                  MD_Update(&m,buf,j); /* purify complains */                  MD_Update(&m,buf,j); /* purify complains */
474    */
475  #endif  #endif
476                  k=(st_idx+MD_DIGEST_LENGTH/2)-st_num;                  k=(st_idx+MD_DIGEST_LENGTH/2)-st_num;
477                  if (k > 0)                  if (k > 0)

Legend:
Removed from v.140  
changed lines
  Added in v.141

  ViewVC Help
Powered by ViewVC 1.1.5