aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/contrib/examples (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tools: genkey: account for short reads of /dev/urandomJason A. Donenfeld2019-02-281-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>
* highlighter: when subtracting char, cast to unsignedJason A. Donenfeld2019-01-311-2/+2
| | | | Windows.
* netlink: use __kernel_timespec for handshake timeJason A. Donenfeld2019-01-231-1/+7
|
* contrib: introduce simple highlighter libraryJason A. Donenfeld2019-01-238-0/+904
|
* global: normalize -> clampJason A. Donenfeld2019-01-232-6/+6
|
* keygen-html: bring back pure javascript implementationJason A. Donenfeld2019-01-236-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.
* global: update copyrightJason A. Donenfeld2019-01-0721-21/+21
|
* makefile: use immediate expansion and use correct template patternsJason A. Donenfeld2018-12-182-0/+2
|
* embeddable-wg-library: do not warn on unrecognized netlink attributesJason A. Donenfeld2018-12-071-15/+1
| | | | This is a follow up of bcf8684c9ec90fe0d283a67d1654d05fb3eae019.
* global: various formatting tweeksJason A. Donenfeld2018-11-131-25/+25
|
* keygen-html: add missing glue macroJason A. Donenfeld2018-11-061-0/+1
|
* tools: don't fail if a netlink interface dump is inconsistentJason A. Donenfeld2018-10-131-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>
* global: rename struct wireguard_ to struct wg_Jason A. Donenfeld2018-10-081-5/+5
| | | | | | This required a bit of pruning of our christmas trees. Suggested-by: Jiri Pirko <jiri@resnulli.us>
* netlink: do not stuff index into nla typeJason A. Donenfeld2018-10-081-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>
* crypto: clean up remaining .h->.cJason A. Donenfeld2018-10-071-1/+1
|
* crypto: make constant naming scheme consistentJason A. Donenfeld2018-09-251-2/+2
|
* global: put SPDX identifier on its own lineJason A. Donenfeld2018-09-2010-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.
* crypto: import zincJason A. Donenfeld2018-09-031-1/+1
|
* embeddable-wg-library: do not left shift negative numbersJason A. Donenfeld2018-07-241-7/+2
| | | | Otherwise we incur undefined behavior.
* dns-hatchet: apply resolv.conf's selinux context to new resolv.confJason A. Donenfeld2018-06-171-0/+2
|
* tools: encoding: add missing static array constraintsJason A. Donenfeld2018-06-062-3/+3
|
* tools: constanter time encodingJason A. Donenfeld2018-05-311-7/+7
|
* ncat-client-server: do not always call sudo and use env bashJason A. Donenfeld2018-05-221-2/+3
|
* dns-hatchet: update pathsJason A. Donenfeld2018-05-161-1/+1
| | | | Suggested-by: Martin Hauke <mardnh@gmx.de>
* ncat-client-server: add wg-quick variantJason A. Donenfeld2018-05-152-4/+37
|
* embeddable-wg-library: zero attribute paddingJason A. Donenfeld2018-05-031-0/+4
| | | | See: http://git.netfilter.org/libmnl/commit/?id=37c876b55a2c00424ccda5a300ab5fdec1d88b22
* keygen-html: add zip file exampleJason A. Donenfeld2018-05-021-3/+127
| | | | A little bit more JavaScript for easy copy&pasting.
* contrib: add extract-handshakes kprobe exampleJason A. Donenfeld2018-03-045-0/+175
|
* Revert "contrib: keygen-html: rewrite in pure javascript"Jason A. Donenfeld2018-03-025-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.
* contrib: keygen-html: rewrite in pure javascriptJason A. Donenfeld2018-03-025-129/+187
| | | | | Emscripten is too cumbersome. This code here is much slower, but it's shorter and simpler.
* contrib: embedded-wg-library: add key generation functionsJason A. Donenfeld2018-03-023-2/+205
|
* contrib: embedded-wg-library: add ability to add and del interfacesJason A. Donenfeld2018-02-213-3/+109
|
* contrib: add embeddable wireguard libraryJason A. Donenfeld2018-02-176-0/+1671
|
* tools: allow in-line commentsJason A. Donenfeld2018-02-171-2/+3
|
* keygen-html: fix up copyrightJason A. Donenfeld2018-02-021-4/+0
|
* curve25519: replace fiat64 with faster hacl64Jason A. Donenfeld2018-02-011-1/+1
| | | | | This reverts commit da4ff396cc5d5e0ff21f9ecbc2f951c048c63fff and adds some optimizations to hacl64.
* curve25519: replace hacl64 with fiat64Jason A. Donenfeld2018-02-011-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.
* contrib: keygen-html: share curve25519 implementation with kernelJason A. Donenfeld2018-01-232-831/+31
|
* curve25519-fiat32: uninline certain functionsJason A. Donenfeld2018-01-181-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
* contrib: keygen-html: update curve25519 implementationJason A. Donenfeld2018-01-181-785/+769
|
* wg-quick: ifnames have max len of 15Jason A. Donenfeld2018-01-101-2/+2
|
* global: year bumpJason A. Donenfeld2018-01-0315-15/+15
|
* keygen-html: remove prebuilt fileJason A. Donenfeld2017-12-127-45/+42
| | | | | | | We also reduce the optimization level, just in case, but add closure compiler into the mix. Suggested-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
* global: add SPDX tags to all filesGreg Kroah-Hartman2017-12-0915-19/+58
| | | | | | | | | | | | | It's good to have SPDX identifiers in all files as the Linux kernel developers are working to add these identifiers to all files. Update all files with the correct SPDX license identifier based on the license text of the project or based on the license in the file itself. The SPDX identifier is a legally binding shorthand, which can be used instead of the full boiler plate text. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Modified-by: Jason A. Donenfeld <Jason@zx2c4.com>
* contrib: keygen-html for generating keys in the browserJason A. Donenfeld2017-12-034-0/+1020
|
* wg-quick: allow for tabs in keysJason A. Donenfeld2017-11-101-18/+18
|
* contrib: add reresolve-dnsJason A. Donenfeld2017-10-312-0/+48
|
* wg-quick: allow for the hatchet, but not by defaultJason A. Donenfeld2017-10-313-0/+53
|
* contrib: remove worthless build artifactJason A. Donenfeld2017-10-021-0/+0
|
* contrib: add sticky sockets example codeJason A. Donenfeld2017-09-243-0/+342
|