aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/contrib (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-12-12global: fix up spellingJosh Soref1-2/+2
Signed-off-by: Josh Soref <jsoref@gmail.com>
2019-11-27reresolve-dns: remove invalid anchors on regex matchJason A. Donenfeld1-1/+1
Reported-by: Conrad Meyer <cem@freebsd.org>
2019-06-24wg-quick: darwin: support being called from launchdJason A. Donenfeld2-0/+37
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-02-28tools: genkey: account for short reads of /dev/urandomJason A. Donenfeld1-6/+11
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-01-31highlighter: when subtracting char, cast to unsignedJason A. Donenfeld1-2/+2
Windows.
2019-01-23netlink: use __kernel_timespec for handshake timeJason A. Donenfeld1-1/+7
2019-01-23contrib: introduce simple highlighter libraryJason A. Donenfeld8-0/+904
2019-01-23global: normalize -> clampJason A. Donenfeld2-6/+6
2019-01-23keygen-html: bring back pure javascript implementationJason A. Donenfeld6-139/+186
This reverts commit 9d5baf7d1d14ca7eb0852b41566330259229d489. 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-07global: update copyrightJason A. Donenfeld26-26/+26
2018-12-18makefile: use immediate expansion and use correct template patternsJason A. Donenfeld2-0/+2
2018-12-07embeddable-wg-library: do not warn on unrecognized netlink attributesJason A. Donenfeld1-15/+1
This is a follow up of bcf8684c9ec90fe0d283a67d1654d05fb3eae019.
2018-11-19jerry-rig: replace S_shipped with plJason A. Donenfeld1-1/+1
2018-11-14chacha20,poly1305: switch to perlasm originals on mips and armJason A. Donenfeld1-1/+1
We also separate out Eric Biggers' Cortex A7 implementation into its own file.
2018-11-13global: various formatting tweeksJason A. Donenfeld1-25/+25
2018-11-06keygen-html: add missing glue macroJason A. Donenfeld1-0/+1
2018-10-13tools: don't fail if a netlink interface dump is inconsistentJason A. Donenfeld1-2/+9
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-08global: rename struct wireguard_ to struct wg_Jason A. Donenfeld1-5/+5
This required a bit of pruning of our christmas trees. Suggested-by: Jiri Pirko <jiri@resnulli.us>
2018-10-08netlink: do not stuff index into nla typeJason A. Donenfeld1-5/+4
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-08create-patch: blacklist instead of whitelistJason A. Donenfeld1-1/+2
This will deal with filename changes more gracefully. Reported-by: Jordan Glover <Golden_Miller83@protonmail.ch>
2018-10-07crypto: clean up remaining .h->.cJason A. Donenfeld1-1/+1
2018-09-25crypto: make constant naming scheme consistentJason A. Donenfeld1-2/+2
2018-09-20global: put SPDX identifier on its own lineJason A. Donenfeld10-20/+20
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-03crypto: import zincJason A. Donenfeld2-2/+4
2018-08-28global: run through clang-formatJason A. Donenfeld1-1/+1
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-07-24embeddable-wg-library: do not left shift negative numbersJason A. Donenfeld1-7/+2
Otherwise we incur undefined behavior.
2018-06-17dns-hatchet: apply resolv.conf's selinux context to new resolv.confJason A. Donenfeld1-0/+2
2018-06-06tools: encoding: add missing static array constraintsJason A. Donenfeld2-3/+3
2018-05-31tools: constanter time encodingJason A. Donenfeld1-7/+7
2018-05-22ncat-client-server: do not always call sudo and use env bashJason A. Donenfeld1-2/+3
2018-05-16dns-hatchet: update pathsJason A. Donenfeld1-1/+1
Suggested-by: Martin Hauke <mardnh@gmx.de>
2018-05-15ncat-client-server: add wg-quick variantJason A. Donenfeld2-4/+37
2018-05-03embeddable-wg-library: zero attribute paddingJason A. Donenfeld1-0/+4
See: http://git.netfilter.org/libmnl/commit/?id=37c876b55a2c00424ccda5a300ab5fdec1d88b22
2018-05-02keygen-html: add zip file exampleJason A. Donenfeld1-3/+127
A little bit more JavaScript for easy copy&pasting.
2018-03-04contrib: add extract-handshakes kprobe exampleJason A. Donenfeld5-0/+175
2018-03-02Revert "contrib: keygen-html: rewrite in pure javascript"Jason A. Donenfeld5-187/+129
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-02contrib: keygen-html: rewrite in pure javascriptJason A. Donenfeld5-129/+187
Emscripten is too cumbersome. This code here is much slower, but it's shorter and simpler.
2018-03-02contrib: embedded-wg-library: add key generation functionsJason A. Donenfeld3-2/+205
2018-02-21contrib: embedded-wg-library: add ability to add and del interfacesJason A. Donenfeld3-3/+109
2018-02-17contrib: add embeddable wireguard libraryJason A. Donenfeld6-0/+1671
2018-02-17tools: allow in-line commentsJason A. Donenfeld1-2/+3
2018-02-15external-tests: update go versionJason A. Donenfeld1-2/+2
2018-02-02keygen-html: fix up copyrightJason A. Donenfeld1-4/+0
2018-02-01curve25519: replace fiat64 with faster hacl64Jason A. Donenfeld1-1/+1
This reverts commit da4ff396cc5d5e0ff21f9ecbc2f951c048c63fff and adds some optimizations to hacl64.
2018-02-01curve25519: replace hacl64 with fiat64Jason A. Donenfeld1-1/+1
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-01-23contrib: keygen-html: share curve25519 implementation with kernelJason A. Donenfeld2-831/+31
2018-01-18curve25519-fiat32: uninline certain functionsJason A. Donenfeld1-4/+4
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-18contrib: keygen-html: update curve25519 implementationJason A. Donenfeld1-785/+769
2018-01-11external-tests: add python implementationPiotr Lizończyk1-0/+94
2018-01-10wg-quick: ifnames have max len of 15Jason A. Donenfeld1-2/+2