Overview
SHA1 Hash: | 8fb641e071dc2298638dd2aa8e32211c4398261a |
---|---|
Date: | 2007-10-23 16:35:04 |
User: | drh |
Comment: | 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. |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/sha1.c from [c47a3f3a2b] to [7f2336da5a].
@@ -11,11 +11,10 @@ * If you do not have the ISO standard stdint.h header file, then you * 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 #define shaInputTooLong 1 @@ -30,12 +29,11 @@ uint32_t Intermediate_Hash[SHA1HashSize/4]; /* Message Digest */ 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? */ };