aboutsummaryrefslogtreecommitdiff
path: root/src/util/consttime_memcmp.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-11-14 17:17:36 +0100
committerChristian Grothoff <christian@grothoff.org>2020-11-14 17:17:36 +0100
commitf62e24a88c21235bc3c901508cfb474509ef2961 (patch)
treeee481be9675674d83f54a6c66dee8356ef1dbcbc /src/util/consttime_memcmp.c
parent3522008dfd14f049a821dfba7ba89a27aa27d4aa (diff)
downloadgnunet-f62e24a88c21235bc3c901508cfb474509ef2961.tar.gz
gnunet-f62e24a88c21235bc3c901508cfb474509ef2961.zip
spell checking
Diffstat (limited to 'src/util/consttime_memcmp.c')
-rw-r--r--src/util/consttime_memcmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/consttime_memcmp.c b/src/util/consttime_memcmp.c
index 820ba9835..5dfcb0757 100644
--- a/src/util/consttime_memcmp.c
+++ b/src/util/consttime_memcmp.c
@@ -105,7 +105,7 @@ SOFTWARE.
105 * implementation-defined overflow behaviour is not invoked. 105 * implementation-defined overflow behaviour is not invoked.
106 * 106 *
107 * We rely on the C standard's guarantees regarding the wraparound 107 * We rely on the C standard's guarantees regarding the wraparound
108 * behaviour of unsigned integer arithmetic, and on the analagous 108 * behaviour of unsigned integer arithmetic, and on the analogous
109 * guarantees regarding conversions from signed types to narrower 109 * guarantees regarding conversions from signed types to narrower
110 * unsigned types. 110 * unsigned types.
111 * 111 *
@@ -252,7 +252,7 @@ consttime_memcmp (const void *b1, const void *b2, size_t len)
252 * instead of int because we need a type that's strictly 252 * instead of int because we need a type that's strictly
253 * larger than 16 bits, and the C standard allows 253 * larger than 16 bits, and the C standard allows
254 * implementations where int is only 16 bits. The result 254 * implementations where int is only 16 bits. The result
255 * from this step will be of type int32_t, and its value wll 255 * from this step will be of type int32_t, and its value will
256 * be one of 0x00008000 (32768), or in the range 0x00008001 256 * be one of 0x00008000 (32768), or in the range 0x00008001
257 * to 0x000080ff (32769 to 33023), or in the range 0x00007f01 257 * to 0x000080ff (32769 to 33023), or in the range 0x00007f01
258 * to 0x00007fff (32513 to 32767). 258 * to 0x00007fff (32513 to 32767).