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
commit87611c1f178ba59b682801574e930e5229fc2d2f (patch)
treec98bb2dcdbfdc3af95ad04c7e3cc817d4a136291 /src/crypto
parentwg-quick: android: do not choke on empty allowed-ips (diff)
downloadwireguard-monolithic-historical-87611c1f178ba59b682801574e930e5229fc2d2f.tar.xz
wireguard-monolithic-historical-87611c1f178ba59b682801574e930e5229fc2d2f.zip
global: various formatting tweeks
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;