aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/cookie.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* global: run through clang-formatJason A. Donenfeld2018-08-281-6/+13
| | | | | | | 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.
* global: use fast boottime instead of normal boottimeJason A. Donenfeld2018-06-231-2/+2
| | | | Generally if we're inaccurate by a few nanoseconds, it doesn't matter.
* global: use ktime boottime instead of jiffiesJason A. Donenfeld2018-06-231-2/+2
| | | | | | | | 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.
* global: year bumpJason A. Donenfeld2018-01-031-1/+1
|
* global: add SPDX tags to all filesGreg Kroah-Hartman2017-12-091-1/+4
| | | | | | | | | | | | | 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: get rid of useless forward declarationsJason A. Donenfeld2017-10-311-2/+0
|
* global: use _WG prefix for include guardsJason A. Donenfeld2017-10-031-3/+3
| | | | Suggested-by: Sultan Alsawaf <sultanxda@gmail.com>
* ratelimiter: rewrite from scratchJason A. Donenfeld2017-06-261-4/+1
| | | | | | | This not only removes the depenency on x_tables, but it also gives us much better performance and memory usage. Now, systems are able to have millions of WireGuard interfaces, without having to worry about a thundering herd of garbage collection.
* noise: redesign preshared key modeJason A. Donenfeld2017-05-171-1/+4
|
* data: big refactoringJason A. Donenfeld2017-03-201-2/+2
|
* Update copyrightJason A. Donenfeld2017-01-101-1/+1
|
* cookies: use xchacha20poly1305 instead of chacha20poly1305Jason A. Donenfeld2016-12-231-0/+3
| | | | | This allows us to precompute the blake2s calls and save cycles, since hchacha is fast.
* global: move to consistent use of uN instead of uintN_t for kernel codeJason A. Donenfeld2016-12-111-2/+2
|
* cookie: kill redundant forward declarationJason A. Donenfeld2016-12-091-2/+0
|
* headers: cleanup noticesJason A. Donenfeld2016-11-211-1/+1
|
* Rework headers and includesJason A. Donenfeld2016-09-291-10/+5
|
* Initial commitJason A. Donenfeld2016-06-251-0/+55