diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-04-16 01:20:43 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-04-19 18:26:32 +0200 |
commit | 94273094f6607923f7e52b16717325f6ed7d9d46 (patch) | |
tree | f35a0bbd1d17ca66f857bc75b3434d59dddb7227 /src/compat/compat.h | |
parent | netns: cleanup and add diagram (diff) | |
download | wireguard-monolithic-historical-94273094f6607923f7e52b16717325f6ed7d9d46.tar.xz wireguard-monolithic-historical-94273094f6607923f7e52b16717325f6ed7d9d46.zip |
tools: side channel resistant base64
Diffstat (limited to 'src/compat/compat.h')
-rw-r--r-- | src/compat/compat.h | 2 |
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; |