From 2b77dc31f96831d35bebe73e28a6654a9abaea6c Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 16 Apr 2017 01:20:43 +0200 Subject: tools: side channel resistant base64 Signed-off-by: Jason A. Donenfeld --- src/compat/compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compat/compat.h') 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; -- cgit v1.2.3