OSSP CVS Repository

ossp - Check-in [4954]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4954
Date: 2005-Jan-13 10:58:14 (local)
2005-Jan-13 09:58:14 (UTC)
User:rse
Branch:
Comment: Optimize internal md5_store() function by directly finalizing MD5 calculation on buffer copy instead of finalizing original buffer and having to restore it from the buffer copy.
Tickets:
Inspections:
Files:
ossp-pkg/uuid/ChangeLog      1.64 -> 1.65     5 inserted, 0 deleted
ossp-pkg/uuid/uuid_md5.c      1.7 -> 1.8     1 inserted, 2 deleted

ossp-pkg/uuid/ChangeLog 1.64 -> 1.65

--- ChangeLog    2004/12/31 19:20:34     1.64
+++ ChangeLog    2005/01/13 09:58:14     1.65
@@ -13,6 +13,11 @@
 
   Changes between 1.1.1 and 1.1.2 (18-Nov-2004 to xx-Jan-2005)
 
+   o Optimize internal md5_store() function by directly finalizing MD5
+     calculation on buffer copy instead of finalizing original buffer
+     and having to restore it from the buffer copy.
+     [Ralf S. Engelschall]
+
    o Adjust copyright messages for new year 2005.
      [Ralf S. Engelschall]
 


ossp-pkg/uuid/uuid_md5.c 1.7 -> 1.8

--- uuid_md5.c   2004/12/31 19:20:34     1.7
+++ uuid_md5.c   2005/01/13 09:58:14     1.8
@@ -403,8 +403,7 @@
         }
     }
     memcpy((void *)(&ctx), (void *)(&(md5->ctx)), sizeof(MD5_CTX));
-    MD5Final((unsigned char *)(*data_ptr), &(md5->ctx));
-    memcpy((void *)(&(md5->ctx)), (void *)(&ctx), sizeof(MD5_CTX));
+    MD5Final((unsigned char *)(*data_ptr), &(ctx));
     return MD5_RC_OK;
 }
 

CVSTrac 2.0.1