aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/messages.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* messages: recalculate rekey max based on a one minute floodJason A. Donenfeld2019-10-301-1/+1
| | | | Discussed-with: Mathias Hall-Andersen <mathias@hall-andersen.dk>
* global: update copyrightJason A. Donenfeld2019-01-071-1/+1
|
* global: various formatting tweeksJason A. Donenfeld2018-11-131-4/+4
|
* global: more nitsJason A. Donenfeld2018-10-081-1/+1
|
* crypto: make constant naming scheme consistentJason A. Donenfeld2018-09-251-5/+5
|
* crypto: import zincJason A. Donenfeld2018-09-031-3/+3
|
* global: run through clang-formatJason A. Donenfeld2018-08-281-6/+8
| | | | | | | 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.
* noise: remove outdated commentJason A. Donenfeld2018-07-311-2/+0
| | | | docs/protocol.md hasn't existed for 3 years.
* global: use ktime boottime instead of jiffiesJason A. Donenfeld2018-06-231-9/+9
| | | | | | | | Since this is a network protocol, expirations need to be accounted for, even across system suspend. On real systems, this isn't a problem, since we're clearing all keys before suspend. But on Android, where we don't do that, this is something of a problem. So, we switch to using boottime instead of jiffies.
* messages: MESSAGE_TOTAL is unusedJason A. Donenfeld2018-03-021-2/+1
|
* global: year bumpJason A. Donenfeld2018-01-031-1/+1
|
* global: add SPDX tags to all filesGreg Kroah-Hartman2017-12-091-0/+1
| | | | | | | | | | | | | 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>
* global: style nitsJason A. Donenfeld2017-10-311-1/+1
|
* global: use _WG prefix for include guardsJason A. Donenfeld2017-10-031-3/+3
| | | | Suggested-by: Sultan Alsawaf <sultanxda@gmail.com>
* global: satisfy bitshift pedantryJason A. Donenfeld2017-10-031-1/+1
| | | | Suggested-by: Sultan Alsawaf <sultanxda@gmail.com>
* receive: simplify message type validationJason A. Donenfeld2017-10-031-23/+0
|
* messages: reduce maximum staged packets per peerJason A. Donenfeld2017-10-021-1/+1
|
* queue: entirely rework parallel systemJason A. Donenfeld2017-09-181-2/+3
| | | | | | | | | | This removes our dependency on padata and moves to a different mode of multiprocessing that is more efficient. This began as Samuel Holland's GSoC project and was gradually reworked/redesigned/rebased into this present commit, which is a combination of his initial contribution and my subsequent rewriting and redesigning.
* hashtables: allow up to 2^{20} peers per interfaceJason A. Donenfeld2017-08-081-1/+1
| | | | | | | | | | | | | | | This allows for nearly 1 million peers per interface, which should be more than enough. If needed later, this number could easily be increased beyond this. We also increase the size of the hashtables to accommodate this upper bound. In the future, it might be smart to dynamically expand the hashtable instead of this hard coded compromise value between small systems and large systems. Ongoing work includes figuring out the most optimal scheme for these hashtables and for the insertion to mask their order from timing inference.
* handshake: process in parallelJason A. Donenfeld2017-05-301-1/+0
|
* data: big refactoringJason A. Donenfeld2017-03-201-7/+15
|
* Update copyrightJason A. Donenfeld2017-01-101-1/+1
|
* cookies: use xchacha20poly1305 instead of chacha20poly1305Jason A. Donenfeld2016-12-231-2/+2
| | | | | This allows us to precompute the blake2s calls and save cycles, since hchacha is fast.
* messages: increase header by 3 bytes for alignmentJason A. Donenfeld2016-12-161-11/+18
|
* messages: remove unused constantsJason A. Donenfeld2016-12-121-2/+0
|
* timers: add random jitter to handshake retryJason A. Donenfeld2016-12-091-0/+1
|
* headers: cleanup noticesJason A. Donenfeld2016-11-211-1/+1
|
* packets: consolidate constantsJason A. Donenfeld2016-11-161-1/+11
|
* timers: move constants to headerJason A. Donenfeld2016-10-191-1/+3
|
* Rework headers and includesJason A. Donenfeld2016-09-291-2/+39
|
* Initial commitJason A. Donenfeld2016-06-251-0/+88