| | @@ -22,11 +22,11 @@ |
| 22 | 22 | #include <stdint.h> |
| 23 | 23 | #include "sha1.h" |
| 24 | 24 | |
| 25 | 25 | |
| 26 | 26 | /* |
| 27 | | -** Implementation #1 is the hardened SHA1 implementation by |
| 27 | +** SHA1 Implementation #1 is the hardened SHA1 implementation by |
| 28 | 28 | ** Marc Stevens. Code obtained from GitHub |
| 29 | 29 | ** |
| 30 | 30 | ** https://github.com/cr-marcstevens/sha1collisiondetection |
| 31 | 31 | ** |
| 32 | 32 | ** Downloaded on 2017-03-01 then repackaged to work with Fossil |
| | @@ -63,11 +63,11 @@ |
| 63 | 63 | #define SHA1Init SHA1DCInit |
| 64 | 64 | #define SHA1Update SHA1DCUpdate |
| 65 | 65 | #define SHA1Final SHA1DCFinal |
| 66 | 66 | |
| 67 | 67 | /* |
| 68 | | -** The second case: use the SHA1 algorithm built into SSL |
| 68 | +** SHA1 Implemenatation #2: use the SHA1 algorithm built into SSL |
| 69 | 69 | */ |
| 70 | 70 | #elif defined(FOSSIL_ENABLE_SSL) |
| 71 | 71 | |
| 72 | 72 | # include <openssl/sha.h> |
| 73 | 73 | # define SHA1Context SHA_CTX |
| | @@ -74,12 +74,13 @@ |
| 74 | 74 | # define SHA1Init SHA1_Init |
| 75 | 75 | # define SHA1Update SHA1_Update |
| 76 | 76 | # define SHA1Final SHA1_Final |
| 77 | 77 | |
| 78 | 78 | /* |
| 79 | | -** If none of the previous two SHA1 algorithms work, there |
| 80 | | -** is this built-in. The built-in below is the original. |
| 79 | +** SHA1 Implemenatation #3: If none of the previous two SHA1 |
| 80 | +** algorithms work, there is this built-in. This built-in was the |
| 81 | +** original implementation used by Fossil. |
| 81 | 82 | */ |
| 82 | 83 | #else |
| 83 | 84 | /* |
| 84 | 85 | ** The SHA1 implementation below is adapted from: |
| 85 | 86 | ** |
| 86 | 87 | |