Fossil SCM

Fix comment.

dmitry 2011-09-29 17:26 dmitry-security
Commit a0fa120b747c1bf7003b06c7b135d8b71776e7ae
1 file changed +1 -1
+1 -1
--- src/blob.c
+++ src/blob.c
@@ -317,11 +317,11 @@
317317
}
318318
319319
/*
320320
** Compare two blobs in constant time and return zero if they are equal.
321321
** 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.
323323
*/
324324
int blob_constant_time_eq(Blob *pA, Blob *pB){
325325
int szA, szB, i;
326326
unsigned char *buf1, *buf2;
327327
unsigned char rc = 0;
328328
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button