summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-04-16 01:20:43 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-04-19 18:26:32 +0200
commit2b77dc31f96831d35bebe73e28a6654a9abaea6c (patch)
tree808bc4decc740ac0ad53026572d8543911f46d5a /src
parent9822e69ad68011a5a568b298ad617208730e1ebc (diff)
tools: side channel resistant base64
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rw-r--r--src/compat/compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h
index 0a20751..28b8468 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -191,7 +191,7 @@ static inline int crypto_memneq(const void *a, const void *b, size_t size)
{
unsigned long neq = 0;
while (size > 0) {
- neq |= *(unsigned char *)a ^ *(unsigned char *)b;
+ neq |= *(u8 *)a ^ *(u8 *)b;
a += 1;
b += 1;
size -= 1;