summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-05-15 19:56:27 -0400
committerNick Mathewson <nickm@torproject.org>2011-05-15 19:56:27 -0400
commitd29c2eb9214a82653a18d51e643d637851dcd145 (patch)
tree0c8db33f75c60bd716c20002adbcd15a7165b5c0
parent69ff26b05c789e556c3e1401f5065ebf5e49c9d8 (diff)
parent10d670674aa49ee6764cf93fe7d3f485a3f9ffd8 (diff)
downloadtor-d29c2eb9214a82653a18d51e643d637851dcd145.tar.gz
tor-d29c2eb9214a82653a18d51e643d637851dcd145.zip
Merge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2
-rw-r--r--src/common/di_ops.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/common/di_ops.c b/src/common/di_ops.c
index c1e292fe2f..b22a58d1b1 100644
--- a/src/common/di_ops.c
+++ b/src/common/di_ops.c
@@ -3,18 +3,18 @@
/**
* \file di_ops.c
- * \brief Functions for data-independent operations
+ * \brief Functions for data-independent operations.
**/
#include "orconfig.h"
#include "di_ops.h"
/**
- * Timing-safe version of memcmp. As memcmp, compare the <b>sz</b> bytes
- * at <b>a</b> with the <b>sz</b> bytes at <b>, and returns less than 0 if the
- * bytes at <b>a</b> lexically precede those at <b>b</b>, 0 if the byte ranges
- * are equal, and greater than zero if the bytes at <b>a</b> lexically follow
- * those at <b>.
+ * Timing-safe version of memcmp. As memcmp, compare the <b>sz</b> bytes at
+ * <b>a</b> with the <b>sz</b> bytes at <b>b</b>, and return less than 0 if
+ * the bytes at <b>a</b> lexically precede those at <b>b</b>, 0 if the byte
+ * ranges are equal, and greater than zero if the bytes at <b>a</b> lexically
+ * follow those at <b>b</b>.
*
* This implementation differs from memcmp in that its timing behavior is not
* data-dependent: it should return in the same amount of time regardless of
@@ -85,7 +85,7 @@ tor_memcmp(const void *a, const void *b, size_t len)
/**
* Timing-safe memory comparison. Return true if the <b>sz</b> bytes at
- * <b>a</b> are the same as the <b>sz</b> bytes at <b>, and 0 otherwise.
+ * <b>a</b> are the same as the <b>sz</b> bytes at <b>b</b>, and 0 otherwise.
*
* This implementation differs from !memcmp(a,b,sz) in that its timing
* behavior is not data-dependent: it should return in the same amount of time