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

Diff for /src/usr.bin/rsync/hash.c between version 1.4 and 1.5

version 1.4, 2021/06/30 13:10:04 version 1.5, 2024/02/27 11:28:30
Line 82 
Line 82 
  * of the sequence, not the beginning.   * of the sequence, not the beginning.
  */   */
 void  void
 hash_file(const void *buf, size_t len,  hash_file_start(MD4_CTX *ctx, const struct sess *sess)
         unsigned char *md, const struct sess *sess)  
 {  {
         MD4_CTX          ctx;  
         int32_t          seed = htole32(sess->seed);          int32_t          seed = htole32(sess->seed);
   
         MD4_Init(&ctx);          MD4_Init(ctx);
         MD4_Update(&ctx, (unsigned char *)&seed, sizeof(int32_t));          MD4_Update(ctx, (unsigned char *)&seed, sizeof(int32_t));
         MD4_Update(&ctx, buf, len);  }
         MD4_Final(md, &ctx);  
   void
   hash_file_buf(MD4_CTX *ctx, const void *buf, size_t len)
   {
           MD4_Update(ctx, buf, len);
   }
   void
   hash_file_final(MD4_CTX *ctx, unsigned char *md)
   {
           MD4_Final(md, ctx);
 }  }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5