Josh Soref
1d8e978e28
global: fix up spelling
...
Signed-off-by: Josh Soref <jsoref@gmail.com>
2019-12-12 12:24:05 +01:00
Jason A. Donenfeld
cf3948dab5
reresolve-dns: remove invalid anchors on regex match
...
Reported-by: Conrad Meyer <cem@freebsd.org>
2019-11-27 14:42:34 +01:00
Jason A. Donenfeld
59c9dbe6a3
wg-quick: darwin: support being called from launchd
...
This causes wg-quick up to wait for the monitor to exit before it exits,
so that launchd can correctly wait on it.
Reported-by: Cameron Palmer <cameron@promon.no>
2019-06-24 11:19:18 +02:00
Jason A. Donenfeld
033dc8974d
tools: genkey: account for short reads of /dev/urandom
...
Apparently Haiku has a misbehaving /dev/urandom.
While we're at it, simplify the function signature to completely succeed
or completely fail and make sure the caller checks the result.
Reported-by: Alexander von Gluck IV <kallisti5@unixzen.com>
Nitpicked-by: Aaron Jones <aaronmdjones@gmail.com>
2019-02-28 23:53:00 +01:00
Jason A. Donenfeld
936973ebcb
highlighter: when subtracting char, cast to unsigned
...
Windows.
2019-01-31 02:03:10 +01:00
Jason A. Donenfeld
c870c7af53
netlink: use __kernel_timespec for handshake time
2019-01-23 14:29:44 +01:00
Jason A. Donenfeld
7326c8d67a
contrib: introduce simple highlighter library
2019-01-23 14:29:44 +01:00
Jason A. Donenfeld
6f0fc6cb3e
global: normalize -> clamp
2019-01-23 14:29:44 +01:00
Jason A. Donenfeld
e3c47c3528
keygen-html: bring back pure javascript implementation
...
This reverts commit 9d5baf7d1d
.
Benoît Viguier has proofs that values will stay well within 2^53. We
also have an improved carry function that's much simpler.
2019-01-23 14:29:44 +01:00
Jason A. Donenfeld
92da6bd53f
global: update copyright
2019-01-07 19:26:10 -05:00
Jason A. Donenfeld
622cef6f81
makefile: use immediate expansion and use correct template patterns
2018-12-18 14:41:48 +01:00
Jason A. Donenfeld
9e0365179e
embeddable-wg-library: do not warn on unrecognized netlink attributes
...
This is a follow up of bcf8684c9e
.
2018-12-07 06:07:35 +01:00
Jason A. Donenfeld
37466fb996
jerry-rig: replace S_shipped with pl
2018-11-19 19:59:54 +01:00
Jason A. Donenfeld
08825b907d
chacha20,poly1305: switch to perlasm originals on mips and arm
...
We also separate out Eric Biggers' Cortex A7 implementation into its own
file.
2018-11-14 23:59:05 -08:00
Jason A. Donenfeld
87611c1f17
global: various formatting tweeks
2018-11-13 00:34:16 -08:00
Jason A. Donenfeld
00bf4f8c8c
keygen-html: add missing glue macro
2018-11-06 03:30:06 +01:00
Jason A. Donenfeld
ac7e7a3fcd
tools: don't fail if a netlink interface dump is inconsistent
...
Netlink returns NLM_F_DUMP_INTR if the set of all tunnels changed
during the dump. That's unfortunate, but is pretty common on busy
systems that are adding and removing tunnels all the time. Rather
than retrying, potentially indefinitely, we just work with the
partial results.
Reported-by: Robert Gerus <ar@is-a.cat>
2018-10-13 01:55:31 +02:00
Jason A. Donenfeld
06b1236471
global: rename struct wireguard_ to struct wg_
...
This required a bit of pruning of our christmas trees.
Suggested-by: Jiri Pirko <jiri@resnulli.us>
2018-10-08 03:38:12 +02:00
Jason A. Donenfeld
205dd46aae
netlink: do not stuff index into nla type
...
It's not used for anything, and LKML doesn't like the type being used as
an index value.
Suggested-by: Eugene Syromiatnikov <esyr@redhat.com>
2018-10-08 03:14:52 +02:00
Jason A. Donenfeld
a93d7e4688
create-patch: blacklist instead of whitelist
...
This will deal with filename changes more gracefully.
Reported-by: Jordan Glover <Golden_Miller83@protonmail.ch>
2018-10-08 03:14:52 +02:00
Jason A. Donenfeld
4b34b6af71
crypto: clean up remaining .h->.c
2018-10-07 16:35:54 +02:00
Jason A. Donenfeld
28d8b7eafe
crypto: make constant naming scheme consistent
2018-09-25 03:01:21 +02:00
Jason A. Donenfeld
197a30ce3e
global: put SPDX identifier on its own line
...
The kernel has very specific rules correlating file type with comment
type, and also SPDX identifiers can't be merged with other comments.
2018-09-20 19:41:22 +02:00
Jason A. Donenfeld
4a0e319af8
crypto: import zinc
2018-09-03 23:52:11 -06:00
Jason A. Donenfeld
f103d1e2b4
global: run through clang-format
...
This is the worst commit in the whole repo, making the code much less
readable, but so it goes with upstream maintainers.
We are now woefully wrapped at 80 columns.
2018-08-28 23:20:13 -06:00
Jason A. Donenfeld
bf0005ef18
embeddable-wg-library: do not left shift negative numbers
...
Otherwise we incur undefined behavior.
2018-07-24 18:15:17 +02:00
Jason A. Donenfeld
9132be46ed
dns-hatchet: apply resolv.conf's selinux context to new resolv.conf
2018-06-17 19:36:37 +02:00
Jason A. Donenfeld
bb1f9a5e94
tools: encoding: add missing static array constraints
2018-06-06 00:05:58 +02:00
Jason A. Donenfeld
fc07df7d4c
tools: constanter time encoding
2018-05-31 01:24:51 +02:00
Jason A. Donenfeld
b7dca0a8a5
ncat-client-server: do not always call sudo and use env bash
2018-05-22 16:41:59 +02:00
Jason A. Donenfeld
58cf40ccf4
dns-hatchet: update paths
...
Suggested-by: Martin Hauke <mardnh@gmx.de>
2018-05-16 04:04:46 +02:00
Jason A. Donenfeld
4884b45a70
ncat-client-server: add wg-quick variant
2018-05-15 02:26:55 +02:00
Jason A. Donenfeld
41df6d23ed
embeddable-wg-library: zero attribute padding
...
See: http://git.netfilter.org/libmnl/commit/?id=37c876b55a2c00424ccda5a300ab5fdec1d88b22
2018-05-03 19:08:20 +02:00
Jason A. Donenfeld
9a1bea61d4
keygen-html: add zip file example
...
A little bit more JavaScript for easy copy&pasting.
2018-05-02 17:38:07 +02:00
Jason A. Donenfeld
b6a5cc0001
contrib: add extract-handshakes kprobe example
2018-03-04 18:50:25 +01:00
Jason A. Donenfeld
9d5baf7d1d
Revert "contrib: keygen-html: rewrite in pure javascript"
...
This reverts commit e5203543a674453ce1e0cbbcb234d3308762fe65.
As swanky as it is to have a really short file, it's hard to justify and
makes me nervous.
2018-03-02 16:42:29 +01:00
Jason A. Donenfeld
6e09a46be8
contrib: keygen-html: rewrite in pure javascript
...
Emscripten is too cumbersome. This code here is much slower, but it's
shorter and simpler.
2018-03-02 16:42:29 +01:00
Jason A. Donenfeld
ec65415b23
contrib: embedded-wg-library: add key generation functions
2018-03-02 16:42:29 +01:00
Jason A. Donenfeld
ce04251546
contrib: embedded-wg-library: add ability to add and del interfaces
2018-02-21 02:53:06 +01:00
Jason A. Donenfeld
418416a5c7
contrib: add embeddable wireguard library
2018-02-17 05:55:03 +01:00
Jason A. Donenfeld
a3b104108e
tools: allow in-line comments
2018-02-17 05:55:03 +01:00
Jason A. Donenfeld
781964ccd0
external-tests: update go version
2018-02-15 13:12:28 +01:00
Jason A. Donenfeld
a27cce49ef
keygen-html: fix up copyright
2018-02-02 22:03:11 +01:00
Jason A. Donenfeld
93fa0d934b
curve25519: replace fiat64 with faster hacl64
...
This reverts commit da4ff396cc5d5e0ff21f9ecbc2f951c048c63fff and adds
some optimizations to hacl64.
2018-02-01 19:51:50 +01:00
Jason A. Donenfeld
6177bdd32d
curve25519: replace hacl64 with fiat64
...
For now, it's faster:
hacl64: 109782 cycles per call
fiat64: 108984 cycles per call
It's quite possible this commit will be reverted with nice changes from
INRIA, though.
2018-02-01 19:51:50 +01:00
Jason A. Donenfeld
e23e4512b3
contrib: keygen-html: share curve25519 implementation with kernel
2018-01-23 11:55:44 +01:00
Jason A. Donenfeld
10a2edf0e2
curve25519-fiat32: uninline certain functions
...
While this has a negative performance impact on x86_64, it has a
positive performance impact on smaller machines, which is where we're
actually using this code. For example, an A53:
Before:
fiat32: 228605 cycles per call
After:
fiat32: 188307 cycles per call
2018-01-18 20:14:27 +01:00
Jason A. Donenfeld
7bc05796e5
contrib: keygen-html: update curve25519 implementation
2018-01-18 13:28:16 +01:00
Piotr Lizończyk
09bf49bbdd
external-tests: add python implementation
2018-01-11 14:54:30 +01:00
Jason A. Donenfeld
b4d5801a16
wg-quick: ifnames have max len of 15
2018-01-10 02:51:01 +01:00