[BACK]Return to ssh_md5.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/Attic/ssh_md5.c between version 1.1 and 1.2

version 1.1, 1999/09/26 20:53:38 version 1.2, 1999/09/30 05:19:57
Line 43 
Line 43 
  */   */
 void MD5Update(struct MD5Context *ctx, unsigned char const *buf, unsigned len)  void MD5Update(struct MD5Context *ctx, unsigned char const *buf, unsigned len)
 {  {
     uint32 t;      u_int32_t t;
   
     /* Update bitcount */      /* Update bitcount */
   
     t = ctx->bits[0];      t = ctx->bits[0];
     if ((ctx->bits[0] = (t + ((uint32)len << 3)) & 0xffffffff) < t)      if ((ctx->bits[0] = (t + ((u_int32_t)len << 3)) & 0xffffffff) < t)
         ctx->bits[1]++;         /* Carry from low to high */          ctx->bits[1]++;         /* Carry from low to high */
     ctx->bits[1] += len >> 29;      ctx->bits[1] += len >> 29;
   
Line 147 
Line 147 
  * reflect the addition of 16 longwords of new data.  MD5Update blocks   * reflect the addition of 16 longwords of new data.  MD5Update blocks
  * the data and converts bytes into longwords for this routine.   * the data and converts bytes into longwords for this routine.
  */   */
 void MD5Transform(uint32 buf[4], const unsigned char inext[64])  void MD5Transform(u_int32_t buf[4], const unsigned char inext[64])
 {  {
     register word32 a, b, c, d, i;      register u_int32_t a, b, c, d, i;
     word32 in[16];      u_int32_t in[16];
   
     for (i = 0; i < 16; i++)      for (i = 0; i < 16; i++)
       in[i] = GET_32BIT_LSB_FIRST(inext + 4 * i);        in[i] = GET_32BIT_LSB_FIRST(inext + 4 * i);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2