Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Saturday, October 17, 2026

Diff for libplaton/platon/hash/md5.c between version 1.2 and 1.3

version 1.2, 2004/08/27 22:18:03 version 1.3, 2004/08/28 06:40:02
Line 29  documentation and/or software.
Line 29  documentation and/or software.
   
 #include <platon/hash/md5.h>  #include <platon/hash/md5.h>
   
   #define MD5_USE_MEM_FUNCTIONS           (1)
   
 /* Constants for MD5Transform routine.  /* Constants for MD5Transform routine.
  */   */
   
Line 52  documentation and/or software.
Line 54  documentation and/or software.
 static void MD5Transform PROTO_LIST ((UINT4 [4], unsigned char [64]));  static void MD5Transform PROTO_LIST ((UINT4 [4], unsigned char [64]));
 static void Encode PROTO_LIST ((unsigned char *, UINT4 *, unsigned int));  static void Encode PROTO_LIST ((unsigned char *, UINT4 *, unsigned int));
 static void Decode PROTO_LIST ((UINT4 *, unsigned char *, unsigned int));  static void Decode PROTO_LIST ((UINT4 *, unsigned char *, unsigned int));
   #if defined(MD5_USE_MEM_FUNCTIONS) && MD5_USE_MEM_FUNCTIONS
   #  include <string.h>
   #  define MD5_memcpy            memcpy
   #  define MD5_memset            memset
   /* nothing */
   #else
 static void MD5_memcpy PROTO_LIST ((POINTER, POINTER, unsigned int));  static void MD5_memcpy PROTO_LIST ((POINTER, POINTER, unsigned int));
 static void MD5_memset PROTO_LIST ((POINTER, int, unsigned int));  static void MD5_memset PROTO_LIST ((POINTER, int, unsigned int));
   #endif /* #if defined(MD5_USE_MEM_FUNCTIONS) && MD5_USE_MEM_FUNCTIONS */
   
 static unsigned char PADDING[64] = {  static unsigned char PADDING[64] = {
         0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,          0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
Line 313  Decode(output, input, len)
Line 322  Decode(output, input, len)
                         (((UINT4)input[j+2]) << 16) | (((UINT4)input[j+3]) << 24);                          (((UINT4)input[j+2]) << 16) | (((UINT4)input[j+3]) << 24);
 } /* }}} */  } /* }}} */
   
   #if defined(MD5_USE_MEM_FUNCTIONS) && MD5_USE_MEM_FUNCTIONS
   /* nothing */
   #else
   
         static void          static void
 MD5_memcpy(output, input, len)  MD5_memcpy(output, input, len)
         POINTER output;          POINTER output;
Line 339  MD5_memset(output, value, len)
Line 352  MD5_memset(output, value, len)
                 ((char *)output)[i] = (char)value;                  ((char *)output)[i] = (char)value;
 } /* }}} */  } /* }}} */
   
   #endif /* #if defined(MD5_USE_MEM_FUNCTIONS) && MD5_USE_MEM_FUNCTIONS */
   
 #if defined(SELF) || defined(SELFTEST) || defined(SELF_HASH_MD5) /* {{{ */  #if defined(SELF) || defined(SELFTEST) || defined(SELF_HASH_MD5) /* {{{ */
   
 /*  /*

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

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top