Diff
Not logged in

Differences From:

File src/sha1.c part of check-in [17486c353f] - Add a #include of <sys/types.h> to sha1.c. I am told this help it to compile on BSD systems. by drh on 2007-10-23 16:30:21. [view]

To:

File src/sha1.c part of check-in [8fb641e071] - Get rid of the (silly?) int_least16_t type in sha1.c and just use good old "int" instead. Makes things easier to compile on older systems. by drh on 2007-10-23 16:35:04. Also file src/sha1.c part of check-in [d0305b305a] - Merged mainline into my branch to get the newest application. by aku on 2007-12-05 08:07:46. [view]

@@ -12,9 +12,8 @@
  * must typdef the following:
  *    name              meaning
  *  uint32_t         unsigned 32 bit integer
  *  uint8_t          unsigned 8 bit integer (i.e., unsigned char)
- *  int_least16_t    integer of >= 16 bits
  *
  */
 #define SHA1HashSize 20
 #define shaSuccess 0
@@ -31,10 +30,9 @@
 
     uint32_t Length_Low;            /* Message length in bits      */
     uint32_t Length_High;           /* Message length in bits      */
 
-                               /* Index into message block array   */
-    int_least16_t Message_Block_Index;
+    int Message_Block_Index;   /* Index into message block array   */
     uint8_t Message_Block[64];      /* 512-bit message blocks      */
 
     int Computed;               /* Is the digest computed?         */
     int Corrupted;             /* Is the message digest corrupted? */