Fossil SCM
Fix comment.
Commit
a0fa120b747c1bf7003b06c7b135d8b71776e7ae
Parent
7f110475ec15be9…
1 file changed
+1
-1
+1
-1
| --- src/blob.c | ||
| +++ src/blob.c | ||
| @@ -317,11 +317,11 @@ | ||
| 317 | 317 | } |
| 318 | 318 | |
| 319 | 319 | /* |
| 320 | 320 | ** Compare two blobs in constant time and return zero if they are equal. |
| 321 | 321 | ** Constant time comparison only applies for blobs of the same length. |
| 322 | -** If lengths are different, immediately returns false. | |
| 322 | +** If lengths are different, immediately returns 1. | |
| 323 | 323 | */ |
| 324 | 324 | int blob_constant_time_eq(Blob *pA, Blob *pB){ |
| 325 | 325 | int szA, szB, i; |
| 326 | 326 | unsigned char *buf1, *buf2; |
| 327 | 327 | unsigned char rc = 0; |
| 328 | 328 |
| --- src/blob.c | |
| +++ src/blob.c | |
| @@ -317,11 +317,11 @@ | |
| 317 | } |
| 318 | |
| 319 | /* |
| 320 | ** Compare two blobs in constant time and return zero if they are equal. |
| 321 | ** Constant time comparison only applies for blobs of the same length. |
| 322 | ** If lengths are different, immediately returns false. |
| 323 | */ |
| 324 | int blob_constant_time_eq(Blob *pA, Blob *pB){ |
| 325 | int szA, szB, i; |
| 326 | unsigned char *buf1, *buf2; |
| 327 | unsigned char rc = 0; |
| 328 |
| --- src/blob.c | |
| +++ src/blob.c | |
| @@ -317,11 +317,11 @@ | |
| 317 | } |
| 318 | |
| 319 | /* |
| 320 | ** Compare two blobs in constant time and return zero if they are equal. |
| 321 | ** Constant time comparison only applies for blobs of the same length. |
| 322 | ** If lengths are different, immediately returns 1. |
| 323 | */ |
| 324 | int blob_constant_time_eq(Blob *pA, Blob *pB){ |
| 325 | int szA, szB, i; |
| 326 | unsigned char *buf1, *buf2; |
| 327 | unsigned char rc = 0; |
| 328 |