aboutsummaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* WIP: Automatically update PMTU for tunneled destinationslr/pmtuLuis Ressel2018-01-132-2/+29
|
* external-tests: add python implementationPiotr Lizończyk2018-01-111-0/+94
|
* wg-quick: ifnames have max len of 15Jason A. Donenfeld2018-01-103-5/+5
|
* socket: check for null socket before fishing out sportJason A. Donenfeld2018-01-081-2/+4
| | | | Otherwise we could have a null pointer dereference.
* global: year bumpJason A. Donenfeld2018-01-03106-107/+107
|
* receive: treat packet checking as irrelevant for timersJason A. Donenfeld2018-01-031-6/+6
| | | | | | | Receiving any type of authenticated data is a receive and a traversal. When it isn't a keepalive it's a data. That's our rule. Whether or not it's the correct type of data or has the right IP header shouldn't influence timer decisions.
* version: bump snapshot0.0.20171221Jason A. Donenfeld2017-12-212-2/+2
|
* compat: kernels < 3.13 modified genl_opsJason A. Donenfeld2017-12-212-2/+8
|
* crypto: compile on UMLJason A. Donenfeld2017-12-134-2/+8
| | | | We basically just don't use FPU in UML.
* wg-quick: dumber matching for default routesJason A. Donenfeld2017-12-131-1/+1
|
* wg-quick: add the "Table" config optionLuis Ressel2017-12-132-3/+18
| | | | | | | | * Table=auto (default) selects the current behaviour * Table=off disables creation of routes altogether * All other values are passed through to "ip route add"'s table option Signed-off-by: Luis Ressel <aranea@aixah.de>
* 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>
* version: bump snapshot0.0.20171211Jason A. Donenfeld2017-12-112-2/+2
|
* chacha20poly1305: wire up avx512vl for skylake-xJason A. Donenfeld2017-12-115-6/+99
|
* chacha20: avx512vl implementationSamuel Neves2017-12-112-0/+571
| | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
* poly1305: fix avx512f alignment bugSamuel Neves2017-12-111-1/+1
| | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
* chacha20poly1305: cleaner generic codeJason A. Donenfeld2017-12-111-90/+49
|
* blake2s-x86_64: fix spacingJason A. Donenfeld2017-12-091-70/+70
|
* global: add SPDX tags to all filesGreg Kroah-Hartman2017-12-09102-371/+379
| | | | | | | | | | | | | 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>
* chacha20-arm: fix with clang -fno-integrated-as.David Benjamin2017-12-031-1/+3
| | | | | | | | | The __clang__-guarded #defines cause gas to complain if clang is passed -fno-integrated-as. Emitting .syntax unified when those are used fixes this. Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
* poly1305: update x86-64 kernel to AVX512F onlySamuel Neves2017-12-032-138/+132
| | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
* tools: no need to put this on the stackJason A. Donenfeld2017-12-031-1/+1
|
* tools: remove undocumented unused syntaxJason A. Donenfeld2017-12-031-11/+0
|
* contrib: keygen-html for generating keys in the browserJason A. Donenfeld2017-12-034-0/+1020
|
* kernel-tree: jury rig is the more common spellingJason A. Donenfeld2017-11-301-0/+0
| | | | | According to the Google Ngram viewer, jury is significantly more common than jerry.
* netlink: rename symbol to avoid clashesJason A. Donenfeld2017-11-293-6/+6
| | | | At somepoint we may need to wg_ namespace these.
* device: clear last handshake timer on ifdownJason A. Donenfeld2017-11-292-0/+2
| | | | | | | Otherwise new handshakes might not occur immediately when the interface goes up and down. Also initialize peers to having a proper zeroed handshake jiffies.
* compat: fix 3.10 backportJason A. Donenfeld2017-11-292-0/+26
| | | | | | | For archs that do not provide the magic csum function, we need to provide the generic function. Also, some obscure 3.10s have backported the int size macros, so we ifndef around that to avoid potentially fatal warnings.
* device: do not clear keys during sleep on AndroidJason A. Donenfeld2017-11-281-4/+4
| | | | | | This makes sense for the security model of laptops, but not for clicking phones on and off, where we actually want to be able to handle incoming packets.
* curve25519: explictly depend on AS_AVXJason A. Donenfeld2017-11-281-3/+3
|
* compat: support RAP in assemblyJason A. Donenfeld2017-11-282-0/+17
|
* curve25519: modularize dispatchJason A. Donenfeld2017-11-281-91/+82
|
* version: bump snapshot0.0.20171127Jason A. Donenfeld2017-11-272-2/+2
|
* qemu: take shared lock for untarringJason A. Donenfeld2017-11-271-18/+10
|
* blake2s: tweak avx512 codeSamuel Neves2017-11-261-64/+47
| | | | | | | | This is not as ideal as using zmm, but zmm downclocks. And it's not as fast single-threaded as using the gathers. But it is faster when multithreaded, which is what WireGuard is doing. Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
* compat: support 4.15's netlink and barrier changesJason A. Donenfeld2017-11-262-1/+7
|
* allowedips: simplifyJason A. Donenfeld2017-11-251-35/+12
|
* allowedips: optimizeJason A. Donenfeld2017-11-251-14/+52
|
* qemu: use netfilter.org https siteJason A. Donenfeld2017-11-251-2/+2
|
* chacha20: directly assign constant and initial stateJason A. Donenfeld2017-11-231-59/+20
|
* compat: fix typo and rangesJason A. Donenfeld2017-11-231-1/+1
|
* tools: fix removing preshared keysJason A. Donenfeld2017-11-232-69/+73
| | | | Also clean up related logic quite a bit and add unit tests.
* compat: support AVX512BW+VL by lyingJason A. Donenfeld2017-11-221-2/+15
|
* blake2s: hmac space optimizationSamuel Neves2017-11-221-16/+12
| | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
* blake2s: AVX512F+VL implementationSamuel Neves2017-11-222-0/+132
| | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
* poly1305-avx512: requires AVX512F+VL+BWSamuel Neves2017-11-221-1/+6
| | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
* compat: support timespec64 on old kernelsJason A. Donenfeld2017-11-221-0/+5
|
* version: bump snapshot0.0.20171122Jason A. Donenfeld2017-11-222-2/+2
|
* chacha20poly1305: poly cleans up its own stateJason A. Donenfeld2017-11-221-5/+1
|
* poly1305-x86_64: unclobber %rbpSamuel Neves2017-11-221-131/+145
| | | | | | | | | | | | | | OpenSSL's Poly1305 kernels use %rbp as a scratch register. However, the kernel expects rbp to be a valid frame pointer at any given time in order to do proper unwinding. Thus we need to alter the code in order to preserve it. The most straightforward manner in which this was accomplished was by replacing $d3 in poly1305-x86_64.pl -- formerly %r10 -- by %rdi, and replace %rbp by %r10. Because %rdi, a pointer to the context structure, does not change and is not used by poly1305_iteration, it is safe to use it here, and the overhead of saving and restoring it should be minimal. Signed-off-by: Samuel Neves <sneves@dei.uc.pt>