aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-11-11 22:35:07 -0500
committerJason A. Donenfeld <Jason@zx2c4.com>2018-11-13 00:34:16 -0800
commit8813c7d8d2608aca8d451b3cb4d7f3285c043691 (patch)
tree9cdb98932f9679f50942b3da2fdf3d8a89271615 /src/crypto
parentcompat: csum_levels is new in 3.18 but backported to RHEL (diff)
downloadwireguard-linux-compat-8813c7d8d2608aca8d451b3cb4d7f3285c043691.tar.xz
wireguard-linux-compat-8813c7d8d2608aca8d451b3cb4d7f3285c043691.zip
global: various formatting tweeks
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/zinc/chacha20/chacha20-mips-glue.c1
-rw-r--r--src/crypto/zinc/curve25519/curve25519-fiat32.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/crypto/zinc/chacha20/chacha20-mips-glue.c b/src/crypto/zinc/chacha20/chacha20-mips-glue.c
index 917d8fa..0559321 100644
--- a/src/crypto/zinc/chacha20/chacha20-mips-glue.c
+++ b/src/crypto/zinc/chacha20/chacha20-mips-glue.c
@@ -18,7 +18,6 @@ static inline bool chacha20_arch(struct chacha20_ctx *ctx, u8 *dst,
return true;
}
-
static inline bool hchacha20_arch(u32 derived_key[CHACHA20_KEY_WORDS],
const u8 nonce[HCHACHA20_NONCE_SIZE],
const u8 key[HCHACHA20_KEY_SIZE],
diff --git a/src/crypto/zinc/curve25519/curve25519-fiat32.c b/src/crypto/zinc/curve25519/curve25519-fiat32.c
index 6076c06..50e6f3f 100644
--- a/src/crypto/zinc/curve25519/curve25519-fiat32.c
+++ b/src/crypto/zinc/curve25519/curve25519-fiat32.c
@@ -618,7 +618,7 @@ static __always_inline void fe_invert(fe *out, const fe *z)
static __always_inline void fe_cswap(fe *f, fe *g, unsigned int b)
{
unsigned i;
- b = 0-b;
+ b = 0 - b;
for (i = 0; i < 10; i++) {
u32 x = f->v[i] ^ g->v[i];
x &= b;